java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetElement
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetLineageGraphNode
All Implemented Interfaces:
MetadataElement
Direct Known Subclasses:
AssetLineageGraph

public class AssetLineageGraphNode extends AssetElement
AssetLineageGraphNode is used to return an asset that is part of a lineage graph and the relationships that are the evidence that this asset belongs in the graph.
  • Constructor Details

    • AssetLineageGraphNode

      public AssetLineageGraphNode()
      Default constructor
    • AssetLineageGraphNode

      public AssetLineageGraphNode(AssetElement template)
      Copy/clone constructor. Note, this is a deep copy
      Parameters:
      template - template values for asset
    • AssetLineageGraphNode

      public AssetLineageGraphNode(AssetLineageGraphNode template)
      Copy/clone constructor. Note, this is a deep copy
      Parameters:
      template - template values for asset graph
  • Method Details

    • getUpstreamRelationships

      public List<MetadataRelationship> getUpstreamRelationships()
      Return the upstream relationships that provide the evidence that this asset is part of the resulting lineage graph. (An upstream relationship is one where an anchored element is at end 2 only.)
      Returns:
      relationships
    • setUpstreamRelationships

      public void setUpstreamRelationships(List<MetadataRelationship> upstreamRelationships)
      Set up the upstream relationships that provide the evidence that this asset is part of the resulting lineage graph. (An upstream relationship is one where an anchored element is at end 2 only.)
      Parameters:
      upstreamRelationships - relationships
    • getDownstreamRelationships

      public List<MetadataRelationship> getDownstreamRelationships()
      Return the downstream relationships that provide the evidence that this asset is part of the resulting lineage graph. (A downstream relationship is one where an anchored element is at end 1 only.)
      Returns:
      relationships
    • setDownstreamRelationships

      public void setDownstreamRelationships(List<MetadataRelationship> downstreamRelationships)
      Set up the downstream relationships that provide the evidence that this asset is part of the resulting lineage graph. (A downstream relationship is one where an anchored element is at end 1 only.)
      Parameters:
      downstreamRelationships - relationships
    • getInternalRelationships

      public List<MetadataRelationship> getInternalRelationships()
      Return the internal relationships that provide the evidence that this asset is part of the resulting lineage graph. (An internal relationship is one where an anchored element is at both ends.)
      Returns:
      relationships
    • setInternalRelationships

      public void setInternalRelationships(List<MetadataRelationship> internalRelationships)
      Set up the internal relationships that provide the evidence that this asset is part of the resulting lineage graph. (An internal relationship is one where an anchored element is at both ends.)
      Parameters:
      internalRelationships - relationships
    • toString

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

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