public enum AttributeType extends Enum<AttributeType>
Enum Constant and Description |
---|
BOOLEAN |
DOUBLE |
FLOAT |
HTML |
INT |
LONG |
STRING |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static AttributeType |
create(String value)
Create a type from a string representation
|
String |
toString()
Get a string representation of the attribute type
|
static AttributeType |
valueOf(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.
|
public static final AttributeType BOOLEAN
public static final AttributeType INT
public static final AttributeType LONG
public static final AttributeType FLOAT
public static final AttributeType DOUBLE
public static final AttributeType STRING
public static final AttributeType HTML
public static final AttributeType UNKNOWN
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 String toString()
toString
in class Enum<AttributeType>
public static AttributeType create(String value)
value
- the name of the typeCopyright © 2018. All rights reserved.