Top Fields Constructors Methods
tools.jackson.databind.cfg

public abstract Class MapperConfigBase<CFG extends ConfigFeature, T extends MapperConfigBase<CFG, T>>

extends MapperConfig<T extends MapperConfigBase<CFG, T>>
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
tools.jackson.databind.DeserializationConfig, tools.jackson.databind.SerializationConfig
Annotations
@SuppressWarnings:serial
Imports
java.text.DateFormat, java.util.*, com.fasterxml.jackson.annotation.*, tools.jackson.core.Base64Variant, tools.jackson.core.type.TypeReference, tools.jackson.databind.*, tools.jackson.databind.introspect.*, tools.jackson.databind.jsontype.SubtypeResolver, .TypeResolverBuilder, .TypeResolverProvider, tools.jackson.databind.node.JsonNodeFactory, tools.jackson.databind.type.TypeFactory, tools.jackson.databind.util.ClassUtil, .Converter, .RootNameLookup

Field Summary

Modifier and TypeField and Description
protected final ContextAttributes
_attributes

Contextual attributes accessible (get and set) during processing, on per-call basis.

protected final ClassIntrospector
protected final ConfigOverrides
_configOverrides

Configuration overrides to apply, keyed by type of property.

protected final DatatypeFeatures
protected final MixInHandler
_mixIns

Mix-in annotation mappings to use, if any.

protected final PropertyName
_rootName

Explicitly defined root name to use, if any; if empty String, will disable root-name wrapping; if null, will use defaults

protected final RootNameLookup
_rootNames

Simple cache used for finding out possible root name for root name wrapping.

protected final SubtypeResolver
_subtypeResolver

Registered concrete subtypes that can be used instead of (or in addition to) ones declared using annotations.

protected final TypeFactory
_typeFactory

Specific factory used for creating JavaType instances; needed to allow modules to add more custom type handling (mostly to support types of non-Java JVM languages)

protected final TypeResolverProvider
protected final Class<?>
_view

View to use for filtering out properties to serialize or deserialize.

protected static final ConfigOverride
Inherited from tools.jackson.databind.cfg.MapperConfig:
_base_mapperFeaturesEMPTY_FORMATEMPTY_INCLUDE

Constructor Summary

AccessConstructor and Description
protected
MapperConfigBase(MapperBuilder<?, ?> b, long mapperFeatures, TypeFactory tf, ClassIntrospector classIntr, MixInHandler mixins, SubtypeResolver str, ConfigOverrides configOverrides, ContextAttributes defaultAttrs, RootNameLookup rootNames)

Constructor used when creating a new instance (compared to that of creating fluent copies)

protected
MapperConfigBase(MapperConfigBase<CFG, T> src)

Pass-through constructor used when no changes are needed to the base class.

protected
protected
protected
MapperConfigBase(MapperConfigBase<CFG, T> src, Class<?> view)

protected
protected
MapperConfigBase(MapperConfigBase<CFG, T> src, DatatypeFeatures datatypeFeatures)

Method Summary

Modifier and TypeMethod and Description
protected Converter<Object, Object>
_createConverter(Annotated annotated, Object converterDef)

protected DatatypeFeatures
protected abstract T
_with(DatatypeFeatures dtFeatures)

protected abstract T
public ClassIntrospector
classIntrospectorInstance()

Implements abstract tools.jackson.databind.cfg.MapperConfig.classIntrospectorInstance.

Accessor for getting a new ClassIntrospector instance initialized for per-call usage (with possible local caching)

public final JavaType
constructType(Class<?> cls)

Implements abstract tools.jackson.databind.cfg.MapperConfig.constructType.

Helper method that will construct JavaType for given raw class.

public final JavaType
constructType(TypeReference<?> valueTypeRef)

Implements abstract tools.jackson.databind.cfg.MapperConfig.constructType.

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

    getTypeFactory().constructType(valueTypeRef);
public final ConfigOverride
findConfigOverride(Class<?> type)

Implements abstract tools.jackson.databind.cfg.MapperConfig.findConfigOverride.

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

public final Class<?>
findMixInClassFor(Class<?> cls)

Implements tools.jackson.databind.introspect.MixInResolver.findMixInClassFor.

Method that will check if there are "mix-in" classes (with mix-in annotations) for given class

public PropertyName
public PropertyName
public final Class<?>
getActiveView()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getActiveView.

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

public final ContextAttributes
getAttributes()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getAttributes.

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

public final ConfigOverride
getConfigOverride(Class<?> type)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getConfigOverride.

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 final DatatypeFeatures
public final JsonInclude.Value
getDefaultInclusion(Class<?> baseType, Class<?> propertyType)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultInclusion.

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 Boolean
getDefaultMergeable()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultMergeable.

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

public Boolean
getDefaultMergeable(Class<?> baseType)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultMergeable.

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

public final JsonSetter.Value
getDefaultNullHandling()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultNullHandling.

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

public final JsonFormat.Value
getDefaultPropertyFormat(Class<?> type)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyFormat.

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 final JsonIgnoreProperties.Value
getDefaultPropertyIgnorals(Class<?> type)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyIgnorals.

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

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

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyIgnorals.

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

public final JsonInclude.Value
getDefaultPropertyInclusion()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyInclusion.

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

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

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyInclusion.

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

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

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyInclusions.

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

public final VisibilityChecker
getDefaultVisibilityChecker()

Implements abstract tools.jackson.databind.cfg.MapperConfig.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 final VisibilityChecker
getDefaultVisibilityChecker(Class<?> baseType, AnnotatedClass actualClass)

Implements abstract tools.jackson.databind.cfg.MapperConfig.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 final PropertyName
public final SubtypeResolver
getSubtypeResolver()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getSubtypeResolver.

Accessor for object used for finding out all reachable subtypes for supertypes; needed when a logical type name is used instead of class name (or custom scheme).

public final TypeFactory
public TypeResolverProvider
public boolean
hasMixIns()

Implements tools.jackson.databind.introspect.MixInResolver.hasMixIns.

Method that may be called for optimization purposes, to see if calls to mix-in resolver may be avoided.

public final boolean
isEnabled(DatatypeFeature feature)

Implements abstract tools.jackson.databind.cfg.MapperConfig.isEnabled.

Accessor for checking whether give DatatypeFeature is enabled or not.

public final int
mixInCount()

Test-only method -- does not reflect possibly open-ended set that external mix-in resolver might provide.

public MixInResolver
snapshot()

Implements tools.jackson.databind.introspect.MixInResolver.snapshot.

Method called to create a new, non-shared copy, to be used by different ObjectMapper instance, and one that should not be connected to this instance, if resolver has mutable state.

public final T
with(DatatypeFeature feature)

Fluent factory method that will return a configuration object instance with specified feature enabled: this may be this instance (if no changes effected), or a newly constructed instance.

public final T
with(DatatypeFeature feature, boolean state)

Fluent factory method that will construct and return a new configuration object instance with specified features disabled.

public abstract T
with(ContextAttributes attrs)

Method for constructing an instance that has specified contextual attributes.

public final T
with(TypeResolverBuilder<?> trb)

Method for constructing and returning a new instance with different TypeResolverBuilder to use.

public T
with(CacheProvider provider)

public final T
with(JsonNodeFactory f)

Fluent factory method that will construct a new instance with specified JsonNodeFactory.

public final T
with(Base64Variant base64)

Method for constructing and returning a new instance with different default Base64Variant to use with base64-encoded binary values.

public T
with(DateFormat df)

Method for constructing and returning a new instance with different DateFormat to use.

public final T
with(Locale l)

Method for constructing and returning a new instance with different default java.util.Locale to use for formatting.

public final T
with(TimeZone tz)

Method for constructing and returning a new instance with different default java.util.TimeZone to use for formatting of date values.

public T
withAttribute(Object key, Object value)

Method for constructing an instance that has specified value for attribute for given key.

public T
withAttributes(Map<?, ?> attributes)

Method for constructing an instance that has only specified attributes, removing any attributes that exist before the call.

public final T
withFeatures(DatatypeFeature... features)

Fluent factory method that will return a configuration object instance with specified features enabled: this may be this instance (if no changes effected), or a newly constructed instance.

public final T
without(DatatypeFeature feature)

Fluent factory method that will return a configuration object instance with specified feature disabled: this may be this instance (if no changes effected), or a newly constructed instance.

public T
withoutAttribute(Object key)

Method for constructing an instance that has no value for attribute for given key.

public final T
withoutFeatures(DatatypeFeature... features)

Fluent factory method that will return a configuration object instance with specified features disabled: this may be this instance (if no changes effected), or a newly constructed instance.

public abstract T
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
)

Method for constructing and returning a new instance with different root name to use (none, if null).

public T
withRootName(String rootName)

public abstract T
withView(Class<?> view)

Method for constructing and returning a new instance with different view to use.

Inherited from tools.jackson.databind.cfg.MapperConfig:
canOverrideAccessModifierscompileStringgetAccessorNaminggetAnnotationIntrospectorgetBase64VariantgetCacheProvidergetConstructorDetectorgetDateFormatgetDefaultInclusiongetDefaultPropertyInclusiongetDefaultTypergetEnumNamingStrategygetHandlerInstantiatorgetLocalegetNodeFactorygetPolymorphicTypeValidatorgetPropertyNamingStrategygetTimeZonehasExplicitTimeZoneisAnnotationProcessingEnabledisEnabledshouldSortPropertiesAlphabeticallytypeIdResolverInstancetypeResolverBuilderInstanceuseRootWrapping

Field Detail

_attributesback to summary
protected final ContextAttributes _attributes

Contextual attributes accessible (get and set) during processing, on per-call basis.

_classIntrospectorback to summary
protected final ClassIntrospector _classIntrospector
_configOverridesback to summary
protected final ConfigOverrides _configOverrides

Configuration overrides to apply, keyed by type of property.

_datatypeFeaturesback to summary
protected final DatatypeFeatures _datatypeFeatures

Set of DatatypeFeatures enabled.

_mixInsback to summary
protected final MixInHandler _mixIns

Mix-in annotation mappings to use, if any.

_rootNameback to summary
protected final PropertyName _rootName

Explicitly defined root name to use, if any; if empty String, will disable root-name wrapping; if null, will use defaults

_rootNamesback to summary
protected final RootNameLookup _rootNames

Simple cache used for finding out possible root name for root name wrapping.

Note that instances are stateful (for caching) and as such may need to be copied, and may NOT be demoted down to BaseSettings.

_subtypeResolverback to summary
protected final SubtypeResolver _subtypeResolver

Registered concrete subtypes that can be used instead of (or in addition to) ones declared using annotations.

Note that instances are stateful and as such may need to be copied, and may NOT be demoted down to BaseSettings.

_typeFactoryback to summary
protected final TypeFactory _typeFactory

Specific factory used for creating JavaType instances; needed to allow modules to add more custom type handling (mostly to support types of non-Java JVM languages)

_typeResolverProviderback to summary
protected final TypeResolverProvider _typeResolverProvider
Since
3.0
_viewback to summary
protected final Class<?> _view

View to use for filtering out properties to serialize or deserialize. Null if none (will also be assigned null if Object.class is defined), meaning that all properties are to be included.

EMPTY_OVERRIDEback to summary
protected static final ConfigOverride EMPTY_OVERRIDE

Constructor Detail

MapperConfigBaseback to summary
protected MapperConfigBase(MapperBuilder<?, ?> b, long mapperFeatures, TypeFactory tf, ClassIntrospector classIntr, MixInHandler mixins, SubtypeResolver str, ConfigOverrides configOverrides, ContextAttributes defaultAttrs, RootNameLookup rootNames)

Constructor used when creating a new instance (compared to that of creating fluent copies)

MapperConfigBaseback to summary
protected MapperConfigBase(MapperConfigBase<CFG, T> src)

Pass-through constructor used when no changes are needed to the base class.

MapperConfigBaseback to summary
protected MapperConfigBase(MapperConfigBase<CFG, T> src, BaseSettings base)
MapperConfigBaseback to summary
protected MapperConfigBase(MapperConfigBase<CFG, T> src, PropertyName rootName)
MapperConfigBaseback to summary
protected MapperConfigBase(MapperConfigBase<CFG, T> src, Class<?> view)
MapperConfigBaseback to summary
protected MapperConfigBase(MapperConfigBase<CFG, T> src, ContextAttributes attr)
MapperConfigBaseback to summary
protected MapperConfigBase(MapperConfigBase<CFG, T> src, DatatypeFeatures datatypeFeatures)

Method Detail

_createConverterback to summary
protected Converter<Object, Object> _createConverter(Annotated annotated, Object converterDef)
Annotations
@SuppressWarnings:unchecked
_datatypeFeaturesback to summary
protected DatatypeFeatures _datatypeFeatures()
_withback to summary
protected abstract T _with(DatatypeFeatures dtFeatures)
_withBaseback to summary
protected abstract T _withBase(BaseSettings newBase)
classIntrospectorInstanceback to summary
public ClassIntrospector classIntrospectorInstance()

Implements abstract tools.jackson.databind.cfg.MapperConfig.classIntrospectorInstance.

Doc from tools.jackson.databind.cfg.MapperConfig.classIntrospectorInstance.

Accessor for getting a new ClassIntrospector instance initialized for per-call usage (with possible local caching)

Annotations
@Override
constructTypeback to summary
public final JavaType constructType(Class<?> cls)

Implements abstract tools.jackson.databind.cfg.MapperConfig.constructType.

Doc from tools.jackson.databind.cfg.MapperConfig.constructType.

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

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

Implements abstract tools.jackson.databind.cfg.MapperConfig.constructType.

Doc from tools.jackson.databind.cfg.MapperConfig.constructType.

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

    getTypeFactory().constructType(valueTypeRef);
Annotations
@Override
findConfigOverrideback to summary
public final ConfigOverride findConfigOverride(Class<?> type)

Implements abstract tools.jackson.databind.cfg.MapperConfig.findConfigOverride.

Doc from tools.jackson.databind.cfg.MapperConfig.findConfigOverride.

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.

Annotations
@Override
findMixInClassForback to summary
public final Class<?> findMixInClassFor(Class<?> cls)

Implements tools.jackson.databind.introspect.MixInResolver.findMixInClassFor.

Method that will check if there are "mix-in" classes (with mix-in annotations) for given class

Annotations
@Override
findRootNameback to summary
public PropertyName findRootName(DatabindContext ctxt, JavaType rootType)

Implements abstract tools.jackson.databind.cfg.MapperConfig.findRootName.

Annotations
@Override
findRootNameback to summary
public PropertyName findRootName(DatabindContext ctxt, Class<?> rawRootType)

Implements abstract tools.jackson.databind.cfg.MapperConfig.findRootName.

Annotations
@Override
getActiveViewback to summary
public final Class<?> getActiveView()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getActiveView.

Doc from tools.jackson.databind.cfg.MapperConfig.getActiveView.

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

Annotations
@Override
getAttributesback to summary
public final ContextAttributes getAttributes()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getAttributes.

Doc from tools.jackson.databind.cfg.MapperConfig.getAttributes.

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

Annotations
@Override
getConfigOverrideback to summary
public final ConfigOverride getConfigOverride(Class<?> type)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getConfigOverride.

Doc from tools.jackson.databind.cfg.MapperConfig.getConfigOverride.

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.

Annotations
@Override
getDatatypeFeaturesback to summary
public final DatatypeFeatures getDatatypeFeatures()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDatatypeFeatures.

Annotations
@Override
getDefaultInclusionback to summary
public final JsonInclude.Value getDefaultInclusion(Class<?> baseType, Class<?> propertyType)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultInclusion.

Doc from tools.jackson.databind.cfg.MapperConfig.getDefaultInclusion.

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().

Annotations
@Override
getDefaultMergeableback to summary
public Boolean getDefaultMergeable()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultMergeable.

Doc from tools.jackson.databind.cfg.MapperConfig.getDefaultMergeable.

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

Annotations
@Override
getDefaultMergeableback to summary
public Boolean getDefaultMergeable(Class<?> baseType)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultMergeable.

Doc from tools.jackson.databind.cfg.MapperConfig.getDefaultMergeable.

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

Annotations
@Override
getDefaultNullHandlingback to summary
public final JsonSetter.Value getDefaultNullHandling()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultNullHandling.

Doc from tools.jackson.databind.cfg.MapperConfig.getDefaultNullHandling.

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

Annotations
@Override
getDefaultPropertyFormatback to summary
public final JsonFormat.Value getDefaultPropertyFormat(Class<?> type)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyFormat.

Doc from tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyFormat.

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).

Annotations
@Override
getDefaultPropertyIgnoralsback to summary
public final JsonIgnoreProperties.Value getDefaultPropertyIgnorals(Class<?> type)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyIgnorals.

Doc from tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyIgnorals.

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

Annotations
@Override
getDefaultPropertyIgnoralsback to summary
public final JsonIgnoreProperties.Value getDefaultPropertyIgnorals(Class<?> baseType, AnnotatedClass actualClass)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyIgnorals.

Doc from tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyIgnorals.

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.

Annotations
@Override
getDefaultPropertyInclusionback to summary
public final JsonInclude.Value getDefaultPropertyInclusion()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyInclusion.

Doc from tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyInclusion.

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

Annotations
@Override
getDefaultPropertyInclusionback to summary
public final JsonInclude.Value getDefaultPropertyInclusion(Class<?> baseType)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyInclusion.

Doc from tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyInclusion.

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().

Annotations
@Override
getDefaultPropertyInclusionsback to summary
public final JsonIncludeProperties.Value getDefaultPropertyInclusions(Class<?> baseType, AnnotatedClass actualClass)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyInclusions.

Doc from tools.jackson.databind.cfg.MapperConfig.getDefaultPropertyInclusions.

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

Todo

config override.

Annotations
@Override
getDefaultVisibilityCheckerback to summary
public final VisibilityChecker getDefaultVisibilityChecker()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultVisibilityChecker.

Doc from tools.jackson.databind.cfg.MapperConfig.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)

Annotations
@Override
getDefaultVisibilityCheckerback to summary
public final VisibilityChecker getDefaultVisibilityChecker(Class<?> baseType, AnnotatedClass actualClass)

Implements abstract tools.jackson.databind.cfg.MapperConfig.getDefaultVisibilityChecker.

Doc from tools.jackson.databind.cfg.MapperConfig.getDefaultVisibilityChecker.

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()).

Annotations
@Override
getFullRootNameback to summary
public final PropertyName getFullRootName()
getSubtypeResolverback to summary
public final SubtypeResolver getSubtypeResolver()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getSubtypeResolver.

Accessor for object used for finding out all reachable subtypes for supertypes; needed when a logical type name is used instead of class name (or custom scheme).

Annotations
@Override
getTypeFactoryback to summary
public final TypeFactory getTypeFactory()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getTypeFactory.

Annotations
@Override
getTypeResolverProviderback to summary
public TypeResolverProvider getTypeResolverProvider()

Implements abstract tools.jackson.databind.cfg.MapperConfig.getTypeResolverProvider.

Annotations
@Override
hasMixInsback to summary
public boolean hasMixIns()

Implements tools.jackson.databind.introspect.MixInResolver.hasMixIns.

Doc from tools.jackson.databind.introspect.MixInResolver.hasMixIns.

Method that may be called for optimization purposes, to see if calls to mix-in resolver may be avoided. Return value of true means that it is possible that a mix-in class will be found; false that no mix-in will ever be found. In latter case caller can avoid calls altogether.

Note that the reason for "empty" resolvers is to use "null object" for simplifying calling code.

Annotations
@Override
isEnabledback to summary
public final boolean isEnabled(DatatypeFeature feature)

Implements abstract tools.jackson.databind.cfg.MapperConfig.isEnabled.

Doc from tools.jackson.databind.cfg.MapperConfig.isEnabled.

Accessor for checking whether give DatatypeFeature is enabled or not.

Annotations
@Override
mixInCountback to summary
public final int mixInCount()

Test-only method -- does not reflect possibly open-ended set that external mix-in resolver might provide.

snapshotback to summary
public MixInResolver snapshot()

Implements tools.jackson.databind.introspect.MixInResolver.snapshot.

Doc from tools.jackson.databind.introspect.MixInResolver.snapshot.

Method called to create a new, non-shared copy, to be used by different ObjectMapper instance, and one that should not be connected to this instance, if resolver has mutable state. If resolver is immutable may simply return `this`.

Annotations
@Override
withback to summary
public final T with(DatatypeFeature feature)

Fluent factory method that will return a configuration object instance with specified feature enabled: this may be this instance (if no changes effected), or a newly constructed instance.

withback to summary
public final T with(DatatypeFeature feature, boolean state)

Fluent factory method that will construct and return a new configuration object instance with specified features disabled.

withback to summary
public abstract T with(ContextAttributes attrs)

Method for constructing an instance that has specified contextual attributes.

withback to summary
public final T with(TypeResolverBuilder<?> trb)

Method for constructing and returning a new instance with different TypeResolverBuilder to use.

withback to summary
public T with(CacheProvider provider)
Since
2.16
withback to summary
public final T with(JsonNodeFactory f)

Fluent factory method that will construct a new instance with specified JsonNodeFactory.

withback to summary
public final T with(Base64Variant base64)

Method for constructing and returning a new instance with different default Base64Variant to use with base64-encoded binary values.

withback to summary
public T with(DateFormat df)

Method for constructing and returning a new instance with different DateFormat to use.

Note

non-final since SerializationConfig needs to override this

withback to summary
public final T with(Locale l)

Method for constructing and returning a new instance with different default java.util.Locale to use for formatting.

withback to summary
public final T with(TimeZone tz)

Method for constructing and returning a new instance with different default java.util.TimeZone to use for formatting of date values.

withAttributeback to summary
public T withAttribute(Object key, Object value)

Method for constructing an instance that has specified value for attribute for given key.

withAttributesback to summary
public T withAttributes(Map<?, ?> attributes)

Method for constructing an instance that has only specified attributes, removing any attributes that exist before the call.

withFeaturesback to summary
public final T withFeatures(DatatypeFeature... features)

Fluent factory method that will return a configuration object instance with specified features enabled: this may be this instance (if no changes effected), or a newly constructed instance.

withoutback to summary
public final T without(DatatypeFeature feature)

Fluent factory method that will return a configuration object instance with specified feature disabled: this may be this instance (if no changes effected), or a newly constructed instance.

withoutAttributeback to summary
public T withoutAttribute(Object key)

Method for constructing an instance that has no value for attribute for given key.

withoutFeaturesback to summary
public final T withoutFeatures(DatatypeFeature... features)

Fluent factory method that will return a configuration object instance with specified features disabled: this may be this instance (if no changes effected), or a newly constructed instance.

withRootNameback to summary
public abstract T withRootName(PropertyName rootName)

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 SerializationFeature to determine if to use wrapping, and annotation (or default name) for actual root name to use.

Parameters
rootName: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.

withRootNameback to summary
public T withRootName(String rootName)
withViewback to summary
public abstract T withView(Class<?> view)

Method for constructing and returning a new instance with different view to use.