Class AssetClassification

  • All Implemented Interfaces:
    Serializable

    public class AssetClassification
    extends AssetPropertyBase
    The Classification class stores information about a classification assigned to an asset. The Classification has a name and some properties. It also stores the typename of the asset it is connected to for debug purposes. Note: it is not valid to have a classification with a null or blank name.
    See Also:
    Serialized Form
    • Constructor Detail

      • AssetClassification

        protected AssetClassification​(ElementClassification classification)
        Bean constructor
        Parameters:
        classification - bean containing the properties
      • AssetClassification

        protected AssetClassification​(AssetDescriptor parentAsset,
                                      ElementClassification classification)
        Bean constructor with parent asset
        Parameters:
        parentAsset - details of the asset that this classification is linked to.
        classification - bean containing the properties
      • AssetClassification

        public AssetClassification​(AssetDescriptor parentAsset,
                                   AssetClassification templateClassification)
        Copy/clone Constructor sets up new classification using values from the template
        Parameters:
        parentAsset - details of the asset that this classification is linked to.
        templateClassification - object to copy
    • Method Detail

      • getClassificationBean

        protected ElementClassification getClassificationBean()
        Return the classification bean. This is used for cloning an AssetClassification.
        Returns:
        classification bean
      • getName

        public String getName()
        Return the name of the classification
        Returns:
        name of classification
      • getProperties

        public Map<String,​Object> getProperties()
        Returns a collection of the additional stored properties for the classification. If no stored properties are present then null is returned.
        Returns:
        properties for the classification
      • toString

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

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class AssetPropertyBase
        Returns:
        int hash code