org.elasticsearch.common.xcontent
Enum XContentParser.Token

java.lang.Object
  extended by java.lang.Enum<XContentParser.Token>
      extended by 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>


Enum Constant Summary
END_ARRAY
           
END_OBJECT
           
FIELD_NAME
           
START_ARRAY
           
START_OBJECT
           
VALUE_BOOLEAN
           
VALUE_EMBEDDED_OBJECT
           
VALUE_NULL
           
VALUE_NUMBER
           
VALUE_STRING
           
 
Method Summary
abstract  boolean isValue()
           
static XContentParser.Token valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.