public static class JsonInclude.Value extends java.lang.Object implements JacksonAnnotationValue<JsonInclude>, java.io.Serializable
JsonInclude
annotation.Constructor and Description |
---|
Value(JsonInclude src) |
Modifier and Type | Method and Description |
---|---|
static JsonInclude.Value |
construct(JsonInclude.Include valueIncl,
JsonInclude.Include contentIncl)
Factory method to use for constructing an instance for components
|
static JsonInclude.Value |
construct(JsonInclude.Include valueIncl,
JsonInclude.Include contentIncl,
java.lang.Class<?> valueFilter,
java.lang.Class<?> contentFilter)
Factory method to use for constructing an instance for components
|
static JsonInclude.Value |
empty() |
boolean |
equals(java.lang.Object o) |
static JsonInclude.Value |
from(JsonInclude src)
Factory method to use for constructing an instance from instance of
JsonInclude |
java.lang.Class<?> |
getContentFilter() |
JsonInclude.Include |
getContentInclusion() |
java.lang.Class<?> |
getValueFilter() |
JsonInclude.Include |
getValueInclusion() |
int |
hashCode() |
static JsonInclude.Value |
merge(JsonInclude.Value base,
JsonInclude.Value overrides)
Helper method that will try to combine values from two
JsonInclude.Value
instances, using one as base settings, and the other as overrides
to use instead of base values when defined; base values are only
use if override does not specify a value (matching value is null
or logically missing). |
static JsonInclude.Value |
mergeAll(JsonInclude.Value... values) |
java.lang.String |
toString() |
java.lang.Class<JsonInclude> |
valueFor()
Introspection method that may be used to find actual annotation that may be used
as the source for value instance.
|
JsonInclude.Value |
withContentFilter(java.lang.Class<?> filter)
Mutant factory that will either
Set
content as USE_DEFAULTS
and contentFilter to filter (if filter not null);
or
Set content as ALWAYS (if filter null)
|
JsonInclude.Value |
withContentInclusion(JsonInclude.Include incl) |
JsonInclude.Value |
withOverrides(JsonInclude.Value overrides)
Mutant factory method that merges values of this value with given override
values, so that any explicitly defined inclusion in overrides has precedence over
settings of this value instance.
|
JsonInclude.Value |
withValueFilter(java.lang.Class<?> filter)
Mutant factory that will either
Set
value as USE_DEFAULTS
and valueFilter to filter (if filter not null);
or
Set value as ALWAYS (if filter null)
|
JsonInclude.Value |
withValueInclusion(JsonInclude.Include incl) |
public Value(JsonInclude src)
public static JsonInclude.Value empty()
public static JsonInclude.Value merge(JsonInclude.Value base, JsonInclude.Value overrides)
JsonInclude.Value
instances, using one as base settings, and the other as overrides
to use instead of base values when defined; base values are only
use if override does not specify a value (matching value is null
or logically missing).
Note that one or both of value instances may be `null`, directly;
if both are `null`, result will also be `null`; otherwise never null.public static JsonInclude.Value mergeAll(JsonInclude.Value... values)
public JsonInclude.Value withOverrides(JsonInclude.Value overrides)
this
instance; otherwise new JsonInclude.Value
with changed inclusion values.public static JsonInclude.Value construct(JsonInclude.Include valueIncl, JsonInclude.Include contentIncl)
public static JsonInclude.Value construct(JsonInclude.Include valueIncl, JsonInclude.Include contentIncl, java.lang.Class<?> valueFilter, java.lang.Class<?> contentFilter)
public static JsonInclude.Value from(JsonInclude src)
JsonInclude
public JsonInclude.Value withValueInclusion(JsonInclude.Include incl)
public JsonInclude.Value withValueFilter(java.lang.Class<?> filter)
value
as USE_DEFAULTS
and valueFilter
to filter
(if filter not null);
orvalue
as ALWAYS
(if filter null)
public JsonInclude.Value withContentFilter(java.lang.Class<?> filter)
content
as USE_DEFAULTS
and contentFilter
to filter
(if filter not null);
orcontent
as ALWAYS
(if filter null)
public JsonInclude.Value withContentInclusion(JsonInclude.Include incl)
public java.lang.Class<JsonInclude> valueFor()
JacksonAnnotationValue
valueFor
in interface JacksonAnnotationValue<JsonInclude>
public JsonInclude.Include getValueInclusion()
public JsonInclude.Include getContentInclusion()
public java.lang.Class<?> getValueFilter()
public java.lang.Class<?> getContentFilter()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved