Class MapSchemaTypeProperties


public class MapSchemaTypeProperties extends SchemaTypeProperties
MapSchemaType describes a schema element of type map. It stores the type of schema element for the domain (eg property name) for the map and the schema element for the range (eg property value) for the map.
  • Constructor Details

    • MapSchemaTypeProperties

      public MapSchemaTypeProperties()
      Default constructor
    • MapSchemaTypeProperties

      public MapSchemaTypeProperties(MapSchemaTypeProperties template)
      Copy/clone Constructor.
      Parameters:
      template - template object to copy.
  • Method Details

    • getMapFromElement

      public SchemaTypeProperties getMapFromElement()
      Return the type of schema element that represents the key or property name for the map. This is also called the domain of the map.
      Returns:
      SchemaElement
    • setMapFromElement

      public void setMapFromElement(SchemaTypeProperties mapFromElement)
      Set up the type of schema element that represents the key or property name for the map. This is also called the domain of the map.
      Parameters:
      mapFromElement - SchemaElement
    • getMapToElement

      public SchemaTypeProperties getMapToElement()
      Return the type of schema element that represents the property value for the map. This is also called the range of the map.
      Returns:
      SchemaElement
    • setMapToElement

      public void setMapToElement(SchemaTypeProperties mapToElement)
      Set up the type of schema element that represents the property value for the map. This is also called the range of the map.
      Parameters:
      mapToElement - SchemaType
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class SchemaTypeProperties
      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 SchemaTypeProperties
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class SchemaTypeProperties
      Returns:
      int hash code