Class Asset

  • All Implemented Interfaces:
    java.io.Serializable

    public class Asset
    extends Referenceable
    Asset is a set of properties that describes an open metadata asset. It is designed to convey the important properties needed to make a security decision.
    See Also:
    Serialized Form
    • Constructor Detail

      • Asset

        public Asset()
        Default constructor
      • Asset

        public Asset​(Asset template)
        Copy/clone constructor. Note, this is a deep copy
        Parameters:
        template - template values for asset summary
    • Method Detail

      • getDisplayName

        public java.lang.String getDisplayName()
        Returns the stored display name property for the asset. If no display name is available then null is returned.
        Returns:
        String name
      • setDisplayName

        public void setDisplayName​(java.lang.String displayName)
        Set up the stored display name property for the asset.
        Parameters:
        displayName - String name
      • getDescription

        public java.lang.String getDescription()
        Returns the stored description property for the asset. If no description is provided then null is returned.
        Returns:
        description String text
      • setDescription

        public void setDescription​(java.lang.String description)
        Set up the stored description property associated with the asset.
        Parameters:
        description - String text
      • getOwner

        public java.lang.String getOwner()
        Returns the name of the owner for this asset.
        Returns:
        owner String
      • setOwner

        public void setOwner​(java.lang.String owner)
        Set up the name of the owner for this asset.
        Parameters:
        owner - String name
      • getOwnerType

        public int getOwnerType()
        Return the type of owner stored in the owner property.
        Returns:
        OwnerType enum
      • setOwnerType

        public void setOwnerType​(int ownerType)
        Set up the owner type for this asset.
        Parameters:
        ownerType - OwnerType enum
      • getZoneMembership

        public java.util.List<java.lang.String> getZoneMembership()
        Return the names of the zones that this asset is a member of.
        Returns:
        list of zone names
      • setZoneMembership

        public void setZoneMembership​(java.util.List<java.lang.String> zoneMembership)
        Set up the names of the zones that this asset is a member of.
        Parameters:
        zoneMembership - list of zone names
      • getOrigin

        public java.util.Map<java.lang.String,​java.lang.String> getOrigin()
        Return the properties that characterize where this asset is from.
        Returns:
        map of name value pairs, all strings
      • setOrigin

        public void setOrigin​(java.util.Map<java.lang.String,​java.lang.String> origin)
        Set up the properties that characterize where this asset is from.
        Parameters:
        origin - map of name value pairs, all strings
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class Referenceable
        Returns:
        print out of variables in a JSON-style
      • equals

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

        public int hashCode()
        Return hash code based on properties.
        Overrides:
        hashCode in class Referenceable
        Returns:
        int