Search in sources :

Example 21 with SettableBeanProperty

use of com.fasterxml.jackson.databind.deser.SettableBeanProperty in project jackson-databind by FasterXML.

the class UnwrappedPropertyHandler method processUnwrapped.

@SuppressWarnings("resource")
public Object processUnwrapped(JsonParser originalParser, DeserializationContext ctxt, Object bean, TokenBuffer buffered) throws IOException {
    for (int i = 0, len = _properties.size(); i < len; ++i) {
        SettableBeanProperty prop = _properties.get(i);
        JsonParser p = buffered.asParser();
        p.nextToken();
        prop.deserializeAndSet(p, ctxt, bean);
    }
    return bean;
}
Also used : SettableBeanProperty(com.fasterxml.jackson.databind.deser.SettableBeanProperty)

Aggregations

SettableBeanProperty (com.fasterxml.jackson.databind.deser.SettableBeanProperty)21 PropertyValueBuffer (com.fasterxml.jackson.databind.deser.impl.PropertyValueBuffer)2 JsonToken (com.fasterxml.jackson.core.JsonToken)1 JavaType (com.fasterxml.jackson.databind.JavaType)1 JsonDeserializer (com.fasterxml.jackson.databind.JsonDeserializer)1 BeanPropertyMap (com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap)1 ObjectIdValueProperty (com.fasterxml.jackson.databind.deser.impl.ObjectIdValueProperty)1 PropertyBasedCreator (com.fasterxml.jackson.databind.deser.impl.PropertyBasedCreator)1 ReadableObjectId (com.fasterxml.jackson.databind.deser.impl.ReadableObjectId)1 TokenBuffer (com.fasterxml.jackson.databind.util.TokenBuffer)1 IOException (java.io.IOException)1