org.elasticsearch.common.xcontent
Enum XContentParser.Token
java.lang.Object
java.lang.Enum<XContentParser.Token>
org.elasticsearch.common.xcontent.XContentParser.Token
- All Implemented Interfaces:
- Serializable, Comparable<XContentParser.Token>
- Enclosing interface:
- XContentParser
public static enum XContentParser.Token
- extends Enum<XContentParser.Token>
START_OBJECT
public static final XContentParser.Token START_OBJECT
END_OBJECT
public static final XContentParser.Token END_OBJECT
START_ARRAY
public static final XContentParser.Token START_ARRAY
END_ARRAY
public static final XContentParser.Token END_ARRAY
FIELD_NAME
public static final XContentParser.Token FIELD_NAME
VALUE_STRING
public static final XContentParser.Token VALUE_STRING
VALUE_NUMBER
public static final XContentParser.Token VALUE_NUMBER
VALUE_BOOLEAN
public static final XContentParser.Token VALUE_BOOLEAN
VALUE_EMBEDDED_OBJECT
public static final XContentParser.Token VALUE_EMBEDDED_OBJECT
VALUE_NULL
public static final XContentParser.Token VALUE_NULL
values
public static XContentParser.Token[] 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 (XContentParser.Token c : XContentParser.Token.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static XContentParser.Token valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
isValue
public abstract boolean isValue()
Copyright © 2009-2012. All Rights Reserved.