| Modifier and Type | Field 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 | _datatypeFeatures
Set of |
| 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 |
| protected final TypeResolverProvider | |
| protected final Class | _view
View to use for filtering out properties to serialize or deserialize. |
| protected static final ConfigOverride |
| Access | Constructor 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 | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected Converter | |
| protected DatatypeFeatures | |
| protected abstract T | |
| protected abstract T | |
| public ClassIntrospector | classIntrospectorInstance()
Implements abstract tools. Accessor for getting a new |
| public final JavaType | constructType(Class<?> cls)
Implements abstract tools. Helper method that will construct |
| public final JavaType | constructType(TypeReference<?> valueTypeRef)
Implements abstract tools. Helper method that will construct
getTypeFactory().constructType(valueTypeRef);
|
| public final ConfigOverride | findConfigOverride(Class<?> type)
Implements abstract tools. Accessor for finding |
| public final Class | findMixInClassFor(Class<?> cls)
Implements tools. Method that will check if there are "mix-in" classes (with mix-in annotations) for given class |
| public PropertyName | findRootName(DatabindContext ctxt, JavaType rootType)
Implements abstract tools.
|
| public PropertyName | findRootName(DatabindContext ctxt, Class<?> rawRootType)
Implements abstract tools.
|
| public final Class | getActiveView()
Implements abstract tools. Accessor for finding currently active view, if any (null if none) |
| public final ContextAttributes | getAttributes()
Implements abstract tools. 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. Accessor for finding |
| public final DatatypeFeatures | getDatatypeFeatures()
Implements abstract tools.
|
| public final JsonInclude. | getDefaultInclusion(Class<?> baseType, Class<?> propertyType)
Implements abstract tools. 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. 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. Accessor for the baseline merge info used for given type, including global defaults if no type-specific overrides defined. |
| public final JsonSetter. | getDefaultNullHandling()
Implements abstract tools. Accessor for the baseline setter info used as the global baseline, not considering possible per-type overrides. |
| public final JsonFormat. | getDefaultPropertyFormat(Class<?> type)
Implements abstract tools. 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. | getDefaultPropertyIgnorals(Class<?> type)
Implements abstract tools. Accessor for default property ignorals to use, if any, for given base type,
based on config overrides settings (see |
| public final JsonIgnoreProperties. | getDefaultPropertyIgnorals(Class<?> baseType, AnnotatedClass actualClass)
Implements abstract tools. Helper method that may be called to see if there are property ignoral
definitions from annotations (via |
| public final JsonInclude. | getDefaultPropertyInclusion()
Implements abstract tools. Accessor for default property inclusion to use for serialization, used unless overridden by per-type or per-property overrides. |
| public final JsonInclude. | getDefaultPropertyInclusion(Class<?> baseType)
Implements abstract tools. Accessor for default property inclusion to use for serialization, considering possible per-type override for given base type. |
| public final JsonIncludeProperties. | getDefaultPropertyInclusions(Class<?> baseType, AnnotatedClass actualClass)
Implements abstract tools. Helper method that may be called to see if there are property inclusion
definitions from annotations (via |
| public final VisibilityChecker | getDefaultVisibilityChecker()
Implements abstract tools. 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. 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. 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 | getTypeResolverProvider()
Implements abstract tools.
|
| public boolean | hasMixIns()
Implements tools. 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. Accessor for checking whether give |
| 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. Method called to create a new, non-shared copy, to be used by different
|
| public final T | with(DatatypeFeature feature)
Fluent factory method that will return a configuration
object instance with specified feature enabled: this may be
|
| 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
|
| public T | |
| public final T | with(JsonNodeFactory f)
Fluent factory method that will construct a new instance with
specified |
| public final T | with(Base64Variant base64)
Method for constructing and returning a new instance with different
default |
| public T | with(DateFormat df)
Method for constructing and returning a new instance with different
|
| public final T | with(Locale l)
Method for constructing and returning a new instance with different
default |
| public final T | with(TimeZone tz)
Method for constructing and returning a new instance with different
default |
| 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
|
| public final T | without(DatatypeFeature feature)
Fluent factory method that will return a configuration
object instance with specified feature disabled: this may be
|
| 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
|
| 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 | |
| public abstract T |
| _attributes | back to summary |
|---|---|
| protected final ContextAttributes _attributes Contextual attributes accessible (get and set) during processing, on per-call basis. | |
| _classIntrospector | back to summary |
|---|---|
| protected final ClassIntrospector _classIntrospector | |
| _configOverrides | back to summary |
|---|---|
| protected final ConfigOverrides _configOverrides Configuration overrides to apply, keyed by type of property. | |
| _datatypeFeatures | back to summary |
|---|---|
| protected final DatatypeFeatures _datatypeFeatures Set of | |
| _mixIns | back to summary |
|---|---|
| protected final MixInHandler _mixIns Mix-in annotation mappings to use, if any. | |
| _rootName | back 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 | |
| _rootNames | back 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 | |
| _subtypeResolver | back 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 | |
| _typeFactory | back to summary |
|---|---|
| protected final TypeFactory _typeFactory Specific factory used for creating | |
| _typeResolverProvider | back to summary |
|---|---|
protected final TypeResolverProvider _typeResolverProvider
| |
| _view | back 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 | |
| EMPTY_OVERRIDE | back to summary |
|---|---|
| protected static final ConfigOverride EMPTY_OVERRIDE | |
| MapperConfigBase | back 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) | |
| MapperConfigBase | back to summary |
|---|---|
| protected MapperConfigBase(MapperConfigBase<CFG, T> src) Pass-through constructor used when no changes are needed to the base class. | |
| MapperConfigBase | back to summary |
|---|---|
| protected MapperConfigBase(MapperConfigBase<CFG, T> src, BaseSettings base) | |
| MapperConfigBase | back to summary |
|---|---|
| protected MapperConfigBase(MapperConfigBase<CFG, T> src, PropertyName rootName) | |
| MapperConfigBase | back to summary |
|---|---|
| protected MapperConfigBase(MapperConfigBase<CFG, T> src, Class<?> view) | |
| MapperConfigBase | back to summary |
|---|---|
| protected MapperConfigBase(MapperConfigBase<CFG, T> src, ContextAttributes attr) | |
| MapperConfigBase | back to summary |
|---|---|
| protected MapperConfigBase(MapperConfigBase<CFG, T> src, DatatypeFeatures datatypeFeatures) | |
| _createConverter | back to summary |
|---|---|
protected Converter
| |
| _datatypeFeatures | back to summary |
|---|---|
| protected DatatypeFeatures _datatypeFeatures() | |
| _with | back to summary |
|---|---|
| protected abstract T _with(DatatypeFeatures dtFeatures) | |
| _withBase | back to summary |
|---|---|
| protected abstract T _withBase(BaseSettings newBase) | |
| classIntrospectorInstance | back to summary |
|---|---|
| public ClassIntrospector classIntrospectorInstance() Implements abstract tools. Doc from tools. Accessor for getting a new
| |
| constructType | back to summary |
|---|---|
| public final JavaType constructType(Class<?> cls) Implements abstract tools. Doc from tools. Helper method that will construct
getTypeFactory().constructType(cls);
| |
| constructType | back to summary |
|---|---|
| public final JavaType constructType(TypeReference<?> valueTypeRef) Implements abstract tools. Doc from tools. Helper method that will construct
getTypeFactory().constructType(valueTypeRef);
| |
| findConfigOverride | back to summary |
|---|---|
| public final ConfigOverride findConfigOverride(Class<?> type) Implements abstract tools. Doc from tools. Accessor for finding Note that only directly associated override is found; no type hierarchy traversal is performed.
| |
| findMixInClassFor | back to summary |
|---|---|
| public final Class Implements tools. Method that will check if there are "mix-in" classes (with mix-in annotations) for given class
| |
| findRootName | back to summary |
|---|---|
| public PropertyName findRootName(DatabindContext ctxt, JavaType rootType) Implements abstract tools.
| |
| findRootName | back to summary |
|---|---|
| public PropertyName findRootName(DatabindContext ctxt, Class<?> rawRootType) Implements abstract tools.
| |
| getActiveView | back to summary |
|---|---|
| public final Class Implements abstract tools. Doc from tools. Accessor for finding currently active view, if any (null if none)
| |
| getAttributes | back to summary |
|---|---|
| public final ContextAttributes getAttributes() Implements abstract tools. Doc from tools. Method for accessing per-instance shared (baseline/default) attribute values; these are used as the basis for per-call attributes.
| |
| getConfigOverride | back to summary |
|---|---|
| public final ConfigOverride getConfigOverride(Class<?> type) Implements abstract tools. Doc from tools. Accessor for finding Note that only directly associated override is found; no type hierarchy traversal is performed.
| |
| getDatatypeFeatures | back to summary |
|---|---|
| public final DatatypeFeatures getDatatypeFeatures() Implements abstract tools.
| |
| getDefaultInclusion | back to summary |
|---|---|
| public final JsonInclude. Implements abstract tools. Doc from tools. 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
| |
| getDefaultMergeable | back to summary |
|---|---|
| public Boolean getDefaultMergeable() Implements abstract tools. Doc from tools. Accessor for the baseline merge info used as the global baseline, not considering possible per-type overrides.
| |
| getDefaultMergeable | back to summary |
|---|---|
| public Boolean getDefaultMergeable(Class<?> baseType) Implements abstract tools. Doc from tools. Accessor for the baseline merge info used for given type, including global defaults if no type-specific overrides defined.
| |
| getDefaultNullHandling | back to summary |
|---|---|
| public final JsonSetter. Implements abstract tools. Doc from tools. Accessor for the baseline setter info used as the global baseline, not considering possible per-type overrides.
| |
| getDefaultPropertyFormat | back to summary |
|---|---|
| public final JsonFormat. Implements abstract tools. Doc from tools. 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).
| |
| getDefaultPropertyIgnorals | back to summary |
|---|---|
| public final JsonIgnoreProperties. Implements abstract tools. Doc from tools. Accessor for default property ignorals to use, if any, for given base type,
based on config overrides settings (see
| |
| getDefaultPropertyIgnorals | back to summary |
|---|---|
| public final JsonIgnoreProperties. Implements abstract tools. Doc from tools. Helper method that may be called to see if there are property ignoral
definitions from annotations (via
| |
| getDefaultPropertyInclusion | back to summary |
|---|---|
| public final JsonInclude. Implements abstract tools. Doc from tools. Accessor for default property inclusion to use for serialization, used unless overridden by per-type or per-property overrides.
| |
| getDefaultPropertyInclusion | back to summary |
|---|---|
| public final JsonInclude. Implements abstract tools. Doc from tools. 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
| |
| getDefaultPropertyInclusions | back to summary |
|---|---|
| public final JsonIncludeProperties. Implements abstract tools. Doc from tools. Helper method that may be called to see if there are property inclusion
definitions from annotations (via Todo config override.
| |
| getDefaultVisibilityChecker | back to summary |
|---|---|
| public final VisibilityChecker getDefaultVisibilityChecker() Implements abstract tools. Doc from tools. 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
| |
| getDefaultVisibilityChecker | back to summary |
|---|---|
| public final VisibilityChecker getDefaultVisibilityChecker(Class<?> baseType, AnnotatedClass actualClass) Implements abstract tools. Doc from tools. 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
| |
| getFullRootName | back to summary |
|---|---|
| public final PropertyName getFullRootName() | |
| getSubtypeResolver | back to summary |
|---|---|
| public final SubtypeResolver getSubtypeResolver() Implements abstract tools. 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).
| |
| getTypeFactory | back to summary |
|---|---|
| public final TypeFactory getTypeFactory() Implements abstract tools.
| |
| getTypeResolverProvider | back to summary |
|---|---|
| public TypeResolverProvider getTypeResolverProvider() Implements abstract tools.
| |
| hasMixIns | back to summary |
|---|---|
| public boolean hasMixIns() Implements tools. Doc from tools. Method that may be called for optimization purposes, to see if calls to
mix-in resolver may be avoided. Return value of Note that the reason for "empty" resolvers is to use "null object" for simplifying calling code.
| |
| isEnabled | back to summary |
|---|---|
| public final boolean isEnabled(DatatypeFeature feature) Implements abstract tools. Doc from tools. Accessor for checking whether give
| |
| mixInCount | back to summary |
|---|---|
| public final int mixInCount() Test-only method -- does not reflect possibly open-ended set that external mix-in resolver might provide. | |
| snapshot | back to summary |
|---|---|
| public MixInResolver snapshot() Implements tools. Doc from tools. Method called to create a new, non-shared copy, to be used by different
| |
| with | back 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
| |
| with | back 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. | |
| with | back to summary |
|---|---|
| public abstract T with(ContextAttributes attrs) Method for constructing an instance that has specified contextual attributes. | |
| with | back to summary |
|---|---|
| public final T with(TypeResolverBuilder<?> trb) Method for constructing and returning a new instance with different
| |
| with | back to summary |
|---|---|
public T with(CacheProvider provider)
| |
| with | back to summary |
|---|---|
| public final T with(JsonNodeFactory f) Fluent factory method that will construct a new instance with
specified | |
| with | back to summary |
|---|---|
| public final T with(Base64Variant base64) Method for constructing and returning a new instance with different
default | |
| with | back to summary |
|---|---|
| public T with(DateFormat df) Method for constructing and returning a new instance with different
Note non-final since | |
| with | back to summary |
|---|---|
| public final T with(Locale l) Method for constructing and returning a new instance with different
default | |
| with | back to summary |
|---|---|
| public final T with(TimeZone tz) Method for constructing and returning a new instance with different
default | |
| withAttribute | back to summary |
|---|---|
| public T withAttribute(Object key, Object value) Method for constructing an instance that has specified value for attribute for given key. | |
| withAttributes | back 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. | |
| withFeatures | back 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
| |
| without | back 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
| |
| withoutAttribute | back to summary |
|---|---|
| public T withoutAttribute(Object key) Method for constructing an instance that has no value for attribute for given key. | |
| withoutFeatures | back 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
| |
| withRootName | back 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
| |
| withRootName | back to summary |
|---|---|
| public T withRootName(String rootName) | |
| withView | back to summary |
|---|---|
| public abstract T withView(Class<?> view) Method for constructing and returning a new instance with different view to use. | |