public enum ViewSerializationOption extends java.lang.Enum<ViewSerializationOption>
ViewSerializationAPI. This object may be also used during the deserialization.| Enum Constant and Description |
|---|
COMPACT_FORMAT
Specifies that view is serialized in the compact format.
|
INCLUDE_FETCH_MODE
Specifies that an information about properties fetch mode will be included to the JSON.
|
| Modifier and Type | Method and Description |
|---|---|
static ViewSerializationOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ViewSerializationOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ViewSerializationOption COMPACT_FORMAT
customerGroup2 is defined with a string:
{
"name": "test.customer-view",
"entity": "ref$Customer",
"properties": [
"name",
{
"name": "customerGroup",
"view": {
"name": "test.customerGroup-view",
"properties": [
"id",
"createdBy",
"createTs",
"name"
]
}
},
{
"name": "customerGroup2",
"view": "test.customerGroup-view"
}
]
}
public static final ViewSerializationOption INCLUDE_FETCH_MODE
public static ViewSerializationOption[] values()
for (ViewSerializationOption c : ViewSerializationOption.values()) System.out.println(c);
public static ViewSerializationOption 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