Class AssetComplexSchemaType

  • All Implemented Interfaces:
    Serializable

    public class AssetComplexSchemaType
    extends AssetSchemaType
    An asset's schema provides information about how the asset structures the data it supports. The AssetComplexSchemaType object describes a nested structure of schema attributes and types.
    See Also:
    Serialized Form
    • Constructor Detail

      • AssetComplexSchemaType

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

        public AssetComplexSchemaType​(ComplexSchemaType schemaBean)
        Bean constructor
        Parameters:
        schemaBean - bean containing the schema properties
      • AssetComplexSchemaType

        public AssetComplexSchemaType​(AssetDescriptor parentAsset,
                                      ComplexSchemaType schemaBean)
        Bean constructor with parent asset
        Parameters:
        parentAsset - descriptor for parent asset
        schemaBean - bean containing the schema properties
      • AssetComplexSchemaType

        public AssetComplexSchemaType​(AssetDescriptor parentAsset,
                                      AssetComplexSchemaType 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 schema is attached to.
        template - template object to copy.
    • Method Detail

      • setBean

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

        protected ComplexSchemaType getComplexSchemaTypeBean()
        Return the bean with all of the properties.
        Returns:
        complex element bean
      • getSchemaAttributes

        public AssetSchemaAttributes getSchemaAttributes()
        Return the list of schema attributes in this schema.
        Returns:
        SchemaAttributes
      • getSchemaAttributes

        protected AssetSchemaAttributes getSchemaAttributes​(AssetDescriptor parentAsset)
        Return the list of schema attributes in this schema.
        Parameters:
        parentAsset - description of the asset that this schema is attached to.
        Returns:
        SchemaAttributes
      • 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