Package com.opencloud.rem.common.form
Enum FieldType
- java.lang.Object
-
- java.lang.Enum<FieldType>
-
- com.opencloud.rem.common.form.FieldType
-
- All Implemented Interfaces:
Serializable
,Comparable<FieldType>
public enum FieldType extends Enum<FieldType>
The type of a field for which there is a supported editor widget.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
BYTE
CHARACTER
DATE
DATE_ARRAY
DOUBLE
FLOAT
INTEGER
LONG
PRIMITIVE_BOOLEAN
PRIMITIVE_BYTE
PRIMITIVE_CHAR
PRIMITIVE_DOUBLE
PRIMITIVE_FLOAT
PRIMITIVE_INT
PRIMITIVE_LONG
PRIMITIVE_SHORT
PRIMITVE_INT_ARRAY
PRIMITVE_LONG_ARRAY
SHORT
STRING
STRING_ARRAY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getArrayType()
Class<?>
getBoxedType()
Class<?>
getType()
boolean
isArray()
boolean
isBoolean()
boolean
isPrimitive()
boolean
isString()
String
toString()
static FieldType
valueOf(String name)
Returns the enum constant of this type with the specified name.static FieldType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final FieldType BYTE
-
SHORT
public static final FieldType SHORT
-
INTEGER
public static final FieldType INTEGER
-
LONG
public static final FieldType LONG
-
FLOAT
public static final FieldType FLOAT
-
DOUBLE
public static final FieldType DOUBLE
-
BOOLEAN
public static final FieldType BOOLEAN
-
CHARACTER
public static final FieldType CHARACTER
-
PRIMITIVE_BYTE
public static final FieldType PRIMITIVE_BYTE
-
PRIMITIVE_SHORT
public static final FieldType PRIMITIVE_SHORT
-
PRIMITIVE_INT
public static final FieldType PRIMITIVE_INT
-
PRIMITIVE_LONG
public static final FieldType PRIMITIVE_LONG
-
PRIMITIVE_FLOAT
public static final FieldType PRIMITIVE_FLOAT
-
PRIMITIVE_DOUBLE
public static final FieldType PRIMITIVE_DOUBLE
-
PRIMITIVE_BOOLEAN
public static final FieldType PRIMITIVE_BOOLEAN
-
PRIMITIVE_CHAR
public static final FieldType PRIMITIVE_CHAR
-
STRING
public static final FieldType STRING
-
DATE
public static final FieldType DATE
-
PRIMITVE_INT_ARRAY
public static final FieldType PRIMITVE_INT_ARRAY
-
PRIMITVE_LONG_ARRAY
public static final FieldType PRIMITVE_LONG_ARRAY
-
STRING_ARRAY
public static final FieldType STRING_ARRAY
-
DATE_ARRAY
public static final FieldType DATE_ARRAY
-
-
Method Detail
-
values
public static FieldType[] 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 (FieldType c : FieldType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldType 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
-
getType
public Class<?> getType()
-
getBoxedType
public Class<?> getBoxedType()
-
isPrimitive
public boolean isPrimitive()
-
isArray
public boolean isArray()
-
isString
public boolean isString()
-
isBoolean
public boolean isBoolean()
-
getArrayType
public Class<?> getArrayType()
-
-