public class ConfigOverrides extends Object implements Serializable
ConfigOverride
values.Modifier and Type | Field and Description |
---|---|
protected JsonInclude.Value |
_defaultInclusion |
protected Boolean |
_defaultLeniency
Global default setting (if any) for leniency: if disabled ({link Boolean#TRUE}),
"strict" (not lenient): default setting if absence of value is considered "lenient"
in Jackson 2.x.
|
protected Boolean |
_defaultMergeable |
protected JsonSetter.Value |
_defaultSetterInfo |
protected Map<Class<?>,MutableConfigOverride> |
_overrides
Per-type override definitions
|
protected VisibilityChecker<?> |
_visibilityChecker |
Modifier | Constructor and Description |
---|---|
|
ConfigOverrides() |
protected |
ConfigOverrides(Map<Class<?>,MutableConfigOverride> overrides,
JsonInclude.Value defIncl,
JsonSetter.Value defSetter,
VisibilityChecker<?> defVisibility,
Boolean defMergeable)
Deprecated.
Since 2.10
|
protected |
ConfigOverrides(Map<Class<?>,MutableConfigOverride> overrides,
JsonInclude.Value defIncl,
JsonSetter.Value defSetter,
VisibilityChecker<?> defVisibility,
Boolean defMergeable,
Boolean defLeniency) |
Modifier and Type | Method and Description |
---|---|
protected Map<Class<?>,MutableConfigOverride> |
_newMap() |
ConfigOverrides |
copy() |
JsonFormat.Value |
findFormatDefaults(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(Class<?> type) |
ConfigOverride |
findOverride(Class<?> type) |
JsonInclude.Value |
getDefaultInclusion() |
Boolean |
getDefaultLeniency() |
Boolean |
getDefaultMergeable() |
JsonSetter.Value |
getDefaultSetterInfo() |
VisibilityChecker<?> |
getDefaultVisibility() |
void |
setDefaultInclusion(JsonInclude.Value v) |
void |
setDefaultLeniency(Boolean v) |
void |
setDefaultMergeable(Boolean v) |
void |
setDefaultSetterInfo(JsonSetter.Value v) |
void |
setDefaultVisibility(VisibilityChecker<?> v) |
protected Map<Class<?>,MutableConfigOverride> _overrides
protected JsonInclude.Value _defaultInclusion
protected JsonSetter.Value _defaultSetterInfo
protected VisibilityChecker<?> _visibilityChecker
protected Boolean _defaultMergeable
protected Boolean _defaultLeniency
public ConfigOverrides()
protected ConfigOverrides(Map<Class<?>,MutableConfigOverride> overrides, JsonInclude.Value defIncl, JsonSetter.Value defSetter, VisibilityChecker<?> defVisibility, Boolean defMergeable, Boolean defLeniency)
@Deprecated protected ConfigOverrides(Map<Class<?>,MutableConfigOverride> overrides, JsonInclude.Value defIncl, JsonSetter.Value defSetter, VisibilityChecker<?> defVisibility, Boolean defMergeable)
public ConfigOverrides copy()
public ConfigOverride findOverride(Class<?> type)
public MutableConfigOverride findOrCreateOverride(Class<?> type)
public JsonFormat.Value findFormatDefaults(Class<?> type)
public JsonInclude.Value getDefaultInclusion()
public JsonSetter.Value getDefaultSetterInfo()
public Boolean getDefaultMergeable()
public Boolean getDefaultLeniency()
public VisibilityChecker<?> getDefaultVisibility()
public void setDefaultInclusion(JsonInclude.Value v)
public void setDefaultSetterInfo(JsonSetter.Value v)
public void setDefaultMergeable(Boolean v)
public void setDefaultLeniency(Boolean v)
public void setDefaultVisibility(VisibilityChecker<?> v)
protected Map<Class<?>,MutableConfigOverride> _newMap()
Copyright © 2008–2019 FasterXML. All rights reserved.