Class EnumElementDef
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.EnumElementDef
- All Implemented Interfaces:
Serializable
EnumElementDef describes a single valid value defined for an enum.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor sets up an empty EnumElementDefEnumElementDef(EnumElementDef template) Copy/clone constructor sets up an EnumElementDef based on the values supplied in the template. -
Method Summary
Modifier and TypeMethodDescriptionbooleanValidate 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 EnumElementDef.intReturn the numeric value used for the enum value.getValue()Return the symbolic name for the enum value.inthashCode()Return a hash code based on the values of this object.voidsetDescription(String description) Set up the description for the enum value.voidsetDescriptionGUID(String descriptionGUID) Set up the unique identifier (guid) of the glossary term that describes this EnumElementDef.voidsetOrdinal(int ordinal) Set up the numeric value for the enum value.voidSet up the symbolic name for the enum value.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
EnumElementDef
public EnumElementDef()Default constructor sets up an empty EnumElementDef -
EnumElementDef
Copy/clone constructor sets up an EnumElementDef based on the values supplied in the template.- Parameters:
template- EnumElementDef
-
-
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 EnumElementDef.- Returns:
- String guid
-
setDescriptionGUID
Set up the unique identifier (guid) of the glossary term that describes this EnumElementDef.- Parameters:
descriptionGUID- String guid
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values.- Overrides:
equalsin classRepositoryElementHeader- Parameters:
objectToCompare- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCodein classRepositoryElementHeader- Returns:
- in hash code
-