Class DataContractEnumValue

java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.odcs.DataContractEnumValue

public class DataContractEnumValue extends Object
This class represents one allowed value in the enumeration of a schema property (ODCS v3.2.0, RFC 0033).
  • Constructor Details

    • DataContractEnumValue

      public DataContractEnumValue()
      Default constructor
  • Method Details

    • getValue

      public Object getValue()
      Return the allowed value.
      Returns:
      Object
    • setValue

      public void setValue(Object value)
      Set up the allowed value.
      Parameters:
      value - Object
    • getLabel

      public String getLabel()
      Return the human-readable label for the value.
      Returns:
      String
    • setLabel

      public void setLabel(String label)
      Set up the human-readable label for the value.
      Parameters:
      label - String
    • getId

      public String getId()
      Return the stable identifier of the value.
      Returns:
      String
    • setId

      public void setId(String id)
      Set up the stable identifier of the value.
      Parameters:
      id - String
    • getDescription

      public String getDescription()
      Return the description of what the value represents.
      Returns:
      String
    • setDescription

      public void setDescription(String description)
      Set up the description of what the value represents.
      Parameters:
      description - String
    • getTags

      public List<String> getTags()
      Return the tags attached to the value.
      Returns:
      List
    • setTags

      public void setTags(List<String> tags)
      Set up the tags attached to the value.
      Parameters:
      tags - List
    • getCustomProperties

      public List<BitolCustomProperty> getCustomProperties()
      Return the custom properties of the value, for example translations.
      Returns:
      List
    • setCustomProperties

      public void setCustomProperties(List<BitolCustomProperty> customProperties)
      Set up the custom properties of the value, for example translations.
      Parameters:
      customProperties - List
    • getAuthoritativeDefinitions

      public List<BitolAuthoritativeDefinition> getAuthoritativeDefinitions()
      Return links to the sources that define the value.
      Returns:
      List
    • setAuthoritativeDefinitions

      public void setAuthoritativeDefinitions(List<BitolAuthoritativeDefinition> authoritativeDefinitions)
      Set up links to the sources that define the value.
      Parameters:
      authoritativeDefinitions - List
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int