Enum ObjectParser.ValueType
- java.lang.Object
-
- java.lang.Enum<ObjectParser.ValueType>
-
- org.elasticsearch.common.xcontent.ObjectParser.ValueType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ObjectParser.ValueType>
,java.lang.constant.Constable
- Enclosing class:
- ObjectParser<Value,Context>
public static enum ObjectParser.ValueType extends java.lang.Enum<ObjectParser.ValueType>
-
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description java.util.EnumSet<XContentParser.Token>
supportedTokens()
static ObjectParser.ValueType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ObjectParser.ValueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final ObjectParser.ValueType STRING
-
STRING_OR_NULL
public static final ObjectParser.ValueType STRING_OR_NULL
-
FLOAT
public static final ObjectParser.ValueType FLOAT
-
FLOAT_OR_NULL
public static final ObjectParser.ValueType FLOAT_OR_NULL
-
DOUBLE
public static final ObjectParser.ValueType DOUBLE
-
DOUBLE_OR_NULL
public static final ObjectParser.ValueType DOUBLE_OR_NULL
-
LONG
public static final ObjectParser.ValueType LONG
-
LONG_OR_NULL
public static final ObjectParser.ValueType LONG_OR_NULL
-
INT
public static final ObjectParser.ValueType INT
-
INT_OR_NULL
public static final ObjectParser.ValueType INT_OR_NULL
-
BOOLEAN
public static final ObjectParser.ValueType BOOLEAN
-
STRING_ARRAY
public static final ObjectParser.ValueType STRING_ARRAY
-
FLOAT_ARRAY
public static final ObjectParser.ValueType FLOAT_ARRAY
-
DOUBLE_ARRAY
public static final ObjectParser.ValueType DOUBLE_ARRAY
-
LONG_ARRAY
public static final ObjectParser.ValueType LONG_ARRAY
-
INT_ARRAY
public static final ObjectParser.ValueType INT_ARRAY
-
BOOLEAN_ARRAY
public static final ObjectParser.ValueType BOOLEAN_ARRAY
-
OBJECT
public static final ObjectParser.ValueType OBJECT
-
OBJECT_OR_NULL
public static final ObjectParser.ValueType OBJECT_OR_NULL
-
OBJECT_ARRAY
public static final ObjectParser.ValueType OBJECT_ARRAY
-
OBJECT_OR_BOOLEAN
public static final ObjectParser.ValueType OBJECT_OR_BOOLEAN
-
OBJECT_OR_STRING
public static final ObjectParser.ValueType OBJECT_OR_STRING
-
OBJECT_OR_LONG
public static final ObjectParser.ValueType OBJECT_OR_LONG
-
OBJECT_ARRAY_BOOLEAN_OR_STRING
public static final ObjectParser.ValueType OBJECT_ARRAY_BOOLEAN_OR_STRING
-
OBJECT_ARRAY_OR_STRING
public static final ObjectParser.ValueType OBJECT_ARRAY_OR_STRING
-
OBJECT_ARRAY_STRING_OR_NUMBER
public static final ObjectParser.ValueType OBJECT_ARRAY_STRING_OR_NUMBER
-
VALUE
public static final ObjectParser.ValueType VALUE
-
VALUE_OBJECT_ARRAY
public static final ObjectParser.ValueType VALUE_OBJECT_ARRAY
-
VALUE_ARRAY
public static final ObjectParser.ValueType VALUE_ARRAY
-
-
Method Detail
-
values
public static ObjectParser.ValueType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ObjectParser.ValueType 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
-
supportedTokens
public java.util.EnumSet<XContentParser.Token> supportedTokens()
-
-