Class SettableAnyProperty.JsonNodeFieldAnyProperty
- java.lang.Object
-
- com.fasterxml.jackson.databind.deser.SettableAnyProperty
-
- com.fasterxml.jackson.databind.deser.SettableAnyProperty.JsonNodeFieldAnyProperty
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- SettableAnyProperty
protected static class SettableAnyProperty.JsonNodeFieldAnyProperty extends SettableAnyProperty implements java.io.Serializable
- Since:
- 2.14
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
SettableAnyProperty.JsonNodeFieldAnyProperty, SettableAnyProperty.MapFieldAnyProperty, SettableAnyProperty.MethodAnyProperty
-
-
Field Summary
Fields Modifier and Type Field Description protected JsonNodeFactory
_nodeFactory
-
Fields inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
_keyDeserializer, _property, _setter, _setterIsField, _type, _valueDeserializer, _valueTypeDeserializer
-
-
Constructor Summary
Constructors Constructor Description JsonNodeFieldAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, JsonDeserializer<java.lang.Object> valueDeser, JsonNodeFactory nodeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_set(java.lang.Object instance, java.lang.Object propName, java.lang.Object value)
java.lang.Object
deserialize(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt)
void
deserializeAndSet(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, java.lang.Object instance, java.lang.String propName)
Method called to deserialize appropriate value, given parser (and context), and set it using appropriate method (a setter method).protected void
setProperty(java.lang.Object instance, java.lang.String propName, JsonNode value)
SettableAnyProperty
withValueDeserializer(JsonDeserializer<java.lang.Object> deser)
-
Methods inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
_throwAsIOE, constructForJsonNodeField, constructForMapField, constructForMethod, fixAccess, getProperty, getPropertyName, getType, hasValueDeserializer, set, toString
-
-
-
-
Field Detail
-
_nodeFactory
protected final JsonNodeFactory _nodeFactory
-
-
Constructor Detail
-
JsonNodeFieldAnyProperty
public JsonNodeFieldAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, JsonDeserializer<java.lang.Object> valueDeser, JsonNodeFactory nodeFactory)
-
-
Method Detail
-
deserializeAndSet
public void deserializeAndSet(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt, java.lang.Object instance, java.lang.String propName) throws java.io.IOException
Description copied from class:SettableAnyProperty
Method called to deserialize appropriate value, given parser (and context), and set it using appropriate method (a setter method).- Overrides:
deserializeAndSet
in classSettableAnyProperty
- Throws:
java.io.IOException
-
deserialize
public java.lang.Object deserialize(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt) throws java.io.IOException
- Overrides:
deserialize
in classSettableAnyProperty
- Throws:
java.io.IOException
-
_set
protected void _set(java.lang.Object instance, java.lang.Object propName, java.lang.Object value) throws java.lang.Exception
- Specified by:
_set
in classSettableAnyProperty
- Throws:
java.lang.Exception
-
setProperty
protected void setProperty(java.lang.Object instance, java.lang.String propName, JsonNode value) throws java.io.IOException
- Throws:
java.io.IOException
-
withValueDeserializer
public SettableAnyProperty withValueDeserializer(JsonDeserializer<java.lang.Object> deser)
- Specified by:
withValueDeserializer
in classSettableAnyProperty
-
-