Enum DataType
- java.lang.Object
-
- java.lang.Enum<DataType>
-
- de.fraunhofer.iese.mydata.policy.parameter.DataType
-
- All Implemented Interfaces:
Serializable
,Comparable<DataType>
public enum DataType extends Enum<DataType>
Types that are currently supported by MYDATA.- Author:
- Fraunhofer IESE
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYLIST
The array.listBINARY
The binary.BOOL
The bool.CONTEXT
The context.DATAUSAGE
The datausage.DOUBLE
The double.FLOAT
The float.INT
The int.LONG
The long.REGEX
The regex.STRING
The string.STRING_ARRAY
The string array.XPATH
The xpath.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataType
getByClass(Class<?> clazz)
Gets the by class.static DataType
getById(int id)
Gets the by component_id.Class<?>
getDataTypeClass()
Gets the data type class.int
getDataTypeId()
Gets the data type component_id.boolean
matches(Class<?> clazz, int id)
Matches.static DataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final DataType STRING
The string.
-
BOOL
public static final DataType BOOL
The bool.
-
INT
public static final DataType INT
The int.
-
LONG
public static final DataType LONG
The long.
-
FLOAT
public static final DataType FLOAT
The float.
-
DOUBLE
public static final DataType DOUBLE
The double.
-
DATAUSAGE
public static final DataType DATAUSAGE
The datausage.
-
XPATH
public static final DataType XPATH
The xpath.
-
REGEX
public static final DataType REGEX
The regex.
-
CONTEXT
public static final DataType CONTEXT
The context.
-
BINARY
public static final DataType BINARY
The binary.
-
STRING_ARRAY
public static final DataType STRING_ARRAY
The string array.
-
ARRAYLIST
public static final DataType ARRAYLIST
The array.list
-
-
Method Detail
-
values
public static DataType[] 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 (DataType c : DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataType 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
-
getByClass
public static DataType getByClass(Class<?> clazz)
Gets the by class.- Parameters:
clazz
- the clazz- Returns:
- the by class
-
getById
public static DataType getById(int id)
Gets the by component_id.- Parameters:
id
- the component_id- Returns:
- the by component_id
-
getDataTypeClass
public Class<?> getDataTypeClass()
Gets the data type class.- Returns:
- the data type class
-
getDataTypeId
public int getDataTypeId()
Gets the data type component_id.- Returns:
- the data type component_id
-
matches
public boolean matches(Class<?> clazz, int id)
Matches.- Parameters:
clazz
- the clazzid
- the component_id- Returns:
- true, if successful
-
-