Enum Class OpenMetadataPrimitiveDefCategory
java.lang.Object
java.lang.Enum<OpenMetadataPrimitiveDefCategory>
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataPrimitiveDefCategory
- All Implemented Interfaces:
Serializable
,Comparable<OpenMetadataPrimitiveDefCategory>
,Constable
This enumeration defines the list of open metadata primitive types. This includes a code value, a string
name for the type (used in self describing structures such as JSON or XML) and the name of the Java Class
that supports this type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionjava.math.BigDecimaljava.math.BigIntegerjava.lang.Booleanjava.lang.Bytejava.lang.Characterjava.lang.Longjava.lang.Doublejava.lang.Floatjava.lang.Integerjava.lang.Longjava.lang.Shortjava.lang.Stringjava.lang.Object -
Method Summary
Modifier and TypeMethodDescriptiongetGUID()
Return the guid for this primitive type.Return the name of the java class that can be used to store properties of this type.getName()
Return the name of type which can be used for text-based interchange formats such as JSON or XML.int
Return the numeric code for the primitive type which can be used in optimized data flows.toString()
toString() JSON-styleReturns the enum constant of this class with the specified name.static OpenMetadataPrimitiveDefCategory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OM_PRIMITIVE_TYPE_UNKNOWN
java.lang.Object -
OM_PRIMITIVE_TYPE_BOOLEAN
java.lang.Boolean -
OM_PRIMITIVE_TYPE_BYTE
java.lang.Byte -
OM_PRIMITIVE_TYPE_CHAR
java.lang.Character -
OM_PRIMITIVE_TYPE_SHORT
java.lang.Short -
OM_PRIMITIVE_TYPE_INT
java.lang.Integer -
OM_PRIMITIVE_TYPE_LONG
java.lang.Long -
OM_PRIMITIVE_TYPE_FLOAT
java.lang.Float -
OM_PRIMITIVE_TYPE_DOUBLE
java.lang.Double -
OM_PRIMITIVE_TYPE_BIGINTEGER
java.math.BigInteger -
OM_PRIMITIVE_TYPE_BIGDECIMAL
java.math.BigDecimal -
OM_PRIMITIVE_TYPE_STRING
java.lang.String -
OM_PRIMITIVE_TYPE_DATE
java.lang.Long
-
-
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 code for the primitive type which can be used in optimized data flows.- Returns:
- int type code
-
getName
Return the name of type which can be used for text-based interchange formats such as JSON or XML.- Returns:
- String type name
-
getJavaClassName
Return the name of the java class that can be used to store properties of this type.- Returns:
- String java class name.
-
getGUID
Return the guid for this primitive type.- Returns:
- String guid
-
toString
toString() JSON-style- Overrides:
toString
in classEnum<OpenMetadataPrimitiveDefCategory>
- Returns:
- string description
-