Enum JsonElementType
- java.lang.Object
-
- java.lang.Enum<JsonElementType>
-
- io.wcm.caravan.io.jsontransform.element.JsonElementType
-
- All Implemented Interfaces:
Serializable
,Comparable<JsonElementType>
public enum JsonElementType extends Enum<JsonElementType>
Possible JSON stream element type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description END_ARRAY
JSON array endEND_OBJECT
JSON object endSTART_ARRAY
JSON array startSTART_OBJECT
JSON object startVALUE
JSON value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonElementType
valueOf(String name)
Returns the enum constant of this type with the specified name.static JsonElementType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START_OBJECT
public static final JsonElementType START_OBJECT
JSON object start
-
END_OBJECT
public static final JsonElementType END_OBJECT
JSON object end
-
START_ARRAY
public static final JsonElementType START_ARRAY
JSON array start
-
END_ARRAY
public static final JsonElementType END_ARRAY
JSON array end
-
VALUE
public static final JsonElementType VALUE
JSON value
-
-
Method Detail
-
values
public static JsonElementType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JsonElementType c : JsonElementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonElementType valueOf(String name)
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
-
-