JsonDeserializer for deserializing
instances.
| Modifier and Type | Field and Description |
|---|---|
| protected SettableAnyProperty | _anySetter
Fallback setter used for handling any properties that are not mapped to regular setters. |
| protected HashMap | _backRefProperties
Back-reference properties this bean contains (if any) |
| protected final BeanDescription | _beanDesc
Introspected information about POJO for deserializer to handle |
| protected JsonPOJOBuilder. | _builderConfig
In addition, Builder may have additional configuration |
| protected AnnotatedMethod | _buildMethod
When creating Builder-based deserializers, this indicates method to call on builder to finalize value. |
| protected final DeserializationConfig | |
| protected final DeserializationContext | |
| protected HashSet | _ignorableProps
Set of names of properties that are recognized but are to be ignored for deserialization purposes (meaning no exception is thrown, value is just skipped). |
| protected boolean | _ignoreAllUnknown
Flag that can be set to ignore and skip unknown properties. |
| protected HashSet | _includableProps
Set of names of properties that are recognized and are set to be included for deserialization purposes (null deactivate this, empty includes nothing). |
| protected List | _injectables
Value injectors for deserialization |
| protected ObjectIdReader | _objectIdReader
Handler for Object Id values, if Object Ids are enabled for the bean type. |
| protected final Map | _properties
Properties to deserialize collected so far. |
| protected ValueInstantiator | _valueInstantiator
Object that will handle value instantiation for the bean type. |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | BeanDeserializerBuilder(BeanDeserializerBuilder src)
Copy constructor for sub-classes to use, when constructing custom builder instances |
| Modifier and Type | Method and Description |
|---|---|
| protected Map | |
| private static HashMap | |
| private static <T> List | |
| protected boolean | |
| protected void | |
| protected void | _handleBadAccess(IllegalArgumentException e0)
Helper method for linking root cause to "invalid type definition" exception; needed for troubleshooting issues with forcing access on later JDKs (as module definition boundaries are more strictly enforced). |
| public void | addBackReferenceProperty(String referenceName, SettableBeanProperty prop)
Method called to add a property that represents so-called back reference; reference that "points back" to object that has forward reference to currently built bean. |
| public void | addCreatorProperty(SettableBeanProperty prop)
Method called by deserializer factory, when a "creator property" (something that is passed via constructor- or factory method argument; instead of setter or field). |
| public void | addIgnorable(String propName)
Method that will add property name as one of properties that can be ignored if not recognized. |
| public void | addIncludable(String propName)
Method that will add property name as one of the properties that will be included. |
| public void | addInjectable(PropertyName propName, JavaType propType, Annotations contextAnnotations, AnnotatedMember member, Object valueId)
|
| public void | addOrReplaceProperty(SettableBeanProperty prop, boolean allowOverride)
Method for adding a new property or replacing a property. |
| public void | |
| public JsonDeserializer | |
| public AbstractDeserializer | buildAbstract()
Alternate build method used when we must be using some form of abstract resolution, usually by using addition Type Id ("polymorphic deserialization") |
| public JsonDeserializer | buildBuilderBased(JavaType valueType, String expBuildMethodName)
Method for constructing a specialized deserializer that uses additional external Builder object during data binding. |
| protected JsonDeserializer | createBuilderBasedDeserializer(JavaType valueType, BeanPropertyMap propertyMap, boolean anyViews)
Extension point for overriding the actual creation of the builder deserializer. |
| public SettableBeanProperty | |
| public SettableAnyProperty | |
| public JsonPOJOBuilder. | |
| public AnnotatedMethod | |
| public List | |
| public ObjectIdReader | |
| public Iterator | |
| public ValueInstantiator | |
| public boolean | |
| public boolean | |
| public SettableBeanProperty | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| _anySetter | back to summary |
|---|---|
| protected SettableAnyProperty _anySetter Fallback setter used for handling any properties that are not mapped to regular setters. If setter is not null, it will be called once for each such property. | |
| _backRefProperties | back to summary |
|---|---|
| protected HashMap<String, SettableBeanProperty> _backRefProperties Back-reference properties this bean contains (if any) | |
| _beanDesc | back to summary |
|---|---|
| protected final BeanDescription _beanDesc Introspected information about POJO for deserializer to handle | |
| _builderConfig | back to summary |
|---|---|
| protected JsonPOJOBuilder. In addition, Builder may have additional configuration | |
| _buildMethod | back to summary |
|---|---|
| protected AnnotatedMethod _buildMethod When creating Builder-based deserializers, this indicates method to call on builder to finalize value. | |
| _config | back to summary |
|---|---|
| protected final DeserializationConfig _config | |
| _context | back to summary |
|---|---|
protected final DeserializationContext _context
| |
| _ignorableProps | back to summary |
|---|---|
| protected HashSet<String> _ignorableProps Set of names of properties that are recognized but are to be ignored for deserialization purposes (meaning no exception is thrown, value is just skipped). | |
| _ignoreAllUnknown | back to summary |
|---|---|
| protected boolean _ignoreAllUnknown Flag that can be set to ignore and skip unknown properties. If set, will not throw an exception for unknown properties. | |
| _includableProps | back to summary |
|---|---|
| protected HashSet<String> _includableProps Set of names of properties that are recognized and are set to be included for deserialization purposes (null deactivate this, empty includes nothing). | |
| _injectables | back to summary |
|---|---|
| protected List<ValueInjector> _injectables Value injectors for deserialization | |
| _objectIdReader | back to summary |
|---|---|
| protected ObjectIdReader _objectIdReader Handler for Object Id values, if Object Ids are enabled for the bean type. | |
| _properties | back to summary |
|---|---|
| protected final Map<String, SettableBeanProperty> _properties Properties to deserialize collected so far. | |
| _valueInstantiator | back to summary |
|---|---|
| protected ValueInstantiator _valueInstantiator Object that will handle value instantiation for the bean type. | |
| BeanDeserializerBuilder | back to summary |
|---|---|
| public BeanDeserializerBuilder(BeanDescription beanDesc, DeserializationContext ctxt) | |
| BeanDeserializerBuilder | back to summary |
|---|---|
| protected BeanDeserializerBuilder(BeanDeserializerBuilder src) Copy constructor for sub-classes to use, when constructing custom builder instances | |
| _collectAliases | back to summary |
|---|---|
| protected Map | |
| _copy | back to summary |
|---|---|
| private static HashMap | |
| _copy | back to summary |
|---|---|
| private static <T> List | |
| _findCaseInsensitivity | back to summary |
|---|---|
| protected boolean _findCaseInsensitivity() | |
| _fixAccess | back to summary |
|---|---|
| protected void _fixAccess(Collection<SettableBeanProperty> mainProps) throws JsonMappingException | |
| _handleBadAccess | back to summary |
|---|---|
| protected void _handleBadAccess(IllegalArgumentException e0) throws JsonMappingException Helper method for linking root cause to "invalid type definition" exception; needed for troubleshooting issues with forcing access on later JDKs (as module definition boundaries are more strictly enforced).
| |
| addBackReferenceProperty | back to summary |
|---|---|
| public void addBackReferenceProperty(String referenceName, SettableBeanProperty prop) throws JsonMappingException Method called to add a property that represents so-called back reference; reference that "points back" to object that has forward reference to currently built bean. | |
| addCreatorProperty | back to summary |
|---|---|
| public void addCreatorProperty(SettableBeanProperty prop) Method called by deserializer factory, when a "creator property" (something that is passed via constructor- or factory method argument; instead of setter or field). Default implementation does not do anything; we may need to revisit this decision if these properties need to be available through accessors. For now, however, we just have to ensure that we don't try to resolve types that masked setter/field has (see [JACKSON-700] for details). | |
| addIgnorable | back to summary |
|---|---|
| public void addIgnorable(String propName) Method that will add property name as one of properties that can be ignored if not recognized. | |
| addIncludable | back to summary |
|---|---|
| public void addIncludable(String propName) Method that will add property name as one of the properties that will be included.
| |
| addInjectable | back to summary |
|---|---|
| public void addInjectable(PropertyName propName, JavaType propType, Annotations contextAnnotations, AnnotatedMember member, Object valueId) throws JsonMappingException | |
| addOrReplaceProperty | back to summary |
|---|---|
| public void addOrReplaceProperty(SettableBeanProperty prop, boolean allowOverride) Method for adding a new property or replacing a property. | |
| addProperty | back to summary |
|---|---|
| public void addProperty(SettableBeanProperty prop) Method to add a property setter. Will ensure that there is no
unexpected override; if one is found will throw a
| |
| build | back to summary |
|---|---|
| public JsonDeserializer Method for constructing a | |
| buildAbstract | back to summary |
|---|---|
| public AbstractDeserializer buildAbstract() Alternate build method used when we must be using some form of abstract resolution, usually by using addition Type Id ("polymorphic deserialization")
| |
| buildBuilderBased | back to summary |
|---|---|
| public JsonDeserializer Method for constructing a specialized deserializer that uses additional external Builder object during data binding. | |
| createBuilderBasedDeserializer | back to summary |
|---|---|
| protected JsonDeserializer Extension point for overriding the actual creation of the builder deserializer.
| |
| findProperty | back to summary |
|---|---|
| public SettableBeanProperty findProperty(PropertyName propertyName) | |
| getAnySetter | back to summary |
|---|---|
| public SettableAnyProperty getAnySetter() | |
| getBuilderConfig | back to summary |
|---|---|
| public JsonPOJOBuilder. | |
| getBuildMethod | back to summary |
|---|---|
| public AnnotatedMethod getBuildMethod() | |
| getInjectables | back to summary |
|---|---|
| public List | |
| getObjectIdReader | back to summary |
|---|---|
| public ObjectIdReader getObjectIdReader() | |
| getProperties | back to summary |
|---|---|
| public Iterator Method that allows accessing all properties that this builder currently contains. Note that properties are returned in order that properties are ordered (explictly, or by rule), which is the serialization order. | |
| getValueInstantiator | back to summary |
|---|---|
| public ValueInstantiator getValueInstantiator() | |
| hasIgnorable | back to summary |
|---|---|
public boolean hasIgnorable(String name)
| |
| hasProperty | back to summary |
|---|---|
| public boolean hasProperty(PropertyName propertyName) | |
| removeProperty | back to summary |
|---|---|
| public SettableBeanProperty removeProperty(PropertyName name) | |
| setAnySetter | back to summary |
|---|---|
| public void setAnySetter(SettableAnyProperty s) | |
| setIgnoreUnknownProperties | back to summary |
|---|---|
| public void setIgnoreUnknownProperties(boolean ignore) | |
| setObjectIdReader | back to summary |
|---|---|
| public void setObjectIdReader(ObjectIdReader r) | |
| setPOJOBuilder | back to summary |
|---|---|
| public void setPOJOBuilder(AnnotatedMethod buildMethod, JsonPOJOBuilder. | |
| setValueInstantiator | back to summary |
|---|---|
| public void setValueInstantiator(ValueInstantiator inst) | |