public class OpenMetadataEnumDef extends OpenMetadataAttributeTypeDef
The OpenMetadataEnumDef describes an open metadata enumeration. This enumeration consists of a list of valid values (stored in OpenMetadataEnumElementDef objects) and a default value.
  • Constructor Details

    • OpenMetadataEnumDef

      public OpenMetadataEnumDef()
      Default constructor sets up an empty OpenMetadataEnumDef.
    • OpenMetadataEnumDef

      public OpenMetadataEnumDef(OpenMetadataEnumDef template)
      Copy/clone constructor sets the OpenMetadataEnumDef based on the values from the supplied template.
      Parameters:
      template - OpenMetadataEnumDef
  • Method Details

    • cloneFromSubclass

      public OpenMetadataAttributeTypeDef cloneFromSubclass()
      Delegate the process of cloning to the subclass.
      Specified by:
      cloneFromSubclass in class OpenMetadataAttributeTypeDef
      Returns:
      subclass of OpenMetadataAttributeTypeDef
    • getElementDefs

      public List<OpenMetadataEnumElementDef> getElementDefs()
      Return the list of defined Enum values for this OpenMetadataEnumDef.
      Returns:
      EnumElementDefs list
    • setElementDefs

      public void setElementDefs(List<OpenMetadataEnumElementDef> elementDefs)
      Set up the list of defined Enum values for this OpenMetadataEnumDef.
      Parameters:
      elementDefs - EnumElementDefs list
    • getDefaultValue

      public OpenMetadataEnumElementDef getDefaultValue()
      Return the default value for the OpenMetadataEnumDef.
      Returns:
      OpenMetadataEnumElementDef representing the default value
    • setDefaultValue

      public void setDefaultValue(OpenMetadataEnumElementDef defaultValue)
      Set up the default value for the OpenMetadataEnumDef.
      Parameters:
      defaultValue - OpenMetadataEnumElementDef representing the default value
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class OpenMetadataAttributeTypeDef
      Returns:
      JSON style description of variables.
    • equals

      public boolean equals(Object objectToCompare)
      Validate that an object is equal depending on their stored values.
      Overrides:
      equals in class OpenMetadataAttributeTypeDef
      Parameters:
      objectToCompare - object
      Returns:
      boolean result
    • hashCode

      public int hashCode()
      Return a hash code based on the values of this object.
      Overrides:
      hashCode in class OpenMetadataAttributeTypeDef
      Returns:
      in hash code