Class DataContractSchemaMap

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

public class DataContractSchemaMap extends Object
This class describes the key and value of a schema property whose logical type is map (ODCS v3.2.0, RFC 0030). Both the key and the value follow the standard property shape.
  • Constructor Details

    • DataContractSchemaMap

      public DataContractSchemaMap()
      Default constructor
  • Method Details

    • getKey

      public DataContractSchemaProperty getKey()
      Return the definition of the map key.
      Returns:
      DataContractSchemaProperty
    • setKey

      public void setKey(DataContractSchemaProperty key)
      Set up the definition of the map key.
      Parameters:
      key - DataContractSchemaProperty
    • getValue

      public DataContractSchemaProperty getValue()
      Return the definition of the map value.
      Returns:
      DataContractSchemaProperty
    • setValue

      public void setValue(DataContractSchemaProperty value)
      Set up the definition of the map value.
      Parameters:
      value - DataContractSchemaProperty
    • 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