Module tools.jackson.databind
Class UnwrappedPropertyHandler
java.lang.Object
tools.jackson.databind.deser.impl.UnwrappedPropertyHandler
Object 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
FieldsModifier and TypeFieldDescriptionprotected final List<SettableBeanProperty>protected final List<SettableBeanProperty>static final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnwrappedPropertyHandler(List<SettableBeanProperty> creatorProps, List<SettableBeanProperty> props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCreatorProperty(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.processUnwrapped(JsonParser originalParser, DeserializationContext ctxt, Object bean, TokenBuffer buffered) processUnwrappedCreatorProperties(JsonParser originalParser, DeserializationContext ctxt, PropertyValueBuffer values, TokenBuffer buffered) renameAll(DeserializationContext ctxt, NameTransformer transformer)
-
Field Details
-
JSON_UNWRAPPED_NAME_PREFIX
- Since:
- 2.19
- See Also:
-
_creatorProperties
- Since:
- 2.19
-
_properties
-
-
Constructor Details
-
UnwrappedPropertyHandler
public UnwrappedPropertyHandler() -
UnwrappedPropertyHandler
protected UnwrappedPropertyHandler(List<SettableBeanProperty> creatorProps, List<SettableBeanProperty> props)
-
-
Method Details
-
addCreatorProperty
- Since:
- 2.19
-
addProperty
-
renameAll
-
processUnwrappedCreatorProperties
public PropertyValueBuffer processUnwrappedCreatorProperties(JsonParser originalParser, DeserializationContext ctxt, PropertyValueBuffer values, TokenBuffer buffered) - Since:
- 2.19
-
processUnwrapped
public Object processUnwrapped(JsonParser originalParser, DeserializationContext ctxt, Object bean, TokenBuffer buffered) -
creatorParamName
Generates a placeholder name for creator properties that don't have a name, but are marked with `@JsonWrapped` annotation.- Since:
- 2.19
-