| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| protected transient volatile NameTransformer | _currentlyTransforming
State marker we need in order to avoid infinite recursion for some cases (not very clean, alas, but has to do for now) |
| protected PropertyNameMatcher | |
| protected SettableBeanProperty[] |
| Access | Constructor and Description |
|---|---|
| public | BeanDeserializer(BeanDeserializerBuilder builder, BeanDescription.
Constructor used by |
| protected | BeanDeserializer(BeanDeserializer src)
Copy-constructor that can be used by sub-classes to allow copy-on-write style copying of settings of an existing instance. |
| protected | |
| protected | BeanDeserializer(BeanDeserializer src, UnwrappedPropertyHandler unwrapHandler, PropertyBasedCreator propertyBasedCreator, BeanPropertyMap renamedProperties, boolean ignoreAllUnknown)
|
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | _deserializeFromArray(JsonParser p, DeserializationContext ctxt)
Overrides tools. Helper method that allows easy support for array-related coercion features:
checks for either empty array, or single-value array-wrapped value (if coercion
enabled by |
| protected final Object | |
| protected Object | _deserializeUsingPropertyBased(final JsonParser p, final DeserializationContext ctxt)
Implements abstract tools. Method called to deserialize bean using "property-based creator": this means that a non-default constructor or factory method is called, and then possibly other setters. |
| protected final Object | |
| protected Object | _deserializeWithExternalTypeId(JsonParser p, DeserializationContext ctxt, Object bean, ExternalTypeHandler ext)
|
| protected void | _handleNullFromPropsBasedCreator(JsonParser p, DeserializationContext ctxt, TokenBuffer unknown, List<BeanDeserializer.
|
| protected Object | _handleUnexpectedWithin(JsonParser p, DeserializationContext ctxt, Object bean)
Method called if an unexpected token (other then |
| private final Object | _vanillaDeserialize(JsonParser p, DeserializationContext ctxt)
Streamlined version that is only used when no "special"
features are enabled, and when current logical token
is |
| private final Object | _vanillaDeserialize(JsonParser p, DeserializationContext ctxt, JsonToken t)
Streamlined version that is only used when no "special" features are enabled. |
| private final Object | _vanillaDeserializeWithUnknown(JsonParser p, DeserializationContext ctxt, Object bean, String propName)
|
| protected BeanDeserializerBase | asArrayDeserializer()
Implements abstract tools. Fluent factory for creating a variant that can handle POJO output as a JSON Array. |
| public Object | deserialize(JsonParser p, DeserializationContext ctxt)
Implements abstract tools. Main deserialization method for bean-based objects (POJOs). |
| public Object | deserialize(JsonParser p, DeserializationContext ctxt, Object bean)
Overrides tools. Secondary deserialization method, called in cases where POJO instance is created as part of deserialization, potentially after collecting some or all of the properties to set. |
| protected Object | deserializeFromNull(JsonParser p, DeserializationContext ctxt)
Helper method called for rare case of pointing to |
| public Object | deserializeFromObject(JsonParser p, DeserializationContext ctxt)
Implements abstract tools. General version used when handling needs more advanced features. |
| protected Object | |
| protected Object | |
| protected Object | |
| protected Object | |
| protected Object | deserializeWithUnwrapped(JsonParser p, DeserializationContext ctxt)
Method called when there are declared "unwrapped" properties which need special handling |
| protected Object | |
| protected final Object | |
| private BeanDeserializer. | handleUnresolvedReference(DeserializationContext ctxt, SettableBeanProperty prop, PropertyValueBuffer buffer, UnresolvedForwardReference reference)
|
| protected void | initNameMatcher(DeserializationContext ctxt)
Implements abstract tools.
|
| public ValueDeserializer | unwrappingDeserializer(DeserializationContext ctxt, NameTransformer transformer)
Implements abstract tools. Method that will return deserializer instance that is able to handle "unwrapped" value instances If no unwrapped instance can be constructed, will simply return this object as-is. |
| public BeanDeserializerBase | withBeanProperties(BeanPropertyMap props)
Overrides tools. Mutant factory method that custom sub-classes must override; not left as abstract to prevent more drastic backwards compatibility problems. |
| public BeanDeserializer | withByNameInclusion(Set<String> ignorableProps, Set<String> includableProps)
Implements abstract tools.
|
| public BeanDeserializerBase | withIgnoreAllUnknown(boolean ignoreUnknown)
Implements abstract tools.
|
| public BeanDeserializer | withObjectIdReader(ObjectIdReader oir)
Implements abstract tools.
|
| _currentlyTransforming | back to summary |
|---|---|
| protected transient volatile NameTransformer _currentlyTransforming State marker we need in order to avoid infinite recursion for some cases (not very clean, alas, but has to do for now) | |
| _propNameMatcher | back to summary |
|---|---|
| protected PropertyNameMatcher _propNameMatcher | |
| _propsByIndex | back to summary |
|---|---|
| protected SettableBeanProperty[] _propsByIndex | |
| BeanDeserializer | back to summary |
|---|---|
| public BeanDeserializer(BeanDeserializerBuilder builder, BeanDescription. Constructor used by | |
| BeanDeserializer | back to summary |
|---|---|
| protected BeanDeserializer(BeanDeserializer src) Copy-constructor that can be used by sub-classes to allow copy-on-write style copying of settings of an existing instance. | |
| BeanDeserializer | back to summary |
|---|---|
| protected BeanDeserializer(BeanDeserializer src, boolean ignoreAllUnknown) | |
| BeanDeserializer | back to summary |
|---|---|
| protected BeanDeserializer(BeanDeserializer src, UnwrappedPropertyHandler unwrapHandler, PropertyBasedCreator propertyBasedCreator, BeanPropertyMap renamedProperties, boolean ignoreAllUnknown) | |
| BeanDeserializer | back to summary |
|---|---|
| protected BeanDeserializer(BeanDeserializer src, ObjectIdReader oir) | |
| BeanDeserializer | back to summary |
|---|---|
| protected BeanDeserializer(BeanDeserializer src, Set<String> ignorableProps, Set<String> includableProps) | |
| BeanDeserializer | back to summary |
|---|---|
| protected BeanDeserializer(BeanDeserializer src, BeanPropertyMap props) | |
| _deserializeFromArray | back to summary |
|---|---|
| protected Object _deserializeFromArray(JsonParser p, DeserializationContext ctxt) throws JacksonException Overrides tools. Doc from tools. Helper method that allows easy support for array-related coercion features:
checks for either empty array, or single-value array-wrapped value (if coercion
enabled by This method should NOT be called if Array representation is explicitly supported for type: it should only be called in case it is otherwise unrecognized. Note in case of unwrapped single element, will handle actual decoding
by calling
| |
| _deserializeOther | back to summary |
|---|---|
| protected final Object _deserializeOther(JsonParser p, DeserializationContext ctxt, JsonToken t) throws JacksonException | |
| _deserializeUsingPropertyBased | back to summary |
|---|---|
| protected Object _deserializeUsingPropertyBased(final JsonParser p, final DeserializationContext ctxt) throws JacksonException Implements abstract tools. Method called to deserialize bean using "property-based creator": this means that a non-default constructor or factory method is called, and then possibly other setters. The trick is that values for creator method need to be buffered, first; and due to non-guaranteed ordering possibly some other properties as well.
| |
| _deserializeWithErrorWrapping | back to summary |
|---|---|
| protected final Object _deserializeWithErrorWrapping(JsonParser p, DeserializationContext ctxt, SettableBeanProperty prop) throws DatabindException | |
| _deserializeWithExternalTypeId | back to summary |
|---|---|
| protected Object _deserializeWithExternalTypeId(JsonParser p, DeserializationContext ctxt, Object bean, ExternalTypeHandler ext) throws JacksonException | |
| _handleNullFromPropsBasedCreator | back to summary |
|---|---|
| protected void _handleNullFromPropsBasedCreator(JsonParser p, DeserializationContext ctxt, TokenBuffer unknown, List<BeanDeserializer. | |
| _handleUnexpectedWithin | back to summary |
|---|---|
| protected Object _handleUnexpectedWithin(JsonParser p, DeserializationContext ctxt, Object bean) throws JacksonException Method called if an unexpected token (other then
| |
| _vanillaDeserialize | back to summary |
|---|---|
| private final Object _vanillaDeserialize(JsonParser p, DeserializationContext ctxt) throws JacksonException Streamlined version that is only used when no "special"
features are enabled, and when current logical token
is | |
| _vanillaDeserialize | back to summary |
|---|---|
| private final Object _vanillaDeserialize(JsonParser p, DeserializationContext ctxt, JsonToken t) throws JacksonException Streamlined version that is only used when no "special" features are enabled. | |
| _vanillaDeserializeWithUnknown | back to summary |
|---|---|
| private final Object _vanillaDeserializeWithUnknown(JsonParser p, DeserializationContext ctxt, Object bean, String propName) throws JacksonException | |
| asArrayDeserializer | back to summary |
|---|---|
| protected BeanDeserializerBase asArrayDeserializer() Implements abstract tools. Doc from tools. Fluent factory for creating a variant that can handle POJO output as a JSON Array. Implementations may ignore this request if no such input is possible.
| |
| deserialize | back to summary |
|---|---|
| public Object deserialize(JsonParser p, DeserializationContext ctxt) throws JacksonException Implements abstract tools. Main deserialization method for bean-based objects (POJOs).
| |
| deserialize | back to summary |
|---|---|
| public Object deserialize(JsonParser p, DeserializationContext ctxt, Object bean) throws JacksonException Overrides tools. Secondary deserialization method, called in cases where POJO instance is created as part of deserialization, potentially after collecting some or all of the properties to set.
| |
| deserializeFromNull | back to summary |
|---|---|
| protected Object deserializeFromNull(JsonParser p, DeserializationContext ctxt) throws JacksonException Helper method called for rare case of pointing to | |
| deserializeFromObject | back to summary |
|---|---|
| public Object deserializeFromObject(JsonParser p, DeserializationContext ctxt) throws JacksonException Implements abstract tools. General version used when handling needs more advanced features.
| |
| deserializeUsingPropertyBasedWithExternalTypeId | back to summary |
|---|---|
protected Object deserializeUsingPropertyBasedWithExternalTypeId(JsonParser p, DeserializationContext ctxt) throws JacksonException
| |
| deserializeUsingPropertyBasedWithUnwrapped | back to summary |
|---|---|
protected Object deserializeUsingPropertyBasedWithUnwrapped(JsonParser p, DeserializationContext ctxt) throws JacksonException
| |
| deserializeWithExternalTypeId | back to summary |
|---|---|
| protected Object deserializeWithExternalTypeId(JsonParser p, DeserializationContext ctxt) throws JacksonException | |
| deserializeWithExternalTypeId | back to summary |
|---|---|
| protected Object deserializeWithExternalTypeId(JsonParser p, DeserializationContext ctxt, Object bean) throws JacksonException | |
| deserializeWithUnwrapped | back to summary |
|---|---|
| protected Object deserializeWithUnwrapped(JsonParser p, DeserializationContext ctxt) throws JacksonException Method called when there are declared "unwrapped" properties which need special handling
| |
| deserializeWithUnwrapped | back to summary |
|---|---|
protected Object deserializeWithUnwrapped(JsonParser p, DeserializationContext ctxt, Object bean) throws JacksonException
| |
| deserializeWithView | back to summary |
|---|---|
| protected final Object deserializeWithView(JsonParser p, DeserializationContext ctxt, Object bean, Class<?> activeView) throws JacksonException | |
| handleUnresolvedReference | back to summary |
|---|---|
| private BeanDeserializer. | |
| initNameMatcher | back to summary |
|---|---|
| protected void initNameMatcher(DeserializationContext ctxt) Implements abstract tools.
| |
| unwrappingDeserializer | back to summary |
|---|---|
| public ValueDeserializer Implements abstract tools. Doc from tools. Method that will return deserializer instance that is able to handle "unwrapped" value instances If no unwrapped instance can be constructed, will simply return this object as-is. Default implementation just returns 'this' indicating that no unwrapped variant exists
| |
| withBeanProperties | back to summary |
|---|---|
| public BeanDeserializerBase withBeanProperties(BeanPropertyMap props) Overrides tools. Doc from tools. Mutant factory method that custom sub-classes must override; not left as abstract to prevent more drastic backwards compatibility problems.
| |
| withByNameInclusion | back to summary |
|---|---|
| public BeanDeserializer withByNameInclusion(Set<String> ignorableProps, Set<String> includableProps) Implements abstract tools.
| |
| withIgnoreAllUnknown | back to summary |
|---|---|
| public BeanDeserializerBase withIgnoreAllUnknown(boolean ignoreUnknown) Implements abstract tools.
| |
| withObjectIdReader | back to summary |
|---|---|
| public BeanDeserializer withObjectIdReader(ObjectIdReader oir) Implements abstract tools.
| |
| Modifier and Type | Field and Description |
|---|---|
| private Object | |
| private final DeserializationContext | |
| private final SettableBeanProperty |
| Access | Constructor and Description |
|---|---|
| pack-priv | BeanReferring(DeserializationContext ctxt, UnresolvedForwardReference ref, JavaType valueType, PropertyValueBuffer buffer, SettableBeanProperty prop)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | handleResolvedForwardReference(DeserializationContext ctxt, Object id, Object value)
Implements abstract tools.
|
| public void |
| _bean | back to summary |
|---|---|
| private Object _bean | |
| _context | back to summary |
|---|---|
| private final DeserializationContext _context | |
| _prop | back to summary |
|---|---|
| private final SettableBeanProperty _prop | |
| BeanReferring | back to summary |
|---|---|
| pack-priv BeanReferring(DeserializationContext ctxt, UnresolvedForwardReference ref, JavaType valueType, PropertyValueBuffer buffer, SettableBeanProperty prop) | |
| handleResolvedForwardReference | back to summary |
|---|---|
| public void handleResolvedForwardReference(DeserializationContext ctxt, Object id, Object value) Implements abstract tools.
| |
| setBean | back to summary |
|---|---|
| public void setBean(Object bean) | |