|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<FieldType> com.askgeo.dbl.base.FieldType
public enum FieldType
Many of the accessors on the map query result classes return String representations of the fields, even if the underlying data might be better represented by a different type. All fields returned in this manner are enumerated by other enums that implement the DataFieldInterface. That interface includes an accessor that returns the FieldType of the field in question.
In most cases, users of AskGeo will not need to concern themselves with this, as typed accessors have been provided that allow direct access to the metadata fields without the use of the DataFieldInterface. This enum encodes the logical type of the enumerated metadata fields.
Enum Constant Summary | |
---|---|
BOOLEAN
Best represented by a Java boolean type. |
|
FLOAT
Best represented by a Java double type. |
|
INTEGER
Best represented by a Java int type. |
|
STRING
Best represented by a Java String type. |
Method Summary | |
---|---|
java.lang.String |
javaName()
The java type name for the logical type represented by this enumerated value. |
static FieldType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FieldType[] |
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 |
Enum Constant Detail |
---|
public static final FieldType STRING
public static final FieldType BOOLEAN
public static final FieldType INTEGER
public static final FieldType FLOAT
Method Detail |
---|
public static FieldType[] values()
for (FieldType c : FieldType.values()) System.out.println(c);
public static FieldType 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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String javaName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |