Class OpenMetadataEnumElementDef
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataEnumElementDef
OpenMetadataEnumElementDef describes a single valid value defined for an enum.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructor sets up an empty OpenMetadataEnumElementDefCopy/clone constructor sets up an OpenMetadataEnumElementDef based on the values supplied in the template. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate that an object is equal depending on their stored values.Return the description for the enum value.Return the unique identifier (guid) of the glossary term that describes this OpenMetadataEnumElementDef.int
Return the numeric value used for the enum value.getValue()
Return the symbolic name for the enum value.int
hashCode()
Return a hash code based on the values of this object.void
setDescription
(String description) Set up the description for the enum value.void
setDescriptionGUID
(String descriptionGUID) Set up the unique identifier (guid) of the glossary term that describes this OpenMetadataEnumElementDef.void
setOrdinal
(int ordinal) Set up the numeric value for the enum value.void
Set up the symbolic name for the enum value.toString()
Standard toString method.
-
Constructor Details
-
OpenMetadataEnumElementDef
public OpenMetadataEnumElementDef()Default constructor sets up an empty OpenMetadataEnumElementDef -
OpenMetadataEnumElementDef
Copy/clone constructor sets up an OpenMetadataEnumElementDef based on the values supplied in the template.- Parameters:
template
- OpenMetadataEnumElementDef
-
-
Method Details
-
getOrdinal
public int getOrdinal()Return the numeric value used for the enum value.- Returns:
- int ordinal
-
setOrdinal
public void setOrdinal(int ordinal) Set up the numeric value for the enum value.- Parameters:
ordinal
- int
-
getValue
Return the symbolic name for the enum value.- Returns:
- String name
-
setValue
Set up the symbolic name for the enum value.- Parameters:
value
- String name
-
getDescription
Return the description for the enum value.- Returns:
- String description
-
setDescription
Set up the description for the enum value.- Parameters:
description
- String
-
getDescriptionGUID
Return the unique identifier (guid) of the glossary term that describes this OpenMetadataEnumElementDef.- Returns:
- String guid
-
setDescriptionGUID
Set up the unique identifier (guid) of the glossary term that describes this OpenMetadataEnumElementDef.- Parameters:
descriptionGUID
- String guid
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values. -
hashCode
public int hashCode()Return a hash code based on the values of this object.
-