Class AssetPrimitiveSchemaType

  • All Implemented Interfaces:
    Serializable

    public class AssetPrimitiveSchemaType
    extends AssetSimpleSchemaType
    PrimitiveSchemaType describes a schema element that has a primitive type. This class stores which type of primitive type it is an a default value if supplied.
    See Also:
    Serialized Form
    • Constructor Detail

      • AssetPrimitiveSchemaType

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

        public AssetPrimitiveSchemaType​(PrimitiveSchemaType primitiveSchemaTypeBean)
        Bean constructor
        Parameters:
        primitiveSchemaTypeBean - bean containing the schema element properties
      • AssetPrimitiveSchemaType

        public AssetPrimitiveSchemaType​(AssetDescriptor parentAsset,
                                        PrimitiveSchemaType primitiveSchemaTypeBean)
        Bean constructor with parent asset
        Parameters:
        parentAsset - descriptor for parent asset
        primitiveSchemaTypeBean - bean containing the schema element properties
      • AssetPrimitiveSchemaType

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

      • getPrimitiveSchemaTypeBean

        protected PrimitiveSchemaType getPrimitiveSchemaTypeBean()
        Return the bean with all of the properties.
        Returns:
        primitive element bean
      • cloneAssetSchemaType

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

        protected SchemaType getSchemaTypeBean()
        Return this schema element bean. This method is needed because SchemaElement is abstract.
        Overrides:
        getSchemaTypeBean in class AssetSimpleSchemaType
        Returns:
        An instance of the appropriate subclass of SchemaElement bean
      • setBean

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

        public boolean equals​(Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class AssetSimpleSchemaType
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison