argo.staj
Enum JsonStreamElementType
java.lang.Object
java.lang.Enum<JsonStreamElementType>
argo.staj.JsonStreamElementType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<JsonStreamElementType>
public enum JsonStreamElementType
- extends java.lang.Enum<JsonStreamElementType>
Types of element a StajParser can produce.
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
START_ARRAY
public static final JsonStreamElementType START_ARRAY
END_ARRAY
public static final JsonStreamElementType END_ARRAY
START_OBJECT
public static final JsonStreamElementType START_OBJECT
END_OBJECT
public static final JsonStreamElementType END_OBJECT
START_FIELD
public static final JsonStreamElementType START_FIELD
END_FIELD
public static final JsonStreamElementType END_FIELD
STRING
public static final JsonStreamElementType STRING
TRUE
public static final JsonStreamElementType TRUE
FALSE
public static final JsonStreamElementType FALSE
NULL
public static final JsonStreamElementType NULL
NUMBER
public static final JsonStreamElementType NUMBER
START_DOCUMENT
public static final JsonStreamElementType START_DOCUMENT
END_DOCUMENT
public static final JsonStreamElementType END_DOCUMENT
values
public static JsonStreamElementType[] 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 (JsonStreamElementType c : JsonStreamElementType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static JsonStreamElementType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null