public enum AttributeType extends Enum<AttributeType>
Enum Constant and Description |
---|
DATE
An attribute indicating a date.
|
GEO_POINT
An attribute indicating geographical coordinates.
|
TEXT
A textual attribute.
|
TIME
An attribute indicating a time.
|
Modifier and Type | Method and Description |
---|---|
static AttributeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttributeType |
valueOfJson(String jsonType)
Returns the attribute type matching the given string type from JSON.
|
static AttributeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributeType TEXT
public static final AttributeType DATE
public static final AttributeType TIME
public static final AttributeType GEO_POINT
public static AttributeType[] values()
for (AttributeType c : AttributeType.values()) System.out.println(c);
public static AttributeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static AttributeType valueOfJson(String jsonType)
jsonType
- string type from JSONCopyright © 2014. All rights reserved.