public enum EntitySerializationOption extends java.lang.Enum<EntitySerializationOption>
EntitySerializationAPI
. This object may be also used during the deserialization.Enum Constant and Description |
---|
COMPACT_REPEATED_ENTITIES
If an entity occurs in object graph several times, then the second and next occurrences will be replaced just
with a JSON object with the single field - entity identified.
|
PRETTY_PRINT
Specifies that JSON must be pretty printed
|
SERIALIZE_INSTANCE_NAME
Specifies that entity instance name will be serialized.
|
SERIALIZE_NULLS
Specifies that fields with null values should be serialized.
|
Modifier and Type | Method and Description |
---|---|
static EntitySerializationOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntitySerializationOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntitySerializationOption COMPACT_REPEATED_ENTITIES
public static final EntitySerializationOption SERIALIZE_NULLS
public static final EntitySerializationOption SERIALIZE_INSTANCE_NAME
public static final EntitySerializationOption PRETTY_PRINT
public static EntitySerializationOption[] values()
for (EntitySerializationOption c : EntitySerializationOption.values()) System.out.println(c);
public static EntitySerializationOption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null