enum GDataType extends Enum<GDataType>
This is open source software released under the Apache 2.0 License
| Enum Constant and Description |
|---|
BOOLEAN |
DATE |
DATETIME |
LOCAL_TIME |
NUMBER |
STRING |
| Modifier and Type | Field and Description |
|---|---|
private String |
label |
private static Map<Class,GDataType> |
typeMap |
| Modifier and Type | Method and Description |
|---|---|
static GDataType |
getDataType(Class<?> type,
GDataType defaultType)
Returns the data type for the class specified
|
String |
getLabel()
Returns the label for this type
|
static GDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GDataType BOOLEAN
public static final GDataType STRING
public static final GDataType NUMBER
public static final GDataType DATE
public static final GDataType DATETIME
public static final GDataType LOCAL_TIME
public static GDataType[] values()
for (GDataType c : GDataType.values()) System.out.println(c);
public static GDataType 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 GDataType getDataType(Class<?> type, GDataType defaultType)
type - the class instancedefaultType - the default type when no matchpublic String getLabel()
Copyright 2014-2017, Xavier Witdouck