Class EnumTypePropertyValue

java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.search.PropertyValue
org.odpi.openmetadata.frameworks.governanceaction.search.EnumTypePropertyValue

public class EnumTypePropertyValue extends PropertyValue
An EnumTypePropertyValue stores the value for an enum property.
  • Constructor Details

    • EnumTypePropertyValue

      public EnumTypePropertyValue()
      Default constructor initializes an empty enum value
    • EnumTypePropertyValue

      public EnumTypePropertyValue(EnumTypePropertyValue template)
      Copy/clone constructor initializes the enum with the values from the template.
      Parameters:
      template - EnumTypePropertyValue to copy
  • Method Details

    • cloneFromSubclass

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

      public String valueAsString()
      Return the string version of the value - used for error logging.
      Specified by:
      valueAsString in class PropertyValue
      Returns:
      string value
    • valueAsObject

      public Object valueAsObject()
      Return the object version of the value - used for comparisons.
      Specified by:
      valueAsObject in class PropertyValue
      Returns:
      object value
    • getSymbolicName

      public String getSymbolicName()
      Return the symbolic name for this enum value.
      Returns:
      String symbolic name
    • setSymbolicName

      public void setSymbolicName(String symbolicName)
      Set up the symbolic name for this enum value.
      Parameters:
      symbolicName - String symbolic name
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class PropertyValue
      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 PropertyValue
      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 PropertyValue
      Returns:
      in hash code