ObjectMapper, which
passes an immutable instance to be used for deserialization process.
Note that instances are considered immutable and as such no copies should need to be created for sharing; all copying is done with "fluent factory" methods.
| Modifier and Type | Field and Description |
|---|---|
| protected final CoercionConfigs | |
| protected final ConstructorDetector | |
| protected final int | _deserFeatures
Set of |
| protected final int | _formatReadFeatures
States of |
| protected final int | _formatReadFeaturesToChange
Bitflag of |
| protected final JsonNodeFactory | _nodeFactory
Factory used for constructing |
| protected final int | _parserFeatures
States of |
| protected final int | _parserFeaturesToChange
Bitflag of |
| protected final LinkedNode | _problemHandlers
Linked list that contains all registered problem handlers. |
| private static final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | DeserializationConfig(BaseSettings base, SubtypeResolver str, SimpleMixInResolver mixins, RootNameLookup rootNames, ConfigOverrides configOverrides, CoercionConfigs coercionConfigs, DatatypeFeatures datatypeFeatures)
Constructor used by ObjectMapper to create default configuration object instance. |
| protected | DeserializationConfig(DeserializationConfig src, SubtypeResolver str, SimpleMixInResolver mixins, RootNameLookup rootNames, ConfigOverrides configOverrides, CoercionConfigs coercionConfigs)
Copy-constructor used for making a copy used by new |
| private | DeserializationConfig(DeserializationConfig src, long mapperFeatures, int deserFeatures, int parserFeatures, int parserFeatureMask, int formatFeatures, int formatFeatureMask)
|
| private | DeserializationConfig(DeserializationConfig src, SubtypeResolver str)
Copy constructor used to create a non-shared instance with given mix-in annotation definitions and subtype resolver. |
| private | |
| private | |
| private | |
| private | DeserializationConfig(DeserializationConfig src, LinkedNode<DeserializationProblemHandler> problemHandlers)
|
| private | |
| private | |
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected final DeserializationConfig | _with(DatatypeFeatures dtFeatures)
Implements abstract com. |
| protected final DeserializationConfig | _withBase(BaseSettings newBase)
Implements abstract com. |
| private DeserializationConfig | |
| protected final DeserializationConfig | _withMapperFeatures(long mapperFeatures)
Implements abstract com. |
| private DeserializationConfig | |
| public CoercionAction | Returns: CoercionAction configured for specific coercionLogical target type of coercion targetType, Class<?> Physical target type of coercion targetClass, CoercionInputShape Input shape to coerce from inputShape)General-purpose accessor for finding what to do when specified coercion from shape that is now always allowed to be coerced from is requested. |
| public CoercionAction | Returns: CoercionAction configured for specified coercion from blank stringLogical target type of coercion targetType, Class<?> Physical target type of coercion targetClass, CoercionAction Return value to use in case "blanks as empty"
is not allowed actionIfBlankNotAllowed)More specialized accessor called in case of input being a blank String (one consisting of only white space characters with length of at least one). |
| public TypeDeserializer | findTypeDeserializer(JavaType baseType)
Helper method that is needed to properly handle polymorphic referenced
types, such as types referenced by |
| protected BaseSettings | |
| public ConstructorDetector | |
| public final int | getDeserializationFeatures()
Bulk access method for getting the bit mask of all |
| public final JsonNodeFactory | |
| public LinkedNode | |
| public final boolean | hasDeserializationFeatures(int featureMask)
Bulk access method for checking that all features specified by mask are enabled. |
| public final boolean | hasSomeOfFeatures(int featureMask)
Bulk access method for checking that at least one of features specified by mask is enabled. |
| public JsonParser | initialize(JsonParser p)
Method called by |
| public JsonParser | |
| public BeanDescription | introspect(JavaType
Type of class to be introspected type)Method that will introspect full bean properties for the purpose of building a bean deserializer |
| public BeanDescription | |
| public BeanDescription | introspectForBuilder(JavaType type)
Deprecated
Since 2.12 - use variant that takes both builder and value type
|
| public BeanDescription | introspectForCreation(JavaType type)
Method that will introspect subset of bean properties needed to construct bean instance. |
| public final boolean | Returns: True if feature is enabled; false otherwiseFeature to check feature)Accessor for checking whether give |
| public final boolean | |
| public final boolean | Returns: True if feature is enabled; false otherwiseFeature to check feature)Implements abstract com. DatatypeFeature
is enabled or not.
|
| public final boolean | requiresFullValue()
Convenience method equivalent to:
|
| public boolean | useRootWrapping()
Implements abstract com. |
| public DeserializationConfig | with(SubtypeResolver str)
Implements abstract com. SubtypeResolver
to use.
|
| public DeserializationConfig | with(ContextAttributes attrs)
Implements abstract com. |
| public DeserializationConfig | with(DeserializationFeature feature)
Fluent factory method that will construct and return a new configuration object instance with specified features enabled. |
| public DeserializationConfig | with(DeserializationFeature first, DeserializationFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features enabled. |
| public DeserializationConfig | with(JsonParser.
Fluent factory method that will construct and return a new configuration object instance with specified features enabled. |
| public DeserializationConfig | with(FormatFeature feature)
Fluent factory method that will construct and return a new configuration object instance with specified features enabled. |
| public DeserializationConfig | with(JsonNodeFactory f)
Fluent factory method that will construct a new instance with
specified |
| public DeserializationConfig | |
| public DeserializationConfig | withFeatures(DeserializationFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features enabled. |
| public DeserializationConfig | withFeatures(JsonParser.
Fluent factory method that will construct and return a new configuration object instance with specified features enabled. |
| public DeserializationConfig | withFeatures(FormatFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features enabled. |
| public DeserializationConfig | withHandler(DeserializationProblemHandler h)
Method that can be used to add a handler that can (try to) resolve non-fatal deserialization problems. |
| public DeserializationConfig | withNoProblemHandlers()
Method for removing all configured problem handlers; usually done to replace existing handler(s) with different one(s) |
| public DeserializationConfig | without(DeserializationFeature feature)
Fluent factory method that will construct and return a new configuration object instance with specified feature disabled. |
| public DeserializationConfig | without(DeserializationFeature first, DeserializationFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features disabled. |
| public DeserializationConfig | without(JsonParser.
Fluent factory method that will construct and return a new configuration object instance with specified feature disabled. |
| public DeserializationConfig | without(FormatFeature feature)
Fluent factory method that will construct and return a new configuration object instance with specified feature disabled. |
| public DeserializationConfig | withoutFeatures(DeserializationFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features disabled. |
| public DeserializationConfig | withoutFeatures(JsonParser.
Fluent factory method that will construct and return a new configuration object instance with specified features disabled. |
| public DeserializationConfig | withoutFeatures(FormatFeature... features)
Fluent factory method that will construct and return a new configuration object instance with specified features disabled. |
| public DeserializationConfig | withRootName(PropertyName
to use: if null, means "use default" (clear setting);
if empty String ("") means that no root name wrapping is used;
otherwise defines root name to use. rootName)Implements abstract com. |
| public DeserializationConfig | withView(Class<?> view)
Implements abstract com. |
| _coercionConfigs | back to summary |
|---|---|
protected final CoercionConfigs _coercionConfigs
| |
| _ctorDetector | back to summary |
|---|---|
protected final ConstructorDetector _ctorDetector
| |
| _deserFeatures | back to summary |
|---|---|
| protected final int _deserFeatures Set of | |
| _formatReadFeatures | back to summary |
|---|---|
| protected final int _formatReadFeatures States of
| |
| _formatReadFeaturesToChange | back to summary |
|---|---|
| protected final int _formatReadFeaturesToChange Bitflag of
| |
| _nodeFactory | back to summary |
|---|---|
| protected final JsonNodeFactory _nodeFactory Factory used for constructing | |
| _parserFeatures | back to summary |
|---|---|
| protected final int _parserFeatures States of | |
| _parserFeaturesToChange | back to summary |
|---|---|
| protected final int _parserFeaturesToChange Bitflag of | |
| _problemHandlers | back to summary |
|---|---|
| protected final LinkedNode<DeserializationProblemHandler> _problemHandlers Linked list that contains all registered problem handlers. Implementation as front-added linked list allows for sharing of the list (tail) without copying the list. | |
| DESER_FEATURE_DEFAULTS | back to summary |
|---|---|
| private static final int DESER_FEATURE_DEFAULTS | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| DeserializationConfig | back to summary |
|---|---|
| public DeserializationConfig(BaseSettings base, SubtypeResolver str, SimpleMixInResolver mixins, RootNameLookup rootNames, ConfigOverrides configOverrides, CoercionConfigs coercionConfigs, DatatypeFeatures datatypeFeatures) Constructor used by ObjectMapper to create default configuration object instance.
| |
| DeserializationConfig | back to summary |
|---|---|
| protected DeserializationConfig(DeserializationConfig src, SubtypeResolver str, SimpleMixInResolver mixins, RootNameLookup rootNames, ConfigOverrides configOverrides, CoercionConfigs coercionConfigs) Copy-constructor used for making a copy used by new
| |
| DeserializationConfig | back to summary |
|---|---|
| private DeserializationConfig(DeserializationConfig src, long mapperFeatures, int deserFeatures, int parserFeatures, int parserFeatureMask, int formatFeatures, int formatFeatureMask) | |
| DeserializationConfig | back to summary |
|---|---|
| private DeserializationConfig(DeserializationConfig src, SubtypeResolver str) Copy constructor used to create a non-shared instance with given mix-in annotation definitions and subtype resolver. | |
| DeserializationConfig | back to summary |
|---|---|
| private DeserializationConfig(DeserializationConfig src, BaseSettings base) | |
| DeserializationConfig | back to summary |
|---|---|
| private DeserializationConfig(DeserializationConfig src, JsonNodeFactory f) | |
| DeserializationConfig | back to summary |
|---|---|
| private DeserializationConfig(DeserializationConfig src, ConstructorDetector ctorDetector) | |
| DeserializationConfig | back to summary |
|---|---|
| private DeserializationConfig(DeserializationConfig src, LinkedNode<DeserializationProblemHandler> problemHandlers) | |
| DeserializationConfig | back to summary |
|---|---|
| private DeserializationConfig(DeserializationConfig src, PropertyName rootName) | |
| DeserializationConfig | back to summary |
|---|---|
| private DeserializationConfig(DeserializationConfig src, Class<?> view) | |
| DeserializationConfig | back to summary |
|---|---|
| protected DeserializationConfig(DeserializationConfig src, ContextAttributes attrs) | |
| DeserializationConfig | back to summary |
|---|---|
| protected DeserializationConfig(DeserializationConfig src, SimpleMixInResolver mixins) | |
| DeserializationConfig | back to summary |
|---|---|
protected DeserializationConfig(DeserializationConfig src, DatatypeFeatures datatypeFeatures)
| |
| _with | back to summary |
|---|---|
| protected final DeserializationConfig _with(DatatypeFeatures dtFeatures) Implements abstract com.
| |
| _withBase | back to summary |
|---|---|
| protected final DeserializationConfig _withBase(BaseSettings newBase) Implements abstract com.
| |
| _withJsonReadFeatures | back to summary |
|---|---|
| private DeserializationConfig _withJsonReadFeatures(FormatFeature... features) | |
| _withMapperFeatures | back to summary |
|---|---|
| protected final DeserializationConfig _withMapperFeatures(long mapperFeatures) Implements abstract com.
| |
| _withoutJsonReadFeatures | back to summary |
|---|---|
| private DeserializationConfig _withoutJsonReadFeatures(FormatFeature... features) | |
| findCoercionAction | back to summary |
|---|---|
| public CoercionAction findCoercionAction(LogicalType targetType, Class<?> targetClass, CoercionInputShape inputShape) General-purpose accessor for finding what to do when specified coercion from shape that is now always allowed to be coerced from is requested.
| |
| findCoercionFromBlankString | back to summary |
|---|---|
| public CoercionAction findCoercionFromBlankString(LogicalType targetType, Class<?> targetClass, CoercionAction actionIfBlankNotAllowed) More specialized accessor called in case of input being a blank
String (one consisting of only white space characters with length of at least one).
Will basically first determine if "blank as empty" is allowed: if not,
returns
| |
| findTypeDeserializer | back to summary |
|---|---|
| public TypeDeserializer findTypeDeserializer(JavaType baseType) throws JsonMappingException Helper method that is needed to properly handle polymorphic referenced
types, such as types referenced by
| |
| getBaseSettings | back to summary |
|---|---|
| protected BaseSettings getBaseSettings() | |
| getConstructorDetector | back to summary |
|---|---|
public ConstructorDetector getConstructorDetector()
| |
| getDeserializationFeatures | back to summary |
|---|---|
| public final int getDeserializationFeatures() Bulk access method for getting the bit mask of all | |
| getNodeFactory | back to summary |
|---|---|
| public final JsonNodeFactory getNodeFactory() | |
| getProblemHandlers | back to summary |
|---|---|
| public LinkedNode Method for getting head of the problem handler chain. May be null, if no handlers have been added. | |
| hasDeserializationFeatures | back to summary |
|---|---|
| public final boolean hasDeserializationFeatures(int featureMask) Bulk access method for checking that all features specified by mask are enabled.
| |
| hasSomeOfFeatures | back to summary |
|---|---|
| public final boolean hasSomeOfFeatures(int featureMask) Bulk access method for checking that at least one of features specified by mask is enabled.
| |
| initialize | back to summary |
|---|---|
| public JsonParser initialize(JsonParser p) Method called by
| |
| initialize | back to summary |
|---|---|
public JsonParser initialize(JsonParser p, FormatSchema schema)
| |
| introspect | back to summary |
|---|---|
| public BeanDescription introspect(JavaType type) Method that will introspect full bean properties for the purpose of building a bean deserializer
| |
| introspectForBuilder | back to summary |
|---|---|
public BeanDescription introspectForBuilder(JavaType builderType, BeanDescription valueTypeDesc)
| |
| introspectForBuilder | back to summary |
|---|---|
| public BeanDescription introspectForBuilder(JavaType type)
Deprecated Since 2.12 - use variant that takes both builder and value type
| |
| introspectForCreation | back to summary |
|---|---|
| public BeanDescription introspectForCreation(JavaType type) Method that will introspect subset of bean properties needed to construct bean instance. | |
| isEnabled | back to summary |
|---|---|
| public final boolean isEnabled(DeserializationFeature feature) Accessor for checking whether give
| |
| isEnabled | back to summary |
|---|---|
| public final boolean isEnabled(JsonParser. | |
| isEnabled | back to summary |
|---|---|
| public final boolean isEnabled(DatatypeFeature feature) Implements abstract com. Accessor for checking whether give
| |
| requiresFullValue | back to summary |
|---|---|
| public final boolean requiresFullValue() Convenience method equivalent to:
| |
| useRootWrapping | back to summary |
|---|---|
| public boolean useRootWrapping() Implements abstract com. Doc from com. Accessor for checking whether configuration indicates that "root wrapping" (use of an extra property/name pair at root level) is expected or not.
| |
| with | back to summary |
|---|---|
| public DeserializationConfig with(SubtypeResolver str) Implements abstract com. Doc from com. Method for constructing and returning a new instance with different
Note make sure to register new instance with
| |
| with | back to summary |
|---|---|
| public DeserializationConfig with(ContextAttributes attrs) Implements abstract com. Doc from com. Method for constructing an instance that has specified contextual attributes.
| |
| with | back to summary |
|---|---|
| public DeserializationConfig with(DeserializationFeature feature) Fluent factory method that will construct and return a new configuration object instance with specified features enabled. | |
| with | back to summary |
|---|---|
| public DeserializationConfig with(DeserializationFeature first, DeserializationFeature... features) Fluent factory method that will construct and return a new configuration object instance with specified features enabled. | |
| with | back to summary |
|---|---|
| public DeserializationConfig with(JsonParser. Fluent factory method that will construct and return a new configuration object instance with specified features enabled.
| |
| with | back to summary |
|---|---|
| public DeserializationConfig with(FormatFeature feature) Fluent factory method that will construct and return a new configuration object instance with specified features enabled.
| |
| with | back to summary |
|---|---|
| public DeserializationConfig with(JsonNodeFactory f) Fluent factory method that will construct a new instance with
specified | |
| with | back to summary |
|---|---|
public DeserializationConfig with(ConstructorDetector ctorDetector)
| |
| withFeatures | back to summary |
|---|---|
| public DeserializationConfig withFeatures(DeserializationFeature... features) Fluent factory method that will construct and return a new configuration object instance with specified features enabled. | |
| withFeatures | back to summary |
|---|---|
| public DeserializationConfig withFeatures(JsonParser. Fluent factory method that will construct and return a new configuration object instance with specified features enabled.
| |
| withFeatures | back to summary |
|---|---|
| public DeserializationConfig withFeatures(FormatFeature... features) Fluent factory method that will construct and return a new configuration object instance with specified features enabled.
| |
| withHandler | back to summary |
|---|---|
| public DeserializationConfig withHandler(DeserializationProblemHandler h) Method that can be used to add a handler that can (try to) resolve non-fatal deserialization problems. | |
| withNoProblemHandlers | back to summary |
|---|---|
| public DeserializationConfig withNoProblemHandlers() Method for removing all configured problem handlers; usually done to replace existing handler(s) with different one(s) | |
| without | back to summary |
|---|---|
| public DeserializationConfig without(DeserializationFeature feature) Fluent factory method that will construct and return a new configuration object instance with specified feature disabled. | |
| without | back to summary |
|---|---|
| public DeserializationConfig without(DeserializationFeature first, DeserializationFeature... features) Fluent factory method that will construct and return a new configuration object instance with specified features disabled. | |
| without | back to summary |
|---|---|
| public DeserializationConfig without(JsonParser. Fluent factory method that will construct and return a new configuration object instance with specified feature disabled.
| |
| without | back to summary |
|---|---|
| public DeserializationConfig without(FormatFeature feature) Fluent factory method that will construct and return a new configuration object instance with specified feature disabled.
| |
| withoutFeatures | back to summary |
|---|---|
| public DeserializationConfig withoutFeatures(DeserializationFeature... features) Fluent factory method that will construct and return a new configuration object instance with specified features disabled. | |
| withoutFeatures | back to summary |
|---|---|
| public DeserializationConfig withoutFeatures(JsonParser. Fluent factory method that will construct and return a new configuration object instance with specified features disabled.
| |
| withoutFeatures | back to summary |
|---|---|
| public DeserializationConfig withoutFeatures(FormatFeature... features) Fluent factory method that will construct and return a new configuration object instance with specified features disabled.
| |
| withRootName | back to summary |
|---|---|
| public DeserializationConfig withRootName(PropertyName rootName) Implements abstract com. Doc from com. Method for constructing and returning a new instance with different root name to use (none, if null).
Note that when a root name is set to a non-Empty String, this will automatically force use
of root element wrapping with given name. If empty String passed, will
disable root name wrapping; and if null used, will instead use
| |
| withView | back to summary |
|---|---|
| public DeserializationConfig withView(Class<?> view) Implements abstract com. Doc from com. Method for constructing and returning a new instance with different view to use.
| |