Enum DataType
- All Implemented Interfaces:
Serializable
,Comparable<DataType>
Types that are currently supported by MYDATA.
- Author:
- Fraunhofer IESE
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DataType
getByClass
(Class<?> clazz) Gets the by class.static DataType
getById
(int id) Gets the by component_id.Class<?>
Gets the data type class.int
Gets the data type component_id.boolean
Matches.static DataType
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 Details
-
STRING
The string. -
BOOL
The bool. -
INT
The int. -
LONG
The long. -
FLOAT
The float. -
DOUBLE
The double. -
DATAUSAGE
The datausage. -
XPATH
The xpath. -
REGEX
The regex. -
CONTEXT
The context. -
BINARY
The binary. -
STRING_ARRAY
The string array. -
ARRAYLIST
The array.list
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
Gets the by class.- Parameters:
clazz
- the clazz- Returns:
- the by class
-
getById
Gets the by component_id.- Parameters:
id
- the component_id- Returns:
- the by component_id
-
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
Matches.- Parameters:
clazz
- the clazzid
- the component_id- Returns:
- true, if successful
-