java.lang.Object
org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.AssetElement
All Implemented Interfaces:
Serializable, MetadataElement

public class AssetElement extends Object implements MetadataElement, Serializable
Asset holds asset properties that are used for displaying details of an asset in summary lists or hover text. It includes the following properties:
  • qualifiedName - The official (unique) name for the asset. This is often defined by the IT systems management organization and should be used (when available) on audit logs and error messages. (qualifiedName from Referenceable - model 0010)
  • displayName - A consumable name for the asset. Often a shortened form of the assetQualifiedName for use on user interfaces and messages. The assetDisplayName should only be used for audit logs and error messages if the assetQualifiedName is not set. (Sourced from attribute name within Asset - model 0010)
  • shortDescription - short description about the asset. (Sourced from assetSummary within ConnectionsToAsset - model 0205)
  • description - full description of the asset. (Sourced from attribute description within Asset - model 0010)
  • owner - name of the person or organization that owns the asset. (Sourced from attribute owner within Asset - model 0010)
  • ownerCategory - type of the person or organization that owns the asset. (Sourced from classification AssetOwnership attached to Asset - model 0445)
  • zoneMembership - name of the person or organization that owns the asset. (Sourced from classification AssetZoneMemberShip attached to Asset - model 0424)
  • origin - origin identifiers describing the source of the asset. (Sourced from classification AssetOrigin attached to Asset - model 0440)
  • classifications - list of all classifications assigned to the asset
  • extendedProperties - list of properties assigned to the asset from the Asset subclasses
  • additionalProperties - list of properties assigned to the asset as additional properties
See Also:
  • Constructor Details

    • AssetElement

      public AssetElement()
      Default constructor
    • AssetElement

      public AssetElement(AssetElement template)
      Copy/clone constructor. Note, this is a deep copy
      Parameters:
      template - object to copy
  • Method Details

    • getElementHeader

      public ElementHeader getElementHeader()
      Return the element header associated with the properties.
      Specified by:
      getElementHeader in interface MetadataElement
      Returns:
      element header object
    • setElementHeader

      public void setElementHeader(ElementHeader elementHeader)
      Set up the element header associated with the properties.
      Specified by:
      setElementHeader in interface MetadataElement
      Parameters:
      elementHeader - element header object
    • getProperties

      public AssetProperties getProperties()
      Return the description of the asset.
      Returns:
      list of external references
    • setProperties

      public void setProperties(AssetProperties properties)
      Set up the description of the asset.
      Parameters:
      properties - of external references
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class Object
      Returns:
      list of properties and their values.
    • equals

      public boolean equals(Object objectToCompare)
      Equals method that returns true if containing properties are the same.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - object to compare
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class Object
      Returns:
      int