Enum PrimitiveDefCategory
- java.lang.Object
-
- java.lang.Enum<PrimitiveDefCategory>
-
- org.odpi.openmetadata.frameworks.governanceaction.search.PrimitiveDefCategory
-
- All Implemented Interfaces:
Serializable,Comparable<PrimitiveDefCategory>
public enum PrimitiveDefCategory extends Enum<PrimitiveDefCategory> implements Serializable
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.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGUID()Return the guid for this primitive type.StringgetJavaClassName()Return the name of the java class that can be used to store properties of this type.StringgetName()Return the name of type which can be used for text-based interchange formats such as JSON or XML.intgetOrdinal()Return the numeric code for the primitive type which can be used in optimized data flows.StringtoString()toString() JSON-stylestatic PrimitiveDefCategoryvalueOf(String name)Returns the enum constant of this type with the specified name.static PrimitiveDefCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OM_PRIMITIVE_TYPE_UNKNOWN
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_UNKNOWN
-
OM_PRIMITIVE_TYPE_BOOLEAN
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_BOOLEAN
-
OM_PRIMITIVE_TYPE_BYTE
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_BYTE
-
OM_PRIMITIVE_TYPE_CHAR
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_CHAR
-
OM_PRIMITIVE_TYPE_SHORT
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_SHORT
-
OM_PRIMITIVE_TYPE_INT
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_INT
-
OM_PRIMITIVE_TYPE_LONG
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_LONG
-
OM_PRIMITIVE_TYPE_FLOAT
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_FLOAT
-
OM_PRIMITIVE_TYPE_DOUBLE
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_DOUBLE
-
OM_PRIMITIVE_TYPE_BIGINTEGER
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_BIGINTEGER
-
OM_PRIMITIVE_TYPE_BIGDECIMAL
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_BIGDECIMAL
-
OM_PRIMITIVE_TYPE_STRING
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_STRING
-
OM_PRIMITIVE_TYPE_DATE
public static final PrimitiveDefCategory OM_PRIMITIVE_TYPE_DATE
-
-
Method Detail
-
values
public static PrimitiveDefCategory[] 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 (PrimitiveDefCategory c : PrimitiveDefCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrimitiveDefCategory 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
-
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
public String 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
public String getJavaClassName()
Return the name of the java class that can be used to store properties of this type.- Returns:
- String java class name.
-
getGUID
public String getGUID()
Return the guid for this primitive type.- Returns:
- String guid
-
toString
public String toString()
toString() JSON-style- Overrides:
toStringin classEnum<PrimitiveDefCategory>- Returns:
- string description
-
-