public static enum JsonParser.Event extends Enum<JsonParser.Event>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
methodspublic 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
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 nameNullPointerException
- if the argument is null
Comments to : [email protected]
Copyright © 2012 Oracle and/or its affiliates. All rights reserved.