Class ConfigOverrides
- java.lang.Object
-
- com.fasterxml.jackson.databind.cfg.ConfigOverrides
-
- All Implemented Interfaces:
java.io.Serializable
public class ConfigOverrides extends java.lang.Object implements java.io.Serializable
Container for individualConfigOverride
values.- Since:
- 2.8
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfigOverrides()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigOverrides
copy()
JsonFormat.Value
findFormatDefaults(java.lang.Class<?> type)
Specific accessor for finding {code JsonFormat.Value} for given type, considering global default for leniency as well as per-type format override (if any).MutableConfigOverride
findOrCreateOverride(java.lang.Class<?> type)
ConfigOverride
findOverride(java.lang.Class<?> type)
JsonInclude.Value
getDefaultInclusion()
java.lang.Boolean
getDefaultLeniency()
java.lang.Boolean
getDefaultMergeable()
JsonSetter.Value
getDefaultSetterInfo()
VisibilityChecker<?>
getDefaultVisibility()
void
setDefaultInclusion(JsonInclude.Value v)
void
setDefaultLeniency(java.lang.Boolean v)
void
setDefaultMergeable(java.lang.Boolean v)
void
setDefaultSetterInfo(JsonSetter.Value v)
void
setDefaultVisibility(VisibilityChecker<?> v)
-
-
-
Method Detail
-
copy
public ConfigOverrides copy()
-
findOverride
public ConfigOverride findOverride(java.lang.Class<?> type)
-
findOrCreateOverride
public MutableConfigOverride findOrCreateOverride(java.lang.Class<?> type)
-
findFormatDefaults
public JsonFormat.Value findFormatDefaults(java.lang.Class<?> type)
Specific accessor for finding {code JsonFormat.Value} for given type, considering global default for leniency as well as per-type format override (if any).- Returns:
- Default format settings for type; never null.
- Since:
- 2.10
-
getDefaultInclusion
public JsonInclude.Value getDefaultInclusion()
-
getDefaultSetterInfo
public JsonSetter.Value getDefaultSetterInfo()
-
getDefaultMergeable
public java.lang.Boolean getDefaultMergeable()
-
getDefaultLeniency
public java.lang.Boolean getDefaultLeniency()
- Since:
- 2.10
-
getDefaultVisibility
public VisibilityChecker<?> getDefaultVisibility()
- Since:
- 2.9
-
setDefaultInclusion
public void setDefaultInclusion(JsonInclude.Value v)
- Since:
- 2.9
-
setDefaultSetterInfo
public void setDefaultSetterInfo(JsonSetter.Value v)
- Since:
- 2.9
-
setDefaultMergeable
public void setDefaultMergeable(java.lang.Boolean v)
- Since:
- 2.9
-
setDefaultLeniency
public void setDefaultLeniency(java.lang.Boolean v)
- Since:
- 2.10
-
setDefaultVisibility
public void setDefaultVisibility(VisibilityChecker<?> v)
- Since:
- 2.9
-
-