Class AssetMapSchemaType

  • All Implemented Interfaces:
    Serializable

    public class AssetMapSchemaType
    extends AssetSchemaType
    AssetMapSchemaType 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
    • Field Detail

    • Constructor Detail

      • AssetMapSchemaType

        protected AssetMapSchemaType​(AssetDescriptor parentAsset)
        Constructor used by the subclasses
        Parameters:
        parentAsset - descriptor of asset that this property relates to.
      • AssetMapSchemaType

        public AssetMapSchemaType​(AssetDescriptor parentAsset,
                                  MapSchemaType schemaType)
        Constructor used by the subclasses
        Parameters:
        parentAsset - descriptor of asset that this property relates to.
        schemaType - bean containing the schema properties
      • AssetMapSchemaType

        public AssetMapSchemaType​(MapSchemaType schemaType)
        Bean constructor
        Parameters:
        schemaType - bean containing the schema properties
      • AssetMapSchemaType

        public AssetMapSchemaType​(AssetDescriptor parentAsset,
                                  AssetMapSchemaType template)
        Copy/clone Constructor the parentAsset is passed separately to the template because it is also likely to be being cloned in the same operation and we want the definitions clone to point to the asset clone and not the original asset.
        Parameters:
        parentAsset - description of the asset that this map is attached to.
        template - template object to copy.
    • Method Detail

      • getMapSchemaTypeBean

        protected MapSchemaType getMapSchemaTypeBean()
        Return the bean with all of the properties.
        Returns:
        map element bean
      • getMapFromElement

        public AssetSchemaType 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
      • setBean

        protected void setBean​(MapSchemaType bean)
        Set up the bean that contains the properties of the schema.
        Parameters:
        bean - bean containing the schema properties
      • getMapToElement

        public AssetSchemaType 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
      • cloneAssetSchemaType

        protected AssetSchemaType cloneAssetSchemaType​(AssetDescriptor parentAsset)
        Return a clone of this schema element. This method is needed because AssetSchemaType is abstract.
        Specified by:
        cloneAssetSchemaType in class AssetSchemaType
        Parameters:
        parentAsset - description of the asset that this schema element is attached to.
        Returns:
        An instance of the this object's subclass
      • toString

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