Class MapSchemaType

  • All Implemented Interfaces:
    Serializable

    public class MapSchemaType
    extends SchemaType
    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • MapSchemaType

        public MapSchemaType()
        Default constructor
      • MapSchemaType

        public MapSchemaType​(MapSchemaType template)
        Copy/clone Constructor.
        Parameters:
        template - template object to copy.
    • Method Detail

      • getMapFromElement

        public SchemaType 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​(SchemaType 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 SchemaType 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​(SchemaType 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
      • cloneSchemaElement

        public SchemaElement cloneSchemaElement()
        Returns a clone of this object as the abstract SchemaElement class.
        Overrides:
        cloneSchemaElement in class SchemaType
        Returns:
        SchemaElement
      • cloneSchemaType

        public SchemaType cloneSchemaType()
        Returns a clone of this object as the abstract SchemaType class.
        Overrides:
        cloneSchemaType in class SchemaType
        Returns:
        SchemaType
      • toString

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

        public int hashCode()
        Hash of properties
        Overrides:
        hashCode in class SchemaType
        Returns:
        int