Class AssetEnumSchemaType

  • All Implemented Interfaces:
    Serializable

    public class AssetEnumSchemaType
    extends AssetSimpleSchemaType
    EnumSchemaType 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

      • AssetEnumSchemaType

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

        public AssetEnumSchemaType​(EnumSchemaType enumSchemaTypeBean)
        Bean constructor
        Parameters:
        enumSchemaTypeBean - bean containing the schema element properties
      • AssetEnumSchemaType

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

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

      • getEnumSchemaTypeBean

        protected EnumSchemaType getEnumSchemaTypeBean()
        Return the bean with all of the properties.
        Returns:
        enum 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​(EnumSchemaType 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