Class EnumDef
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.AttributeTypeDef
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.EnumDef
- All Implemented Interfaces:
Serializable
The EnumDef describes an open metadata enumeration. This enumeration consists of a list of valid values
(stored in EnumElementDef objects) and a default value.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef
category, description, descriptionGUID, descriptionWiki, guid, name, version, versionName
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDelegate the process of cloning to the subclass.boolean
Validate that an object is equal depending on their stored values.Return the default value for the EnumDef.Return the list of defined Enum values for this EnumDef.int
hashCode()
Return a hash code based on the values of this object.void
setDefaultValue
(EnumElementDef defaultValue) Set up the default value for the EnumDef.void
setElementDefs
(List<EnumElementDef> elementDefs) Set up the list of defined Enum values for this EnumDef.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef
getCategory, getDescription, getDescriptionGUID, getDescriptionWiki, getGUID, getName, getVersion, getVersionName, setCategory, setDescription, setDescriptionGUID, setDescriptionWiki, setGUID, setName, setVersion, setVersionName
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
EnumDef
public EnumDef()Default constructor sets up an empty EnumDef. -
EnumDef
Copy/clone constructor sets the EnumDef based on the values from the supplied template.- Parameters:
template
- EnumDef
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclass
in classAttributeTypeDef
- Returns:
- subclass of AttributeTypeDef
-
getElementDefs
Return the list of defined Enum values for this EnumDef.- Returns:
- EnumElementDefs list
-
setElementDefs
Set up the list of defined Enum values for this EnumDef.- Parameters:
elementDefs
- EnumElementDefs list
-
getDefaultValue
Return the default value for the EnumDef.- Returns:
- EnumElementDef representing the default value
-
setDefaultValue
Set up the default value for the EnumDef.- Parameters:
defaultValue
- EnumElementDef representing the default value
-
toString
Standard toString method.- Overrides:
toString
in classAttributeTypeDef
- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equals
in classAttributeTypeDef
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCode
in classAttributeTypeDef
- Returns:
- in hash code
-