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

public abstract Class MapperConfigBase<CFG extends com.fasterxml.jackson.databind.cfg.ConfigFeature, T extends com.fasterxml.jackson.databind.cfg.MapperConfigBase<CFG, T>>

extends MapperConfig<T extends MapperConfigBase<CFG, T>>
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
com.fasterxml.jackson.databind.DeserializationConfig, com.fasterxml.jackson.databind.SerializationConfig
Annotations
@SuppressWarnings:serial
Imports
java.text.DateFormat, java.util.*, com.fasterxml.jackson.annotation.*, .JsonAutoDetect.Visibility, com.fasterxml.jackson.core.Base64Variant, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.introspect.ClassIntrospector, .ClassIntrospector.MixInResolver, .AccessorNamingStrategy, .AnnotatedClass, .SimpleMixInResolver, .VisibilityChecker, com.fasterxml.jackson.databind.jsontype.SubtypeResolver, .TypeResolverBuilder, com.fasterxml.jackson.databind.type.TypeFactory, com.fasterxml.jackson.databind.util.ClassUtil, .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 ConfigOverrides
_configOverrides

Configuration overrides to apply, keyed by type of property.

protected final DatatypeFeatures
protected final SimpleMixInResolver
_mixIns

Mix-in annotation mappings to use, if any: immutable, cannot be changed once defined.

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 Class<?>
_view

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

private static final long
private static final long
protected static final ConfigOverride
Inherited from com.fasterxml.jackson.databind.cfg.MapperConfig:
_base_mapperFeaturesEMPTY_FORMATEMPTY_INCLUDE

Constructor Summary

AccessConstructor and Description
protected
MapperConfigBase(BaseSettings base, SubtypeResolver str, SimpleMixInResolver mixins, RootNameLookup rootNames, ConfigOverrides configOverrides, DatatypeFeatures datatypeFeatures)

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

protected
MapperConfigBase(MapperConfigBase<CFG, T> src, SubtypeResolver str, SimpleMixInResolver mixins, RootNameLookup rootNames, ConfigOverrides configOverrides)

Copy constructor usually called to make a copy for use by ObjectMapper that is copied.

protected
MapperConfigBase(MapperConfigBase<CFG, T> src)

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

protected
protected
MapperConfigBase(MapperConfigBase<CFG, T> src, long mapperFeatures)

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

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

Method Summary

Modifier and TypeMethod and Description
protected DatatypeFeatures
protected abstract T
_with(DatatypeFeatures dtFeatures)

protected abstract T
protected abstract T
_withMapperFeatures(long mapperFeatures)

public ClassIntrospector.MixInResolver
copy()

Implements com.fasterxml.jackson.databind.introspect.ClassIntrospector.MixInResolver.copy.

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 ConfigOverride
findConfigOverride(Class<?> type)

Implements abstract com.fasterxml.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 com.fasterxml.jackson.databind.introspect.ClassIntrospector.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 com.fasterxml.jackson.databind.cfg.MapperConfig.getActiveView.

Accessor for finding currently active view, if any (null if none)
public final ContextAttributes
getAttributes()

Implements abstract com.fasterxml.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 com.fasterxml.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<?>
Type of the instance containing the targeted property.
baseType
,
Class<?>
Type of the property to look up inclusion setting for.
propertyType
)

Implements abstract com.fasterxml.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 com.fasterxml.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 com.fasterxml.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 JsonFormat.Value
getDefaultPropertyFormat(Class<?> type)

Implements abstract com.fasterxml.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 com.fasterxml.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 com.fasterxml.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 com.fasterxml.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 com.fasterxml.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 com.fasterxml.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 JsonSetter.Value
getDefaultSetterInfo()

Implements abstract com.fasterxml.jackson.databind.cfg.MapperConfig.getDefaultSetterInfo.

Accessor for the baseline setter info used as the global baseline, not considering possible per-type overrides.
public final VisibilityChecker<?>
getDefaultVisibilityChecker()

Implements abstract com.fasterxml.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 com.fasterxml.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 String
getRootName()

Deprecated Since 2.6 use getFullRootName instead.
public final SubtypeResolver
getSubtypeResolver()

Implements abstract com.fasterxml.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 int
mixInCount()

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

public final T
with(MapperFeature... features)

Implements abstract com.fasterxml.jackson.databind.cfg.MapperConfig.with.

Fluent factory method that will construct and return a new configuration object instance with specified features enabled.
public final T
with(MapperFeature feature, boolean state)

Implements abstract com.fasterxml.jackson.databind.cfg.MapperConfig.with.

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 final T
with(AnnotationIntrospector ai)

Method for constructing and returning a new instance with different AnnotationIntrospector to use (replacing old one).

public final T
with(ClassIntrospector ci)

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

public abstract T
with(ContextAttributes attrs)

Method for constructing an instance that has specified contextual attributes.

public final T
with(TypeFactory tf)

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

public final T
with(TypeResolverBuilder<?> trb)

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

public final T
with(PropertyNamingStrategy pns)

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

public final T
with(AccessorNamingStrategy.Provider p)

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

public final T
with(HandlerInstantiator hi)

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

public T
with(CacheProvider provider)

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 abstract T
with(SubtypeResolver str)

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

public final T
withAppendedAnnotationIntrospector(AnnotationIntrospector ai)

Method for constructing and returning a new instance with additional AnnotationIntrospector appended (as the lowest priority one)

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
withInsertedAnnotationIntrospector(AnnotationIntrospector ai)

Method for constructing and returning a new instance with additional AnnotationIntrospector inserted (as the highest priority one)

public final T
without(MapperFeature... features)

Implements abstract com.fasterxml.jackson.databind.cfg.MapperConfig.without.

Fluent factory method that will construct and return a new configuration object instance with specified features disabled.
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 com.fasterxml.jackson.databind.cfg.MapperConfig:
canOverrideAccessModifierscollectFeatureDefaultscompileStringconstructSpecializedTypeconstructTypeconstructTypegetAccessorNaminggetAnnotationIntrospectorgetBase64VariantgetCacheProvidergetClassIntrospectorgetDateFormatgetDefaultInclusiongetDefaultPropertyInclusiongetDefaultTypergetHandlerInstantiatorgetLocalegetPolymorphicTypeValidatorgetPropertyNamingStrategygetTimeZonegetTypeFactoryhasExplicitTimeZonehasMapperFeaturesintrospectClassAnnotationsintrospectClassAnnotationsintrospectDirectClassAnnotationsintrospectDirectClassAnnotationsisAnnotationProcessingEnabledisEnabledisEnabledshouldSortPropertiesAlphabeticallytypeIdResolverInstancetypeResolverBuilderInstanceuseRootWrapping