Class OpenMetadataEnumDef
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataAttributeTypeDef
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataEnumDef
The OpenMetadataEnumDef describes an open metadata enumeration. This enumeration consists of a list of valid values
(stored in OpenMetadataEnumElementDef objects) and a default value.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataAttributeTypeDef
category, description, descriptionGUID, guid, name, version, versionName
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructor sets up an empty OpenMetadataEnumDef.OpenMetadataEnumDef
(OpenMetadataEnumDef template) Copy/clone constructor sets the OpenMetadataEnumDef based on the values from the supplied template. -
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 OpenMetadataEnumDef.Return the list of defined Enum values for this OpenMetadataEnumDef.int
hashCode()
Return a hash code based on the values of this object.void
setDefaultValue
(OpenMetadataEnumElementDef defaultValue) Set up the default value for the OpenMetadataEnumDef.void
setElementDefs
(List<OpenMetadataEnumElementDef> elementDefs) Set up the list of defined Enum values for this OpenMetadataEnumDef.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataAttributeTypeDef
getCategory, getDescription, getDescriptionGUID, getGUID, getName, getVersion, getVersionName, setCategory, setDescription, setDescriptionGUID, setGUID, setName, setVersion, setVersionName
-
Constructor Details
-
OpenMetadataEnumDef
public OpenMetadataEnumDef()Default constructor sets up an empty OpenMetadataEnumDef. -
OpenMetadataEnumDef
Copy/clone constructor sets the OpenMetadataEnumDef based on the values from the supplied template.- Parameters:
template
- OpenMetadataEnumDef
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclass
in classOpenMetadataAttributeTypeDef
- Returns:
- subclass of OpenMetadataAttributeTypeDef
-
getElementDefs
Return the list of defined Enum values for this OpenMetadataEnumDef.- Returns:
- EnumElementDefs list
-
setElementDefs
Set up the list of defined Enum values for this OpenMetadataEnumDef.- Parameters:
elementDefs
- EnumElementDefs list
-
getDefaultValue
Return the default value for the OpenMetadataEnumDef.- Returns:
- OpenMetadataEnumElementDef representing the default value
-
setDefaultValue
Set up the default value for the OpenMetadataEnumDef.- Parameters:
defaultValue
- OpenMetadataEnumElementDef representing the default value
-
toString
Standard toString method.- Overrides:
toString
in classOpenMetadataAttributeTypeDef
- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equals
in classOpenMetadataAttributeTypeDef
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCode
in classOpenMetadataAttributeTypeDef
- Returns:
- in hash code
-