java.lang.Object
org.odpi.openmetadata.accessservices.itinfrastructure.metadataelements.RelatedAssetElement
All Implemented Interfaces:
MetadataElement

public class RelatedAssetElement extends Object implements MetadataElement
RelatedAssetElement contains the properties and header for a relationship to an asset retrieved from the metadata repository. The related asset is returned as well.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    Copy/clone constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Return comparison result based on the content of the properties.
    Return the date/time that this element is effective from (null means effective from the epoch).
    Return the date/time that element is effective to (null means that it is effective indefinitely into the future).
    org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
    Return the element header associated with the relationship.
    Return the properties for the relationship.
    Return the properties for the related asset.
    int
    Return hash code for this object
    void
    setEffectiveFrom(Date effectiveFrom)
    Set up the date/time that this element is effective from (null means effective from the epoch).
    void
    setEffectiveTo(Date effectiveTo)
    Set the date/time that element is effective to (null means that it is effective indefinitely into the future).
    void
    setElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader elementHeader)
    Set up the element header associated with the relationship.
    void
    Set up the properties for the relationship.
    void
    Set up the properties for the related asset.
    JSON-style toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RelatedAssetElement

      public RelatedAssetElement()
      Default constructor
    • RelatedAssetElement

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

    • getElementHeader

      public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader getElementHeader()
      Return the element header associated with the relationship.
      Specified by:
      getElementHeader in interface MetadataElement
      Returns:
      element header object
    • setElementHeader

      public void setElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader elementHeader)
      Set up the element header associated with the relationship.
      Specified by:
      setElementHeader in interface MetadataElement
      Parameters:
      elementHeader - element header object
    • getProperties

      public Map<String,Object> getProperties()
      Return the properties for the relationship.
      Returns:
      relationship properties (using appropriate subclass)
    • setProperties

      public void setProperties(Map<String,Object> properties)
      Set up the properties for the relationship.
      Parameters:
      properties - asset properties
    • getEffectiveFrom

      public Date getEffectiveFrom()
      Return the date/time that this element is effective from (null means effective from the epoch).
      Returns:
      date object
    • setEffectiveFrom

      public void setEffectiveFrom(Date effectiveFrom)
      Set up the date/time that this element is effective from (null means effective from the epoch).
      Parameters:
      effectiveFrom - date object
    • getEffectiveTo

      public Date getEffectiveTo()
      Return the date/time that element is effective to (null means that it is effective indefinitely into the future).
      Returns:
      date object
    • setEffectiveTo

      public void setEffectiveTo(Date effectiveTo)
      Set the date/time that element is effective to (null means that it is effective indefinitely into the future).
      Parameters:
      effectiveTo - date object
    • getRelatedAsset

      public AssetElement getRelatedAsset()
      Return the properties for the related asset.
      Returns:
      asset properties (using appropriate subclass)
    • setRelatedAsset

      public void setRelatedAsset(AssetElement relatedAsset)
      Set up the properties for the related asset.
      Parameters:
      relatedAsset - asset properties
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class Object
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class Object
      Returns:
      int hash code