public abstract class SettableAnyProperty extends Object implements Serializable
Note: starting with 2.14, is abstract
class with multiple
concrete implementations
Modifier and Type | Class and Description |
---|---|
protected static class |
SettableAnyProperty.JsonNodeFieldAnyProperty |
protected static class |
SettableAnyProperty.MapFieldAnyProperty |
protected static class |
SettableAnyProperty.MethodAnyProperty |
Modifier and Type | Field and Description |
---|---|
protected KeyDeserializer |
_keyDeserializer |
protected BeanProperty |
_property
Method used for setting "any" properties, along with annotation
information.
|
protected AnnotatedMember |
_setter
Annotated variant is needed for JDK serialization only
|
protected boolean |
_setterIsField |
protected JavaType |
_type |
protected JsonDeserializer<Object> |
_valueDeserializer |
protected TypeDeserializer |
_valueTypeDeserializer |
Constructor and Description |
---|
SettableAnyProperty(BeanProperty property,
AnnotatedMember setter,
JavaType type,
KeyDeserializer keyDeser,
JsonDeserializer<Object> valueDeser,
TypeDeserializer typeDeser) |
protected final BeanProperty _property
protected final AnnotatedMember _setter
protected final boolean _setterIsField
protected final JavaType _type
protected JsonDeserializer<Object> _valueDeserializer
protected final TypeDeserializer _valueTypeDeserializer
protected final KeyDeserializer _keyDeserializer
public SettableAnyProperty(BeanProperty property, AnnotatedMember setter, JavaType type, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer typeDeser)
public static SettableAnyProperty constructForMethod(DeserializationContext ctxt, BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer typeDeser)
public static SettableAnyProperty constructForMapField(DeserializationContext ctxt, BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer typeDeser)
public static SettableAnyProperty constructForJsonNodeField(DeserializationContext ctxt, BeanProperty property, AnnotatedMember field, JavaType valueType, JsonDeserializer<Object> valueDeser)
public abstract SettableAnyProperty withValueDeserializer(JsonDeserializer<Object> deser)
public void fixAccess(DeserializationConfig config)
public BeanProperty getProperty()
public boolean hasValueDeserializer()
public JavaType getType()
public String getPropertyName()
public void deserializeAndSet(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, Object instance, String propName) throws IOException
IOException
public Object deserialize(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt) throws IOException
IOException
public void set(Object instance, Object propName, Object value) throws IOException
IOException
protected abstract void _set(Object instance, Object propName, Object value) throws Exception
Exception
protected void _throwAsIOE(Exception e, Object propName, Object value) throws IOException
e
- Exception to re-throw or wrappropName
- Name of property (from Json input) to setvalue
- Value of the propertyIOException
Copyright © 2008–2022 FasterXML. All rights reserved.