Class SettableAnyProperty.JsonNodeParameterAnyProperty
- java.lang.Object
-
- com.fasterxml.jackson.databind.deser.SettableAnyProperty
-
- com.fasterxml.jackson.databind.deser.SettableAnyProperty.JsonNodeParameterAnyProperty
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- SettableAnyProperty
protected static class SettableAnyProperty.JsonNodeParameterAnyProperty extends SettableAnyProperty implements java.io.Serializable
[databind#562] Allow @JsonAnySetter on Creator constructor- Since:
- 2.18
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
SettableAnyProperty.JsonNodeFieldAnyProperty, SettableAnyProperty.JsonNodeParameterAnyProperty, SettableAnyProperty.MapFieldAnyProperty, SettableAnyProperty.MapParameterAnyProperty, SettableAnyProperty.MethodAnyProperty
-
-
Field Summary
Fields Modifier and Type Field Description protected JsonNodeFactory
_nodeFactory
protected int
_parameterIndex
-
Fields inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
_keyDeserializer, _property, _setter, _setterIsField, _type, _valueDeserializer, _valueTypeDeserializer
-
-
Constructor Summary
Constructors Constructor Description JsonNodeParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, JsonDeserializer<java.lang.Object> valueDeser, JsonNodeFactory nodeFactory, int parameterIndex)
-
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
createParameterObject()
Create an instance of value to pass through Creator parameter.java.lang.Object
deserialize(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt)
int
getParameterIndex()
Accessor for parameterIndex.SettableAnyProperty
withValueDeserializer(JsonDeserializer<java.lang.Object> deser)
-
Methods inherited from class com.fasterxml.jackson.databind.deser.SettableAnyProperty
_throwAsIOE, constructForJsonNodeField, constructForJsonNodeParameter, constructForMapField, constructForMapParameter, constructForMethod, deserializeAndSet, fixAccess, getProperty, getPropertyName, getType, hasValueDeserializer, isFieldType, set, toString
-
-
-
-
Field Detail
-
_nodeFactory
protected final JsonNodeFactory _nodeFactory
-
_parameterIndex
protected final int _parameterIndex
-
-
Constructor Detail
-
JsonNodeParameterAnyProperty
public JsonNodeParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, JsonDeserializer<java.lang.Object> valueDeser, JsonNodeFactory nodeFactory, int parameterIndex)
-
-
Method Detail
-
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
-
withValueDeserializer
public SettableAnyProperty withValueDeserializer(JsonDeserializer<java.lang.Object> deser)
- Specified by:
withValueDeserializer
in classSettableAnyProperty
-
getParameterIndex
public int getParameterIndex()
Description copied from class:SettableAnyProperty
Accessor for parameterIndex.- Overrides:
getParameterIndex
in classSettableAnyProperty
- Returns:
- -1 if not a parameterized setter, otherwise index of parameter
-
createParameterObject
public java.lang.Object createParameterObject()
Description copied from class:SettableAnyProperty
Create an instance of value to pass through Creator parameter.- Overrides:
createParameterObject
in classSettableAnyProperty
-
-