All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RelatedAssetProperties

public class RelatedAsset extends Asset
RelatedAsset describes the relationship to other assets.
See Also:
  • Constructor Details

    • RelatedAsset

      public RelatedAsset()
      Default constructor
    • RelatedAsset

      public RelatedAsset(RelatedAsset template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getRelationshipName

      public String getRelationshipName()
      Return the type of relationship to the asset.
      Returns:
      type name string
    • setRelationshipName

      public void setRelationshipName(String relationshipName)
      Set up the type of relationship to the asset.
      Parameters:
      relationshipName - type name string
    • getAttributeName

      public String getAttributeName()
      Return the attribute name for the related asset.
      Returns:
      string name
    • setAttributeName

      public void setAttributeName(String attributeName)
      Set up the attribute name for the related asset.
      Parameters:
      attributeName - string name
    • toString

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

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