Package net.anotheria.anodoc.data
Enum PropertyType
- java.lang.Object
-
- java.lang.Enum<PropertyType>
-
- net.anotheria.anodoc.data.PropertyType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PropertyType>
public enum PropertyType extends java.lang.Enum<PropertyType>
Declaration of supported types for properties.- Version:
- $Id: $Id
- Author:
- lrosenberg
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyTypebyName(java.lang.String name)java.lang.Class<? extends Property>getClazz()chargetIndicator()Returns the indicator for this property type.static PropertyTypevalueOf(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.
-
-
-
Enum Constant Detail
-
INT
public static final PropertyType INT
Integer.
-
LONG
public static final PropertyType LONG
Long.
-
DOUBLE
public static final PropertyType DOUBLE
Double.
-
FLOAT
public static final PropertyType FLOAT
Float.
-
LIST
public static final PropertyType LIST
List of properties.
-
STRING
public static final PropertyType STRING
String.
-
TEXT
public static final PropertyType TEXT
Text. Same as String but with different editors.
-
BOOLEAN
public static final PropertyType BOOLEAN
Boolean.
-
-
Method Detail
-
values
public static PropertyType[] values()
Returns an array containing the constants of this enum type, in the order they are 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 are 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 namejava.lang.NullPointerException- if the argument is null
-
getClazz
public java.lang.Class<? extends Property> getClazz()
-
getIndicator
public char getIndicator()
Returns the indicator for this property type.- Returns:
- a char.
-
byName
public static PropertyType byName(java.lang.String name)
-
-