public static enum DynamicTemplate.XContentFieldType extends java.lang.Enum<DynamicTemplate.XContentFieldType>
Enum Constant and Description |
---|
BINARY |
BOOLEAN |
DATE |
DOUBLE |
LONG |
OBJECT |
STRING |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
defaultMappingType()
The default mapping type to use for fields of this
DynamicTemplate.XContentFieldType . |
static DynamicTemplate.XContentFieldType |
fromString(java.lang.String value) |
static DynamicTemplate.XContentFieldType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DynamicTemplate.XContentFieldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DynamicTemplate.XContentFieldType OBJECT
public static final DynamicTemplate.XContentFieldType STRING
public static final DynamicTemplate.XContentFieldType LONG
public static final DynamicTemplate.XContentFieldType DOUBLE
public static final DynamicTemplate.XContentFieldType BOOLEAN
public static final DynamicTemplate.XContentFieldType DATE
public static final DynamicTemplate.XContentFieldType BINARY
public static DynamicTemplate.XContentFieldType[] values()
for (DynamicTemplate.XContentFieldType c : DynamicTemplate.XContentFieldType.values()) System.out.println(c);
public static DynamicTemplate.XContentFieldType 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 static DynamicTemplate.XContentFieldType fromString(java.lang.String value)
public abstract java.lang.String defaultMappingType()
DynamicTemplate.XContentFieldType
.