| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private 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 transient Exception | _nullFromCreator
Lazily constructed exception used as root cause if reporting problem
with creator method that returns |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | BeanDeserializer(BeanDeserializerBuilder builder, BeanDescription beanDesc, BeanPropertyMap properties, Map<String, SettableBeanProperty> backRefs, HashSet<String> ignorableProps, boolean ignoreAllUnknown, boolean hasViews)
Deprecated
in 2.12, remove from 3.0
Constructor used by |
| public | BeanDeserializer(BeanDeserializerBuilder builder, BeanDescription beanDesc, BeanPropertyMap properties, Map<String, SettableBeanProperty> backRefs, HashSet<String> ignorableProps, boolean ignoreAllUnknown, Set<String> includableProps, boolean hasViews)
Constructor used by |
| protected | BeanDeserializer(BeanDeserializerBase 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 | |
| public | |
| public | BeanDeserializer(BeanDeserializerBase src, Set<String> ignorableProps)
Deprecated
in 2.12, remove from 3.0
|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Exception | _creatorReturnedNullException()
Helper method for getting a lazily construct exception to be reported
to |
| protected Object | _deserializeFromArray(JsonParser p, DeserializationContext ctxt)
Overrides com. 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 com. 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 BeanDeserializerBase | asArrayDeserializer()
Implements abstract com. Fluent factory for creating a variant that can handle POJO output as a JSON Array. |
| public Object | deserialize(JsonParser
Parser used for reading JSON content p, DeserializationContext Context that can be used to access information about
this deserialization activity. ctxt)Implements abstract com. Main deserialization method for bean-based objects (POJOs). |
| public Object | deserialize(JsonParser p, DeserializationContext ctxt, Object bean)
Overrides com. 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 com. 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)
|
| public JsonDeserializer | unwrappingDeserializer(NameTransformer transformer)
Implements abstract com. 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. |
| private final Object | vanillaDeserialize(JsonParser p, DeserializationContext ctxt, JsonToken t)
Streamlined version that is only used when no "special" features are enabled. |
| public BeanDeserializerBase | withBeanProperties(BeanPropertyMap props)
Overrides com. 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 com.
|
| public BeanDeserializerBase | withIgnoreAllUnknown(boolean ignoreUnknown)
Implements abstract com.
|
| public BeanDeserializer | withObjectIdReader(ObjectIdReader oir)
Implements abstract com.
|
| _currentlyTransforming | back to summary |
|---|---|
| private 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)
| |
| _nullFromCreator | back to summary |
|---|---|
| protected transient Exception _nullFromCreator Lazily constructed exception used as root cause if reporting problem
with creator method that returns
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| BeanDeserializer | back to summary |
|---|---|
| public BeanDeserializer(BeanDeserializerBuilder builder, BeanDescription beanDesc, BeanPropertyMap properties, Map<String, SettableBeanProperty> backRefs, HashSet<String> ignorableProps, boolean ignoreAllUnknown, boolean hasViews)
Deprecated in 2.12, remove from 3.0 Constructor used by
| |
| BeanDeserializer | back to summary |
|---|---|
| public BeanDeserializer(BeanDeserializerBuilder builder, BeanDescription beanDesc, BeanPropertyMap properties, Map<String, SettableBeanProperty> backRefs, HashSet<String> ignorableProps, boolean ignoreAllUnknown, Set<String> includableProps, boolean hasViews) Constructor used by
| |
| BeanDeserializer | back to summary |
|---|---|
| protected BeanDeserializer(BeanDeserializerBase 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(BeanDeserializerBase src, boolean ignoreAllUnknown) | |
| BeanDeserializer | back to summary |
|---|---|
| protected BeanDeserializer(BeanDeserializerBase src, NameTransformer unwrapper) | |
| BeanDeserializer | back to summary |
|---|---|
| public BeanDeserializer(BeanDeserializerBase src, ObjectIdReader oir) | |
| BeanDeserializer | back to summary |
|---|---|
| public BeanDeserializer(BeanDeserializerBase src, Set<String> ignorableProps)
Deprecated in 2.12, remove from 3.0
| |
| BeanDeserializer | back to summary |
|---|---|
public BeanDeserializer(BeanDeserializerBase src, Set<String> ignorableProps, Set<String> includableProps)
| |
| BeanDeserializer | back to summary |
|---|---|
| public BeanDeserializer(BeanDeserializerBase src, BeanPropertyMap props) | |
| _creatorReturnedNullException | back to summary |
|---|---|
| protected Exception _creatorReturnedNullException() Helper method for getting a lazily construct exception to be reported
to
| |
| _deserializeFromArray | back to summary |
|---|---|
| protected Object _deserializeFromArray(JsonParser p, DeserializationContext ctxt) throws IOException Overrides com. Doc from com. 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 IOException | |
| _deserializeUsingPropertyBased | back to summary |
|---|---|
| protected Object _deserializeUsingPropertyBased(final JsonParser p, final DeserializationContext ctxt) throws IOException Implements abstract com. 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 IOException | |
| _deserializeWithExternalTypeId | back to summary |
|---|---|
| protected Object _deserializeWithExternalTypeId(JsonParser p, DeserializationContext ctxt, Object bean, ExternalTypeHandler ext) throws IOException | |
| asArrayDeserializer | back to summary |
|---|---|
| protected BeanDeserializerBase asArrayDeserializer() Implements abstract com. Doc from com. 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 IOException Implements abstract com. Main deserialization method for bean-based objects (POJOs).
| |
| deserialize | back to summary |
|---|---|
| public Object deserialize(JsonParser p, DeserializationContext ctxt, Object bean) throws IOException Overrides com. 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 IOException Helper method called for rare case of pointing to
| |
| deserializeFromObject | back to summary |
|---|---|
| public Object deserializeFromObject(JsonParser p, DeserializationContext ctxt) throws IOException Implements abstract com. General version used when handling needs more advanced features.
| |
| deserializeUsingPropertyBasedWithExternalTypeId | back to summary |
|---|---|
protected Object deserializeUsingPropertyBasedWithExternalTypeId(JsonParser p, DeserializationContext ctxt) throws IOException
| |
| deserializeUsingPropertyBasedWithUnwrapped | back to summary |
|---|---|
protected Object deserializeUsingPropertyBasedWithUnwrapped(JsonParser p, DeserializationContext ctxt) throws IOException
| |
| deserializeWithExternalTypeId | back to summary |
|---|---|
| protected Object deserializeWithExternalTypeId(JsonParser p, DeserializationContext ctxt) throws IOException | |
| deserializeWithExternalTypeId | back to summary |
|---|---|
| protected Object deserializeWithExternalTypeId(JsonParser p, DeserializationContext ctxt, Object bean) throws IOException | |
| deserializeWithUnwrapped | back to summary |
|---|---|
| protected Object deserializeWithUnwrapped(JsonParser p, DeserializationContext ctxt) throws IOException 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 IOException
| |
| deserializeWithView | back to summary |
|---|---|
| protected final Object deserializeWithView(JsonParser p, DeserializationContext ctxt, Object bean, Class<?> activeView) throws IOException | |
| handleUnresolvedReference | back to summary |
|---|---|
private BeanDeserializer.
| |
| unwrappingDeserializer | back to summary |
|---|---|
| public JsonDeserializer Implements abstract com. Doc from com. 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
| |
| vanillaDeserialize | back to summary |
|---|---|
| private final Object vanillaDeserialize(JsonParser p, DeserializationContext ctxt, JsonToken t) throws IOException Streamlined version that is only used when no "special" features are enabled. | |
| withBeanProperties | back to summary |
|---|---|
| public BeanDeserializerBase withBeanProperties(BeanPropertyMap props) Overrides com. Doc from com. 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 com.
| |
| withIgnoreAllUnknown | back to summary |
|---|---|
| public BeanDeserializerBase withIgnoreAllUnknown(boolean ignoreUnknown) Implements abstract com.
| |
| withObjectIdReader | back to summary |
|---|---|
| public BeanDeserializer withObjectIdReader(ObjectIdReader oir) Implements abstract com.
| |
| 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 | |
| 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(Object id, Object value) throws IOException Implements abstract com.
| |
| setBean | back to summary |
|---|---|
| public void setBean(Object bean) | |