Package javax.json.stream
Enum JsonParser.Event
- java.lang.Object
-
- java.lang.Enum<JsonParser.Event>
-
- javax.json.stream.JsonParser.Event
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JsonParser.Event>
- Enclosing interface:
- JsonParser
public static enum JsonParser.Event extends java.lang.Enum<JsonParser.Event>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description END_ARRAY
END_OBJECT
KEY_NAME
START_ARRAY
START_OBJECT
VALUE_FALSE
VALUE_NULL
VALUE_NUMBER
VALUE_STRING
VALUE_TRUE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
START_ARRAY
public static final JsonParser.Event START_ARRAY
-
START_OBJECT
public static final JsonParser.Event START_OBJECT
-
KEY_NAME
public static final JsonParser.Event KEY_NAME
-
VALUE_STRING
public static final JsonParser.Event VALUE_STRING
-
VALUE_NUMBER
public static final JsonParser.Event VALUE_NUMBER
-
VALUE_TRUE
public static final JsonParser.Event VALUE_TRUE
-
VALUE_FALSE
public static final JsonParser.Event VALUE_FALSE
-
VALUE_NULL
public static final JsonParser.Event VALUE_NULL
-
END_OBJECT
public static final JsonParser.Event END_OBJECT
-
END_ARRAY
public static final JsonParser.Event END_ARRAY
-
-
Method Detail
-
values
public static JsonParser.Event[] 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 (JsonParser.Event c : JsonParser.Event.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonParser.Event 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 namejava.lang.NullPointerException
- if the argument is null
-
-