public enum JSONInstanceSerializationMode extends java.lang.Enum<JSONInstanceSerializationMode> implements ValueEnum
Enum Constant and Description |
---|
LONG
instances will be shown as a specially formatted JSON listing the most relevant properties of the instance.
|
SHORT
instances will be shown in a shorter format via a call to
SC.echoLeaf() . |
SKIP
no output will be shown for instances (as though they were not present in the data).
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static JSONInstanceSerializationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSONInstanceSerializationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONInstanceSerializationMode LONG
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "long".
public static final JSONInstanceSerializationMode SHORT
SC.echoLeaf()
.
Result is not expected to decode()/eval() successfully if instances are included.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "short".
public static final JSONInstanceSerializationMode SKIP
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "skip".
public static JSONInstanceSerializationMode[] values()
for (JSONInstanceSerializationMode c : JSONInstanceSerializationMode.values()) System.out.println(c);
public static JSONInstanceSerializationMode 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