Package eu.woolplatform.utils.json
Enum JsonAtomicToken.Type
- java.lang.Object
-
- java.lang.Enum<JsonAtomicToken.Type>
-
- eu.woolplatform.utils.json.JsonAtomicToken.Type
-
- All Implemented Interfaces:
Serializable,Comparable<JsonAtomicToken.Type>
- Enclosing class:
- JsonAtomicToken
public static enum JsonAtomicToken.Type extends Enum<JsonAtomicToken.Type>
The possible token types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEANBoolean value
Value:BooleanEND_LISTEnd of a list: "]"
Value: nullEND_OBJECTEnd of an object: "}"
Value: nullEND_STRINGEnd of a string (").LIST_ITEM_SEPARATORSeparator between items in a list: ","
Value: nullNULLNull value
Value: nullNUMBERNumber.OBJECT_KEY_VALUE_SEPARATORSeparator between key and value in an object: ":"
Value: nullOBJECT_PAIR_SEPARATORSeparator between key/value pairs in an object: ","
Value: nullSTART_LISTStart of a list: "["
Value: nullSTART_OBJECTStart of an object: "{"
Value: nullSTART_STRINGStart of a string (").STRINGString value.STRING_CHARACTERCharacter token in a string.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonAtomicToken.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static JsonAtomicToken.Type[]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 JsonAtomicToken.Type START_OBJECT
Start of an object: "{"
Value: null
-
OBJECT_KEY_VALUE_SEPARATOR
public static final JsonAtomicToken.Type OBJECT_KEY_VALUE_SEPARATOR
Separator between key and value in an object: ":"
Value: null
-
OBJECT_PAIR_SEPARATOR
public static final JsonAtomicToken.Type OBJECT_PAIR_SEPARATOR
Separator between key/value pairs in an object: ","
Value: null
-
END_OBJECT
public static final JsonAtomicToken.Type END_OBJECT
End of an object: "}"
Value: null
-
START_LIST
public static final JsonAtomicToken.Type START_LIST
Start of a list: "["
Value: null
-
LIST_ITEM_SEPARATOR
public static final JsonAtomicToken.Type LIST_ITEM_SEPARATOR
Separator between items in a list: ","
Value: null
-
END_LIST
public static final JsonAtomicToken.Type END_LIST
End of a list: "]"
Value: null
-
STRING
public static final JsonAtomicToken.Type STRING
-
START_STRING
public static final JsonAtomicToken.Type START_STRING
Start of a string ("). This token is only returned ifisStringAtomic()returns false.
Value: null
-
STRING_CHARACTER
public static final JsonAtomicToken.Type STRING_CHARACTER
Character token in a string. This token is only returned ifisStringAtomic()returns false. The token can consist of one or more characters. It can be more than one character as the result of parsing a Unicode code point.
Value:String
-
END_STRING
public static final JsonAtomicToken.Type END_STRING
End of a string ("). This token is only returned ifisStringAtomic()returns false.
Value: null
-
NUMBER
public static final JsonAtomicToken.Type NUMBER
-
BOOLEAN
public static final JsonAtomicToken.Type BOOLEAN
Boolean value
Value:Boolean
-
NULL
public static final JsonAtomicToken.Type NULL
Null value
Value: null
-
-
Method Detail
-
values
public static JsonAtomicToken.Type[] 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 (JsonAtomicToken.Type c : JsonAtomicToken.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonAtomicToken.Type 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
-
-