public static enum XContentParser.Token extends java.lang.Enum<XContentParser.Token>
Enum Constant and Description |
---|
END_ARRAY |
END_OBJECT |
FIELD_NAME |
START_ARRAY |
START_OBJECT |
VALUE_BOOLEAN |
VALUE_EMBEDDED_OBJECT |
VALUE_NULL |
VALUE_NUMBER |
VALUE_STRING |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isValue() |
static XContentParser.Token |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static XContentParser.Token[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XContentParser.Token START_OBJECT
public static final XContentParser.Token END_OBJECT
public static final XContentParser.Token START_ARRAY
public static final XContentParser.Token END_ARRAY
public static final XContentParser.Token FIELD_NAME
public static final XContentParser.Token VALUE_STRING
public static final XContentParser.Token VALUE_NUMBER
public static final XContentParser.Token VALUE_BOOLEAN
public static final XContentParser.Token VALUE_EMBEDDED_OBJECT
public static final XContentParser.Token VALUE_NULL
public static XContentParser.Token[] values()
for (XContentParser.Token c : XContentParser.Token.values()) System.out.println(c);
public static XContentParser.Token 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 nullpublic abstract boolean isValue()