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 static java.lang.StringJSON_UNWRAPPED_NAME_PREFIX
-
Constructor Summary
Constructors Constructor Description UnwrappedPropertyHandler()
-
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 `@JsonWrapped` annotation.java.lang.ObjectprocessUnwrapped(JsonParser originalParser, DeserializationContext ctxt, java.lang.Object bean, TokenBuffer buffered)PropertyValueBufferprocessUnwrappedCreatorProperties(JsonParser originalParser, DeserializationContext ctxt, PropertyValueBuffer values, TokenBuffer buffered)UnwrappedPropertyHandlerrenameAll(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
-
-
Method Detail
-
addCreatorProperty
public void addCreatorProperty(SettableBeanProperty property)
- Since:
- 2.19
-
addProperty
public void addProperty(SettableBeanProperty property)
-
renameAll
public UnwrappedPropertyHandler renameAll(NameTransformer transformer)
-
processUnwrappedCreatorProperties
public PropertyValueBuffer processUnwrappedCreatorProperties(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(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 `@JsonWrapped` annotation.- Since:
- 2.19
-
-