public enum AttributeType extends java.lang.Enum<AttributeType>
Enum Constant and Description |
---|
BOOL |
DATE |
ENUM |
ENUM_DEFINITION |
FLOAT |
HTML |
INT |
LIST |
REFERENCE |
RESOURCE |
STRING |
Modifier and Type | Field and Description |
---|---|
static java.text.SimpleDateFormat |
DATE_FORMAT |
Modifier and Type | Method and Description |
---|---|
static AttributeType |
detectType(java.lang.Object object) |
java.lang.Object |
fromString(java.lang.String string) |
static java.lang.Object |
getDefaultValue(AttributeType attributeType) |
static TypedValue |
getTypedValue(java.lang.Object object) |
static AttributeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AttributeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static AttributeType[] |
visibleValues() |
public static final AttributeType INT
public static final AttributeType FLOAT
public static final AttributeType BOOL
public static final AttributeType STRING
public static final AttributeType HTML
public static final AttributeType LIST
public static final AttributeType RESOURCE
public static final AttributeType REFERENCE
public static final AttributeType DATE
public static final AttributeType ENUM
public static final AttributeType ENUM_DEFINITION
public static AttributeType[] values()
for (AttributeType c : AttributeType.values()) System.out.println(c);
public static AttributeType 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 AttributeType[] visibleValues()
public java.lang.Object fromString(java.lang.String string)
public static java.lang.Object getDefaultValue(AttributeType attributeType)
public static AttributeType detectType(java.lang.Object object)
public static TypedValue getTypedValue(java.lang.Object object)