Enum FieldTypeEnum
- java.lang.Object
-
- java.lang.Enum<FieldTypeEnum>
-
- de.knightsoftnet.validators.shared.data.FieldTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<FieldTypeEnum>
public enum FieldTypeEnum extends Enum<FieldTypeEnum>
Field type enumeration.- Author:
- Manfred Tremmel
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FieldTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static FieldTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final FieldTypeEnum STRING
string/text.
-
NUMERIC
public static final FieldTypeEnum NUMERIC
numeric.
-
BOOLEAN
public static final FieldTypeEnum BOOLEAN
boolean.
-
DATE
public static final FieldTypeEnum DATE
date.
-
TIME
public static final FieldTypeEnum TIME
time.
-
DATETIME
public static final FieldTypeEnum DATETIME
date and time.
-
ENUM_FIXED
public static final FieldTypeEnum ENUM_FIXED
enumeration with fixed values.
-
ENUM_SQL
public static final FieldTypeEnum ENUM_SQL
enumeration read from database.
-
-
Method Detail
-
values
public static FieldTypeEnum[] 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 (FieldTypeEnum c : FieldTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldTypeEnum valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-