Class UnwrappedPropertyHandler
- java.lang.Object
-
- com.fasterxml.jackson.databind.deser.impl.UnwrappedPropertyHandler
-
public class UnwrappedPropertyHandler extends java.lang.ObjectObject that is responsible for handling acrobatics related to deserializing "unwrapped" values; sets of properties that are embedded (inlined) as properties of parent JSON object.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<SettableBeanProperty>_creatorPropertiesprotected java.util.List<SettableBeanProperty>_propertiesstatic java.lang.StringJSON_UNWRAPPED_NAME_PREFIX
-
Constructor Summary
Constructors Modifier Constructor Description UnwrappedPropertyHandler()protectedUnwrappedPropertyHandler(java.util.List<SettableBeanProperty> props)Deprecated.protectedUnwrappedPropertyHandler(java.util.List<SettableBeanProperty> creatorProps, java.util.List<SettableBeanProperty> props)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCreatorProperty(SettableBeanProperty property)voidaddProperty(SettableBeanProperty property)static PropertyNamecreatorParamName(int index)Generates a placeholder name for creator properties that don't have a name, but are marked with@JsonUnwrappedannotation.java.lang.ObjectprocessUnwrapped(com.fasterxml.jackson.core.JsonParser originalParser, DeserializationContext ctxt, java.lang.Object bean, TokenBuffer buffered)PropertyValueBufferprocessUnwrappedCreatorProperties(com.fasterxml.jackson.core.JsonParser originalParser, DeserializationContext ctxt, PropertyValueBuffer values, TokenBuffer buffered)UnwrappedPropertyHandlerrenameAll(NameTransformer transformer)private java.util.List<SettableBeanProperty>renameProperties(java.util.Collection<SettableBeanProperty> properties, NameTransformer transformer)
-
-
-
Field Detail
-
JSON_UNWRAPPED_NAME_PREFIX
public static final java.lang.String JSON_UNWRAPPED_NAME_PREFIX
- Since:
- 2.19
- See Also:
- Constant Field Values
-
_creatorProperties
protected final java.util.List<SettableBeanProperty> _creatorProperties
- Since:
- 2.19
-
_properties
protected final java.util.List<SettableBeanProperty> _properties
-
-
Constructor Detail
-
UnwrappedPropertyHandler
public UnwrappedPropertyHandler()
-
UnwrappedPropertyHandler
@Deprecated protected UnwrappedPropertyHandler(java.util.List<SettableBeanProperty> props)
Deprecated.
-
UnwrappedPropertyHandler
protected UnwrappedPropertyHandler(java.util.List<SettableBeanProperty> creatorProps, java.util.List<SettableBeanProperty> props)
-
-
Method Detail
-
addCreatorProperty
public void addCreatorProperty(SettableBeanProperty property)
- Since:
- 2.19
-
addProperty
public void addProperty(SettableBeanProperty property)
-
renameAll
public UnwrappedPropertyHandler renameAll(NameTransformer transformer)
-
renameProperties
private java.util.List<SettableBeanProperty> renameProperties(java.util.Collection<SettableBeanProperty> properties, NameTransformer transformer)
-
processUnwrappedCreatorProperties
public PropertyValueBuffer processUnwrappedCreatorProperties(com.fasterxml.jackson.core.JsonParser originalParser, DeserializationContext ctxt, PropertyValueBuffer values, TokenBuffer buffered) throws java.io.IOException
- Throws:
java.io.IOException- Since:
- 2.19
-
processUnwrapped
public java.lang.Object processUnwrapped(com.fasterxml.jackson.core.JsonParser originalParser, DeserializationContext ctxt, java.lang.Object bean, TokenBuffer buffered) throws java.io.IOException- Throws:
java.io.IOException
-
creatorParamName
public static PropertyName creatorParamName(int index)
Generates a placeholder name for creator properties that don't have a name, but are marked with@JsonUnwrappedannotation.- Since:
- 2.19
-
-