public static enum JsonParser.Event extends java.lang.Enum<JsonParser.Event>
JsonParser.| Enum Constant and Description |
|---|
END_ARRAY
End of a JSON array.
|
END_OBJECT
End of a JSON object.
|
KEY_NAME
Name in a name/value pair of a JSON object.
|
START_ARRAY
Start of a JSON array.
|
START_OBJECT
Start of a JSON object.
|
VALUE_FALSE
false value in a JSON array or object. |
VALUE_NULL
null value in a JSON array or object. |
VALUE_NUMBER
Number value in a JSON array or object.
|
VALUE_STRING
String value in a JSON array or object.
|
VALUE_TRUE
true value in a JSON array or object. |
| Modifier and Type | Method and Description |
|---|---|
static JsonParser.Event |
valueOf(java.lang.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() returns the key
name.public static final JsonParser.Event VALUE_STRING
JsonParser.getString()
returns the string value.public static final JsonParser.Event VALUE_NUMBER
JsonParser provides the following
methods to access the number value: JsonParser.getInt(),
JsonParser.getLong(), and JsonParser.getBigDecimal().public static final JsonParser.Event VALUE_TRUE
true value in a JSON array or object. The position of the
parser is after the true value.public static final JsonParser.Event VALUE_FALSE
false value in a JSON array or object. The position of the
parser is after the false value.public static final JsonParser.Event VALUE_NULL
null value in a JSON array or object. The position of the
parser is after the null value.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null