Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.cfg

public abstract Class MapperConfig<T extends com.fasterxml.jackson.databind.cfg.MapperConfig<T>>

extends Object
implements MixInResolver, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, com.fasterxml.jackson.databind.introspect.ClassIntrospector.MixInResolver
Known Direct Subclasses
com.fasterxml.jackson.databind.cfg.MapperConfigBase
Imports
java.text.DateFormat, java.util.Locale, .TimeZone, com.fasterxml.jackson.annotation.*, com.fasterxml.jackson.core.Base64Variant, .SerializableString, com.fasterxml.jackson.core.io.SerializedString, com.fasterxml.jackson.core.type.TypeReference, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.introspect.AccessorNamingStrategy, .Annotated, .AnnotatedClass, .ClassIntrospector, .NopAnnotationIntrospector, .VisibilityChecker, com.fasterxml.jackson.databind.jsontype.DefaultBaseTypeLimitingValidator, .PolymorphicTypeValidator, .SubtypeResolver, .TypeIdResolver, .TypeResolverBuilder, com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator, com.fasterxml.jackson.databind.type.TypeFactory, com.fasterxml.jackson.databind.util.ClassUtil

Interface that defines functionality accessible through both serialization and deserialization configuration objects; accessors to mode-independent configuration settings and such. In addition, shared features are defined in MapperFeature.

Small part of implementation is included here by aggregating BaseSettings instance that contains configuration that is shared between different types of instances.

Field Summary

Modifier and TypeField and Description
protected final BaseSettings
_base

Immutable container object for simple configuration settings.

protected final long
_mapperFeatures

Set of shared mapper features enabled.

protected static final JsonFormat.Value
protected static final JsonInclude.Value
private static final long

Constructor Summary

AccessConstructor and Description
protected
MapperConfig(BaseSettings base, long mapperFeatures)

protected
MapperConfig(MapperConfig<T> src, long mapperFeatures)

protected
protected

Method Summary

Modifier and TypeMethod and Description
public final boolean

Returns:

True if access modifier overriding is allowed (and may be done for any Field, Method, Constructor or Class); false to prevent any attempts to override.
canOverrideAccessModifiers
()

Accessor for determining whether it is ok to try to force override of access modifiers to be able to get or set values of non-public Methods, Fields; to invoke non-public Constructors, Methods; or to instantiate non-public Classes.

public static <F extends Enum<F> & ConfigFeature> int
collectFeatureDefaults(Class<F> enumClass)

Method that calculates bit set (flags) of all features that are enabled by default.

public SerializableString

Returns:

Optimized text object constructed
compileString
(String
Text to represent
src
)

Method for constructing a specialized textual object that can typically be serialized faster than basic java.lang.String (depending on escaping needed if any, char-to-byte encoding if needed).

public JavaType
constructSpecializedType(JavaType baseType, Class<?> subclass)

public final JavaType
constructType(Class<?> cls)

Helper method that will construct JavaType for given raw class.

public final JavaType
constructType(TypeReference<?> valueTypeRef)

Helper method that will construct JavaType for given type reference This is a simple short-cut for:

    getTypeFactory().constructType(valueTypeRef);
public abstract ConfigOverride

Returns:

Override object to use for the type, if defined; null if none.
findConfigOverride
(Class<?> type)

Accessor for finding ConfigOverride to use for properties of given type, if any exist; or return `null` if not.

public abstract PropertyName
public abstract PropertyName
findRootName(Class<?> rawRootType)

public final AccessorNamingStrategy.Provider
public abstract Class<?>
getActiveView()

Accessor for finding currently active view, if any (null if none)

public AnnotationIntrospector
getAnnotationIntrospector()

Method for getting AnnotationIntrospector configured to introspect annotation values used for configuration.

public abstract ContextAttributes
getAttributes()

Method for accessing per-instance shared (baseline/default) attribute values; these are used as the basis for per-call attributes.

public Base64Variant
getBase64Variant()

Method called during deserialization if Base64 encoded content needs to be decoded.

public CacheProvider
public ClassIntrospector
public abstract ConfigOverride

Returns:

Override object to use for the type, never null (but may be empty)
getConfigOverride
(Class<?> type)

Accessor for finding ConfigOverride to use for properties of given type, if any exist; or if none, return an immutable "empty" instance with no overrides.

public abstract DatatypeFeatures
public final DateFormat
getDateFormat()

Method for accessing currently configured (textual) date format that will be used for reading or writing date values (in case of writing, only if textual output is configured; not if dates are to be serialized as time stamps).

public abstract JsonInclude.Value
getDefaultInclusion(Class<?>
Type of the instance containing the targeted property.
baseType
,
Class<?>
Type of the property to look up inclusion setting for.
propertyType
)

Accessor for default property inclusion to use for serialization, considering possible per-type override for given base type and possible per-type override for given property type.

public JsonInclude.Value
getDefaultInclusion(Class<?>
Type of the instance containing the targeted property.
baseType
,
Class<?>
Type of the property to look up inclusion setting for.
propertyType
,
JsonInclude.Value
Inclusion setting to return if no overrides found.
defaultIncl
)

Accessor for default property inclusion to use for serialization, considering possible per-type override for given base type and possible per-type override for given property type; but if none found, returning given defaultIncl

public abstract Boolean

Returns:

Global base settings, if any; `null` if none.
getDefaultMergeable
()

Accessor for the baseline merge info used as the global baseline, not considering possible per-type overrides.

public abstract Boolean

Returns:

Type-specific settings (if any); global defaults (same as getDefaultMergeable()) otherwise, if any defined; or `null` if neither defined
getDefaultMergeable
(Class<?> baseType)

Accessor for the baseline merge info used for given type, including global defaults if no type-specific overrides defined.

public abstract JsonFormat.Value
getDefaultPropertyFormat(Class<?> baseType)

Accessor for default format settings to use for serialization (and, to a degree deserialization), considering baseline settings and per-type defaults for given base type (if any).

public abstract JsonIgnoreProperties.Value
getDefaultPropertyIgnorals(Class<?> baseType)

Accessor for default property ignorals to use, if any, for given base type, based on config overrides settings (see findConfigOverride(Class)).

public abstract JsonIgnoreProperties.Value
getDefaultPropertyIgnorals(Class<?> baseType, AnnotatedClass actualClass)

Helper method that may be called to see if there are property ignoral definitions from annotations (via AnnotatedClass) or through "config overrides".

public abstract JsonInclude.Value
getDefaultPropertyInclusion()

Accessor for default property inclusion to use for serialization, used unless overridden by per-type or per-property overrides.

public abstract JsonInclude.Value
getDefaultPropertyInclusion(Class<?> baseType)

Accessor for default property inclusion to use for serialization, considering possible per-type override for given base type.

public JsonInclude.Value
getDefaultPropertyInclusion(Class<?> baseType, JsonInclude.Value
Inclusion setting to return if no overrides found.
defaultIncl
)

Accessor for default property inclusion to use for serialization, considering possible per-type override for given base type; but if none found, returning given defaultIncl

public abstract JsonIncludeProperties.Value
getDefaultPropertyInclusions(Class<?> baseType, AnnotatedClass actualClass)

Helper method that may be called to see if there are property inclusion definitions from annotations (via AnnotatedClass).

public abstract JsonSetter.Value

Returns:

Global base settings; never null
getDefaultSetterInfo
()

Accessor for the baseline setter info used as the global baseline, not considering possible per-type overrides.

public final TypeResolverBuilder<?>
getDefaultTyper(JavaType baseType)

Method called to locate a type info handler for types that do not have one explicitly declared via annotations (or other configuration).

public abstract VisibilityChecker<?>
getDefaultVisibilityChecker()

Accessor for object used for determining whether specific property elements (method, constructors, fields) can be auto-detected based on their visibility (access modifiers).

public abstract VisibilityChecker<?>
getDefaultVisibilityChecker(Class<?> baseType, AnnotatedClass actualClass)

Accessor for object used for determining whether specific property elements (method, constructors, fields) can be auto-detected based on their visibility (access modifiers).

public final HandlerInstantiator
public final Locale
getLocale()

Method for accessing the default java.util.Locale to use for formatting, unless overridden by local annotations.

public PolymorphicTypeValidator
getPolymorphicTypeValidator()

Simple accessor for default PolymorphicTypeValidator to use for legacy Default Typing methods (ObjectMapper.enableDefaultTyping()) and annotation based enabling.

public final PropertyNamingStrategy
public abstract SubtypeResolver
public final TimeZone
getTimeZone()

Method for accessing the default java.util.TimeZone to use for formatting, unless overridden by local annotations.

public final TypeFactory
public boolean

Returns:

true if this configuration has explicitly specified java.util.TimeZone, or false if it uses the default time zone
hasExplicitTimeZone
()

Method for checking whether a java.util.TimeZone has been explicitly set for this configuring during construction of ObjectMapper or if it still has the default timezone/offset (zero-offset, "zulu").

public final boolean
hasMapperFeatures(int featureMask)

Deprecated Since 2.13 -- no replacement
"Bulk" access method for checking that all features specified by mask are enabled.
public BeanDescription
introspectClassAnnotations(Class<?> cls)

Accessor for getting bean description that only contains class annotations: useful if no getter/setter/creator information is needed.

public BeanDescription
introspectClassAnnotations(JavaType type)

Accessor for getting bean description that only contains class annotations: useful if no getter/setter/creator information is needed.

public BeanDescription
introspectDirectClassAnnotations(Class<?> cls)

Accessor for getting bean description that only contains immediate class annotations: ones from the class, and its direct mix-in, if any, but not from super types.

public final BeanDescription
introspectDirectClassAnnotations(JavaType type)

Accessor for getting bean description that only contains immediate class annotations: ones from the class, and its direct mix-in, if any, but not from super types.

public final boolean

Returns:

True if annotation processing is enabled; false if not
isAnnotationProcessingEnabled
()

Method for determining whether annotation processing is enabled or not (default settings are typically that it is enabled; must explicitly disable).

public final boolean
isEnabled(MapperFeature f)

Accessor for simple mapper features (which are shared for serialization, deserialization)

public abstract boolean

Returns:

True if feature is enabled; false otherwise
isEnabled
(DatatypeFeature
Feature to check
feature
)

Accessor for checking whether give DatatypeFeature is enabled or not.

public final boolean
shouldSortPropertiesAlphabetically()

Accessor for checking whether default settings for property handling indicate that properties should be alphabetically ordered or not.

public TypeIdResolver
typeIdResolverInstance(Annotated annotated, Class<? extends TypeIdResolver> resolverClass)

Method that can be called to obtain an instance of TypeIdResolver of specified type.

public TypeResolverBuilder<?>
typeResolverBuilderInstance(Annotated annotated, Class<? extends TypeResolverBuilder<?>> builderClass)

Method that can be called to obtain an instance of TypeIdResolver of specified type.

public abstract boolean
useRootWrapping()

Accessor for checking whether configuration indicates that "root wrapping" (use of an extra property/name pair at root level) is expected or not.

public abstract T
with(MapperFeature... features)

Method for constructing and returning a new instance with specified mapper features enabled.

public abstract T
with(MapperFeature feature, boolean state)

public abstract T
without(MapperFeature... features)

Method for constructing and returning a new instance with specified mapper features disabled.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_baseback to summary
protected final BaseSettings _base

Immutable container object for simple configuration settings.

_mapperFeaturesback to summary
protected final long _mapperFeatures

Set of shared mapper features enabled.

Note

changed from int (in Jackson 2.12 and prior} to long (2.13 and later)

EMPTY_FORMATback to summary
protected static final JsonFormat.Value EMPTY_FORMAT
Since
2.7
EMPTY_INCLUDEback to summary
protected static final JsonInclude.Value EMPTY_INCLUDE
Since
2.7
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

MapperConfigback to summary
protected MapperConfig(BaseSettings base, long mapperFeatures)
MapperConfigback to summary
protected MapperConfig(MapperConfig<T> src, long mapperFeatures)
MapperConfigback to summary
protected MapperConfig(MapperConfig<T> src, BaseSettings base)
MapperConfigback to summary
protected MapperConfig(MapperConfig<T> src)

Method Detail

canOverrideAccessModifiersback to summary
public final boolean canOverrideAccessModifiers()

Accessor for determining whether it is ok to try to force override of access modifiers to be able to get or set values of non-public Methods, Fields; to invoke non-public Constructors, Methods; or to instantiate non-public Classes. By default this is enabled, but on some platforms it needs to be prevented since if this would violate security constraints and cause failures.

Returns:boolean

True if access modifier overriding is allowed (and may be done for any Field, Method, Constructor or Class); false to prevent any attempts to override.

collectFeatureDefaultsback to summary
public static <F extends Enum<F> & ConfigFeature> int collectFeatureDefaults(Class<F> enumClass)

Method that calculates bit set (flags) of all features that are enabled by default.

compileStringback to summary
public SerializableString compileString(String src)

Method for constructing a specialized textual object that can typically be serialized faster than basic java.lang.String (depending on escaping needed if any, char-to-byte encoding if needed).

Parameters
src:String

Text to represent

Returns:SerializableString

Optimized text object constructed

Since
2.4
constructSpecializedTypeback to summary
public JavaType constructSpecializedType(JavaType baseType, Class<?> subclass)
constructTypeback to summary
public final JavaType constructType(Class<?> cls)

Helper method that will construct JavaType for given raw class. This is a simple short-cut for:

    getTypeFactory().constructType(cls);
constructTypeback to summary
public final JavaType constructType(TypeReference<?> valueTypeRef)

Helper method that will construct JavaType for given type reference This is a simple short-cut for:

    getTypeFactory().constructType(valueTypeRef);
findConfigOverrideback to summary
public abstract ConfigOverride findConfigOverride(Class<?> type)

Accessor for finding ConfigOverride to use for properties of given type, if any exist; or return `null` if not.

Note that only directly associated override is found; no type hierarchy traversal is performed.

Returns:ConfigOverride

Override object to use for the type, if defined; null if none.

Since
2.8
findRootNameback to summary
public abstract PropertyName findRootName(JavaType rootType)
Since
2.6
findRootNameback to summary
public abstract PropertyName findRootName(Class<?> rawRootType)
Since
2.6
getAccessorNamingback to summary
public final AccessorNamingStrategy.Provider getAccessorNaming()
getActiveViewback to summary
public abstract Class<?> getActiveView()

Accessor for finding currently active view, if any (null if none)

getAnnotationIntrospectorback to summary
public AnnotationIntrospector getAnnotationIntrospector()

Method for getting AnnotationIntrospector configured to introspect annotation values used for configuration.

Non-final since it is actually overridden by sub-classes (for now?)

getAttributesback to summary
public abstract ContextAttributes getAttributes()

Method for accessing per-instance shared (baseline/default) attribute values; these are used as the basis for per-call attributes.

Since
2.3
getBase64Variantback to summary
public Base64Variant getBase64Variant()

Method called during deserialization if Base64 encoded content needs to be decoded. Default version just returns default Jackson uses, which is modified-mime which does not add linefeeds (because those would have to be escaped in JSON strings); but this can be configured on ObjectWriter.

getCacheProviderback to summary
public CacheProvider getCacheProvider()
Since
2.16
getClassIntrospectorback to summary
public ClassIntrospector getClassIntrospector()
getConfigOverrideback to summary
public abstract ConfigOverride getConfigOverride(Class<?> type)

Accessor for finding ConfigOverride to use for properties of given type, if any exist; or if none, return an immutable "empty" instance with no overrides.

Note that only directly associated override is found; no type hierarchy traversal is performed.

Returns:ConfigOverride

Override object to use for the type, never null (but may be empty)

Since
2.9
getDatatypeFeaturesback to summary
public abstract DatatypeFeatures getDatatypeFeatures()
Since
2.15
getDateFormatback to summary
public final DateFormat getDateFormat()

Method for accessing currently configured (textual) date format that will be used for reading or writing date values (in case of writing, only if textual output is configured; not if dates are to be serialized as time stamps).

Note that typically DateFormat instances are not thread-safe (at least ones provided by JDK): this means that calling code should clone format instance before using it.

This method is usually only called by framework itself, since there are convenience methods available via DeserializationContext and SerializerProvider that take care of cloning and thread-safe reuse.

getDefaultInclusionback to summary
public abstract JsonInclude.Value getDefaultInclusion(Class<?> baseType, Class<?> propertyType)

Accessor for default property inclusion to use for serialization, considering possible per-type override for given base type and possible per-type override for given property type.

Note

if no override found, defaults to value returned by getDefaultPropertyInclusion().

Parameters
baseType:Class<?>

Type of the instance containing the targeted property.

propertyType:Class<?>

Type of the property to look up inclusion setting for.

Since
2.9
getDefaultInclusionback to summary
public JsonInclude.Value getDefaultInclusion(Class<?> baseType, Class<?> propertyType, JsonInclude.Value defaultIncl)

Accessor for default property inclusion to use for serialization, considering possible per-type override for given base type and possible per-type override for given property type; but if none found, returning given defaultIncl

Parameters
baseType:Class<?>

Type of the instance containing the targeted property.

propertyType:Class<?>

Type of the property to look up inclusion setting for.

defaultIncl:JsonInclude.Value

Inclusion setting to return if no overrides found.

Since
2.9
getDefaultMergeableback to summary
public abstract Boolean getDefaultMergeable()

Accessor for the baseline merge info used as the global baseline, not considering possible per-type overrides.

Returns:Boolean

Global base settings, if any; `null` if none.

Since
2.9
getDefaultMergeableback to summary
public abstract Boolean getDefaultMergeable(Class<?> baseType)

Accessor for the baseline merge info used for given type, including global defaults if no type-specific overrides defined.

Returns:Boolean

Type-specific settings (if any); global defaults (same as getDefaultMergeable()) otherwise, if any defined; or `null` if neither defined

Since
2.9
getDefaultPropertyFormatback to summary
public abstract JsonFormat.Value getDefaultPropertyFormat(Class<?> baseType)

Accessor for default format settings to use for serialization (and, to a degree deserialization), considering baseline settings and per-type defaults for given base type (if any).

Since
2.7
getDefaultPropertyIgnoralsback to summary
public abstract JsonIgnoreProperties.Value getDefaultPropertyIgnorals(Class<?> baseType)

Accessor for default property ignorals to use, if any, for given base type, based on config overrides settings (see findConfigOverride(Class)).

Since
2.8
getDefaultPropertyIgnoralsback to summary
public abstract JsonIgnoreProperties.Value getDefaultPropertyIgnorals(Class<?> baseType, AnnotatedClass actualClass)

Helper method that may be called to see if there are property ignoral definitions from annotations (via AnnotatedClass) or through "config overrides". If both exist, config overrides have precedence over class annotations.

Since
2.8
getDefaultPropertyInclusionback to summary
public abstract JsonInclude.Value getDefaultPropertyInclusion()

Accessor for default property inclusion to use for serialization, used unless overridden by per-type or per-property overrides.

Since
2.7
getDefaultPropertyInclusionback to summary
public abstract JsonInclude.Value getDefaultPropertyInclusion(Class<?> baseType)

Accessor for default property inclusion to use for serialization, considering possible per-type override for given base type.

Note

if no override found, defaults to value returned by getDefaultPropertyInclusion().

Since
2.7
getDefaultPropertyInclusionback to summary
public JsonInclude.Value getDefaultPropertyInclusion(Class<?> baseType, JsonInclude.Value defaultIncl)

Accessor for default property inclusion to use for serialization, considering possible per-type override for given base type; but if none found, returning given defaultIncl

Parameters
defaultIncl:JsonInclude.Value

Inclusion setting to return if no overrides found.

Since
2.8.2
getDefaultPropertyInclusionsback to summary
public abstract JsonIncludeProperties.Value getDefaultPropertyInclusions(Class<?> baseType, AnnotatedClass actualClass)

Helper method that may be called to see if there are property inclusion definitions from annotations (via AnnotatedClass). TODO: config override.

Since
2.12
getDefaultSetterInfoback to summary
public abstract JsonSetter.Value getDefaultSetterInfo()

Accessor for the baseline setter info used as the global baseline, not considering possible per-type overrides.

Returns:JsonSetter.Value

Global base settings; never null

Since
2.9
getDefaultTyperback to summary
public final TypeResolverBuilder<?> getDefaultTyper(JavaType baseType)

Method called to locate a type info handler for types that do not have one explicitly declared via annotations (or other configuration). If such default handler is configured, it is returned; otherwise null is returned.

getDefaultVisibilityCheckerback to summary
public abstract VisibilityChecker<?> getDefaultVisibilityChecker()

Accessor for object used for determining whether specific property elements (method, constructors, fields) can be auto-detected based on their visibility (access modifiers). Can be changed to allow different minimum visibility levels for auto-detection. Note that this is the global handler; individual types (classes) can further override active checker used (using JsonAutoDetect annotation)

getDefaultVisibilityCheckerback to summary
public abstract VisibilityChecker<?> getDefaultVisibilityChecker(Class<?> baseType, AnnotatedClass actualClass)

Accessor for object used for determining whether specific property elements (method, constructors, fields) can be auto-detected based on their visibility (access modifiers). This is based on global defaults (as would be returned by getDefaultVisibilityChecker(), but then modified by possible class annotation (see JsonAutoDetect) and/or per-type config override (see ConfigOverride#getVisibility()).

Since
2.9
getHandlerInstantiatorback to summary
public final HandlerInstantiator getHandlerInstantiator()
getLocaleback to summary
public final Locale getLocale()

Method for accessing the default java.util.Locale to use for formatting, unless overridden by local annotations. Initially set to Locale#getDefault().

getPolymorphicTypeValidatorback to summary
public PolymorphicTypeValidator getPolymorphicTypeValidator()

Simple accessor for default PolymorphicTypeValidator to use for legacy Default Typing methods (ObjectMapper.enableDefaultTyping()) and annotation based enabling.

Since 2.11 will also check MapperFeature#BLOCK_UNSAFE_POLYMORPHIC_BASE_TYPES to possibly override default to more restrictive implementation, see com.fasterxml.jackson.databind.jsontype.DefaultBaseTypeLimitingValidator).

Since
2.10
getPropertyNamingStrategyback to summary
public final PropertyNamingStrategy getPropertyNamingStrategy()
getSubtypeResolverback to summary
public abstract SubtypeResolver getSubtypeResolver()
getTimeZoneback to summary
public final TimeZone getTimeZone()

Method for accessing the default java.util.TimeZone to use for formatting, unless overridden by local annotations. Initially set to TimeZone#getDefault().

getTypeFactoryback to summary
public final TypeFactory getTypeFactory()
hasExplicitTimeZoneback to summary
public boolean hasExplicitTimeZone()

Method for checking whether a java.util.TimeZone has been explicitly set for this configuring during construction of ObjectMapper or if it still has the default timezone/offset (zero-offset, "zulu").

Returns:boolean

true if this configuration has explicitly specified java.util.TimeZone, or false if it uses the default time zone

Since
2.12
hasMapperFeaturesback to summary
public final boolean hasMapperFeatures(int featureMask)

Deprecated

Since 2.13 -- no replacement

"Bulk" access method for checking that all features specified by mask are enabled.

Annotations
@Deprecated
Since
2.3
introspectClassAnnotationsback to summary
public BeanDescription introspectClassAnnotations(Class<?> cls)

Accessor for getting bean description that only contains class annotations: useful if no getter/setter/creator information is needed.

introspectClassAnnotationsback to summary
public BeanDescription introspectClassAnnotations(JavaType type)

Accessor for getting bean description that only contains class annotations: useful if no getter/setter/creator information is needed.

introspectDirectClassAnnotationsback to summary
public BeanDescription introspectDirectClassAnnotations(Class<?> cls)

Accessor for getting bean description that only contains immediate class annotations: ones from the class, and its direct mix-in, if any, but not from super types.

introspectDirectClassAnnotationsback to summary
public final BeanDescription introspectDirectClassAnnotations(JavaType type)

Accessor for getting bean description that only contains immediate class annotations: ones from the class, and its direct mix-in, if any, but not from super types.

isAnnotationProcessingEnabledback to summary
public final boolean isAnnotationProcessingEnabled()

Method for determining whether annotation processing is enabled or not (default settings are typically that it is enabled; must explicitly disable).

Returns:boolean

True if annotation processing is enabled; false if not

isEnabledback to summary
public final boolean isEnabled(MapperFeature f)

Accessor for simple mapper features (which are shared for serialization, deserialization)

isEnabledback to summary
public abstract boolean isEnabled(DatatypeFeature feature)

Accessor for checking whether give DatatypeFeature is enabled or not.

Parameters
feature:DatatypeFeature

Feature to check

Returns:boolean

True if feature is enabled; false otherwise

Since
2.15
shouldSortPropertiesAlphabeticallyback to summary
public final boolean shouldSortPropertiesAlphabetically()

Accessor for checking whether default settings for property handling indicate that properties should be alphabetically ordered or not.

typeIdResolverInstanceback to summary
public TypeIdResolver typeIdResolverInstance(Annotated annotated, Class<? extends TypeIdResolver> resolverClass)

Method that can be called to obtain an instance of TypeIdResolver of specified type.

typeResolverBuilderInstanceback to summary
public TypeResolverBuilder<?> typeResolverBuilderInstance(Annotated annotated, Class<? extends TypeResolverBuilder<?>> builderClass)

Method that can be called to obtain an instance of TypeIdResolver of specified type.

useRootWrappingback to summary
public abstract boolean useRootWrapping()

Accessor for checking whether configuration indicates that "root wrapping" (use of an extra property/name pair at root level) is expected or not.

withback to summary
public abstract T with(MapperFeature... features)

Method for constructing and returning a new instance with specified mapper features enabled.

withback to summary
public abstract T with(MapperFeature feature, boolean state)
Since
2.3
withoutback to summary
public abstract T without(MapperFeature... features)

Method for constructing and returning a new instance with specified mapper features disabled.