public enum PropertyType extends java.lang.Enum<PropertyType>
Enum Constant and Description |
---|
BOOLEAN |
COMPONENT |
COMPONENT_LIST |
DOUBLE |
FLOAT |
INT |
RESOURCE
A Resource type.
|
STRING |
STRING_LIST |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(java.lang.Object obj)
Determines if the given object can be converted to this type.
|
java.lang.String |
toString() |
protected boolean |
validateString(java.lang.String obj)
Validates the given String.
|
static PropertyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PropertyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyType INT
public static final PropertyType BOOLEAN
public static final PropertyType FLOAT
public static final PropertyType DOUBLE
public static final PropertyType COMPONENT
public static final PropertyType COMPONENT_LIST
public static final PropertyType STRING
public static final PropertyType RESOURCE
public static final PropertyType STRING_LIST
public static PropertyType[] values()
for (PropertyType c : PropertyType.values()) System.out.println(c);
public static PropertyType 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 java.lang.String toString()
toString
in class java.lang.Enum<PropertyType>
protected boolean validateString(java.lang.String obj) throws java.lang.Exception
obj
- String to validatejava.lang.Exception
- if obj is not validpublic boolean isValid(java.lang.Object obj)
obj
- the object to verify