Package com.smartgwt.client.types
Enum JSONCircularReferenceMode
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<JSONCircularReferenceMode>
,Constable
What the
JSONEncoder
should do when it encounters a circular reference in an object
structure.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionleave a string marker, theJSONEncoder.circularReferenceMarker
, wherever a circular reference is foundcircular references in Arrays will be represented as a null entry, and objects will have a property with a null valueleave a string marker followed by the path to the first occurrence of the circular reference from the top of the object tree that was serialized. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static JSONCircularReferenceMode
Returns the enum constant of this type with the specified name.static JSONCircularReferenceMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OMIT
circular references in Arrays will be represented as a null entry, and objects will have a property with a null valueIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "omit". -
MARKER
leave a string marker, theJSONEncoder.circularReferenceMarker
, wherever a circular reference is foundIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "marker". -
PATH
leave a string marker followed by the path to the first occurrence of the circular reference from the top of the object tree that was serialized. This potentially allows the original object graph to be reconstructed.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "path".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-