citysdk.tourism.client.parser
Enum Field
java.lang.Object
java.lang.Enum<Field>
citysdk.tourism.client.parser.Field
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Field>
public enum Field
- extends java.lang.Enum<Field>
An enum containing each language-supported field of a POI.
- Author:
- Pedro Cruz
|
Method Summary |
java.lang.String |
getField()
|
static Field |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
FIELD_LABEL
public static final Field FIELD_LABEL
FIELD_DESCRIPTION
public static final Field FIELD_DESCRIPTION
FIELD_CATEGORY
public static final Field FIELD_CATEGORY
values
public static Field[] 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 (Field c : Field.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Field 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 name
java.lang.NullPointerException - if the argument is null
getField
public java.lang.String getField()