Enum Class DataType
- All Implemented Interfaces:
Serializable,Comparable<DataType>,Constable,OpenMetadataEnum
DataType identifies the type for a data item.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn ordered list of strings.An ordered list of strings.Big DecimalBig IntegerBooleanByteCharacterDateDoubleFloatIntegerLongA map from string value to boolean value.A map from string value to date value.A map from string value to double value.A map from string value to integer value.A map from string value to long value.A map from string value to date value.A map from string value to string value.A generic data type.ShortString -
Method Summary
Modifier and TypeMethodDescriptionReturn the category for this value.Return the default description of the enumeration.Return the unique identifier for the valid value that represents the enum value.getName()Return the default name of the enumeration.intReturn the numeric representation of the enumeration.Return the qualified name for this value.booleanReturn whether the enum is the default value or not.toString()Standard toString method.static DataTypeReturns the enum constant of this class with the specified name.static DataType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
STRING
String -
INT
Integer -
LONG
Long -
DATE
Date -
BOOLEAN
Boolean -
CHAR
Character -
BYTE
Byte -
FLOAT
Float -
DOUBLE
Double -
BIGINTEGER
Big Integer -
BIGDECIMAL
Big Decimal -
ARRAY_STRING
An ordered list of strings. -
ARRAY_INT
An ordered list of strings. -
MAP_STRING_STRING
A map from string value to string value. -
MAP_STRING_BOOLEAN
A map from string value to boolean value. -
MAP_STRING_INT
A map from string value to integer value. -
MAP_STRING_LONG
A map from string value to long value. -
MAP_STRING_DOUBLE
A map from string value to double value. -
MAP_STRING_DATE
A map from string value to date value. -
MAP_STRING_OBJECT
A map from string value to date value. -
SHORT
Short -
OBJECT
A generic data type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getOrdinal
public int getOrdinal()Return the numeric representation of the enumeration.- Specified by:
getOrdinalin interfaceOpenMetadataEnum- Returns:
- int ordinal
-
getName
Return the default name of the enumeration.- Specified by:
getNamein interfaceOpenMetadataEnum- Returns:
- String name
-
getDescription
Return the default description of the enumeration.- Specified by:
getDescriptionin interfaceOpenMetadataEnum- Returns:
- String description
-
getDescriptionGUID
Return the unique identifier for the valid value that represents the enum value.- Specified by:
getDescriptionGUIDin interfaceOpenMetadataEnum- Returns:
- guid
-
isDefault
public boolean isDefault()Return whether the enum is the default value or not.- Specified by:
isDefaultin interfaceOpenMetadataEnum- Returns:
- boolean
-
getQualifiedName
Return the qualified name for this value.- Returns:
- string
-
getCategory
Return the category for this value.- Returns:
- string
-
toString
Standard toString method.
-