co.uk.hjcs.canyon.config
Enum PropertyType
java.lang.Object
java.lang.Enum<PropertyType>
co.uk.hjcs.canyon.config.PropertyType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<PropertyType>
public enum PropertyType
- extends java.lang.Enum<PropertyType>
An enumeration expressing the different options for properties that Canyon supports
- Author:
- HJC Solutions Ltd (http://canyon.hjcsolutions.co.uk)
|
Method Summary |
java.lang.Class |
getJavaType()
|
static PropertyType |
getType(java.lang.String value)
Helper method to obtain enum values from a string. |
java.lang.String |
getValue()
|
java.lang.String |
toString()
|
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're declared. |
| Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
BOOLEAN
public static final PropertyType BOOLEAN
BOOL
public static final PropertyType BOOL
SHORT
public static final PropertyType SHORT
DOUBLE
public static final PropertyType DOUBLE
STRING
public static final PropertyType STRING
INTEGER
public static final PropertyType INTEGER
INT
public static final PropertyType INT
CHAR
public static final PropertyType CHAR
CHARACTER
public static final PropertyType CHARACTER
LONG
public static final PropertyType LONG
SET
public static final PropertyType SET
LIST
public static final PropertyType LIST
DATE
public static final PropertyType DATE
OBJECT
public static final PropertyType OBJECT
ENUM
public static final PropertyType ENUM
values
public static final PropertyType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(PropertyType c : PropertyType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static PropertyType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
getValue
public java.lang.String getValue()
getJavaType
public java.lang.Class getJavaType()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Enum<PropertyType>
getType
public static PropertyType getType(java.lang.String value)
- Helper method to obtain enum values from a string. This helper
methods removes the requirement for the value to have the
correct case. Will silently put the value into the correct case
(upper case).
- Parameters:
value -
- Returns:
- - the property type for the value