@Deprecated public static enum JsonSerialize.Inclusion extends Enum<JsonSerialize.Inclusion>
JsonSerialize.include() property
to define which properties
of Java Beans are to be included in serialization| Enum Constant and Description |
|---|
ALWAYS
Deprecated.
Value that indicates that properties are to be always included,
independent of value
|
DEFAULT_INCLUSION
Deprecated.
Pseudo-value that is used to indicate
"use whatever is default used at higher level".
|
NON_DEFAULT
Deprecated.
Value that indicates that only properties that have values
that differ from default settings (meaning values they have
when Bean is constructed with its no-arguments constructor)
are to be included.
|
NON_EMPTY
Deprecated.
Value that indicates that only properties that have values
that values that are null or what is considered empty are
not to be included.
|
NON_NULL
Deprecated.
Value that indicates that only properties with non-null
values are to be included.
|
| Modifier and Type | Method and Description |
|---|---|
static JsonSerialize.Inclusion |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static JsonSerialize.Inclusion[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonSerialize.Inclusion ALWAYS
public static final JsonSerialize.Inclusion NON_NULL
public static final JsonSerialize.Inclusion NON_DEFAULT
Maps, since they have no default values;
and if used, works same as ALWAYS.public static final JsonSerialize.Inclusion NON_EMPTY
Collections and Maps,
method isEmpty() is called;
Strings, length() is called,
and return value of 0 indicates empty String
public static final JsonSerialize.Inclusion DEFAULT_INCLUSION
public static JsonSerialize.Inclusion[] values()
for (JsonSerialize.Inclusion c : JsonSerialize.Inclusion.values()) System.out.println(c);
public static JsonSerialize.Inclusion valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2008–2020 FasterXML. All rights reserved.