|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<JsonParser.Event> javax.json.stream.JsonParser.Event
public static enum JsonParser.Event
Event for parser state while parsing the JSON
Enum Constant Summary | |
---|---|
END_ARRAY
Event for end of an array. |
|
END_OBJECT
Event for end of an object. |
|
KEY_NAME
Event for a name in name(key)/value pair of a JSON object. |
|
START_ARRAY
Event for start of a JSON array. |
|
START_OBJECT
Event for start of a JSON object. |
|
VALUE_FALSE
Event for a false value. |
|
VALUE_NULL
Event for a null value. |
|
VALUE_NUMBER
Event for a number value. |
|
VALUE_STRING
Event for JSON string value. |
|
VALUE_TRUE
Event for a true value. |
Method Summary | |
---|---|
static JsonParser.Event |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JsonParser.Event[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
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 |
Enum Constant Detail |
---|
public static final JsonParser.Event START_ARRAY
public static final JsonParser.Event START_OBJECT
public static final JsonParser.Event KEY_NAME
JsonParser.getString()
public static final JsonParser.Event VALUE_STRING
JsonParser.getString()
public static final JsonParser.Event VALUE_NUMBER
JsonNumber
methods
public static final JsonParser.Event VALUE_TRUE
public static final JsonParser.Event VALUE_FALSE
public static final JsonParser.Event VALUE_NULL
public static final JsonParser.Event END_OBJECT
public static final JsonParser.Event END_ARRAY
Method Detail |
---|
public static JsonParser.Event[] values()
for (JsonParser.Event c : JsonParser.Event.values()) System.out.println(c);
public static JsonParser.Event valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |