Class ConfigOverride
java.lang.Object
com.fasterxml.jackson.databind.cfg.ConfigOverride
- Direct Known Subclasses:
MutableConfigOverride
Configuration object that is accessed by databinding functionality
to find overrides to configuration of properties, based on declared
type of the property. Such overrides have precedence over annotations
attached to actual type (
Class
), but can be further
overridden by annotations attached to the property itself.- Since:
- 2.8
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.annotation.JsonFormat.Value
Definitions of format overrides, if any.protected com.fasterxml.jackson.annotation.JsonIgnoreProperties.Value
Definitions of property ignoral (whether to serialize, deserialize given logical property) overrides, if any.protected com.fasterxml.jackson.annotation.JsonInclude.Value
Definitions of inclusion defaults to use for properties included in this POJO type.protected com.fasterxml.jackson.annotation.JsonInclude.Value
Definitions of inclusion defaults for properties of this specified type (regardless of POJO in which they are included).protected Boolean
Flag that indicates whether "is ignorable type" is specified for this type; and if so, is it to be ignored (true) or not ignored (false); `null` is used to indicate "not specified", in which case other configuration (class annotation) is used.protected Boolean
Flag that indicates whether properties of this type default to being merged or not.protected com.fasterxml.jackson.annotation.JsonSetter.Value
Definitions of setter overrides regarding null handlingprotected com.fasterxml.jackson.annotation.JsonAutoDetect.Value
Overrides for auto-detection visibility rules for this type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigOverride
empty()
Accessor for immutable "empty" instance that has no configuration overrides defined.com.fasterxml.jackson.annotation.JsonFormat.Value
com.fasterxml.jackson.annotation.JsonIgnoreProperties.Value
com.fasterxml.jackson.annotation.JsonInclude.Value
com.fasterxml.jackson.annotation.JsonInclude.Value
com.fasterxml.jackson.annotation.JsonSetter.Value
com.fasterxml.jackson.annotation.JsonAutoDetect.Value
-
Field Details
-
_format
protected com.fasterxml.jackson.annotation.JsonFormat.Value _formatDefinitions of format overrides, if any. -
_include
protected com.fasterxml.jackson.annotation.JsonInclude.Value _includeDefinitions of inclusion defaults to use for properties included in this POJO type. Overrides global defaults, may be overridden by per-property-type (see_includeAsProperty
) and per-property overrides (annotations). -
_includeAsProperty
protected com.fasterxml.jackson.annotation.JsonInclude.Value _includeAsPropertyDefinitions of inclusion defaults for properties of this specified type (regardless of POJO in which they are included). Overrides global defaults, per-POJO inclusion defaults (see {#link_include
}), may be overridden by per-property overrides.- Since:
- 2.9
-
_ignorals
protected com.fasterxml.jackson.annotation.JsonIgnoreProperties.Value _ignoralsDefinitions of property ignoral (whether to serialize, deserialize given logical property) overrides, if any. -
_setterInfo
protected com.fasterxml.jackson.annotation.JsonSetter.Value _setterInfoDefinitions of setter overrides regarding null handling- Since:
- 2.9
-
_visibility
protected com.fasterxml.jackson.annotation.JsonAutoDetect.Value _visibilityOverrides for auto-detection visibility rules for this type.- Since:
- 2.9
-
_isIgnoredType
Flag that indicates whether "is ignorable type" is specified for this type; and if so, is it to be ignored (true) or not ignored (false); `null` is used to indicate "not specified", in which case other configuration (class annotation) is used. -
_mergeable
Flag that indicates whether properties of this type default to being merged or not.
-
-
Constructor Details
-
ConfigOverride
protected ConfigOverride() -
ConfigOverride
-
-
Method Details
-
empty
Accessor for immutable "empty" instance that has no configuration overrides defined.- Since:
- 2.9
-
getFormat
public com.fasterxml.jackson.annotation.JsonFormat.Value getFormat() -
getInclude
public com.fasterxml.jackson.annotation.JsonInclude.Value getInclude() -
getIncludeAsProperty
public com.fasterxml.jackson.annotation.JsonInclude.Value getIncludeAsProperty()- Since:
- 2.9
-
getIgnorals
public com.fasterxml.jackson.annotation.JsonIgnoreProperties.Value getIgnorals() -
getIsIgnoredType
-
getSetterInfo
public com.fasterxml.jackson.annotation.JsonSetter.Value getSetterInfo()- Since:
- 2.9
-
getVisibility
public com.fasterxml.jackson.annotation.JsonAutoDetect.Value getVisibility()- Since:
- 2.9
-
getMergeable
- Since:
- 2.9
-