All Implemented Interfaces:
MetadataElement

public class AssetLineageGraph extends AssetLineageGraphNode
AssetLineageGraph is used to return an asset along with all of its lineage relationships.
  • Constructor Details

    • AssetLineageGraph

      public AssetLineageGraph()
      Default constructor
    • AssetLineageGraph

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

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

    • getLinkedAssets

      public List<AssetLineageGraphNode> getLinkedAssets()
      Return the list of elements that are linked to the asset by lineage relationships.
      Returns:
      linked elements
    • setLinkedAssets

      public void setLinkedAssets(List<AssetLineageGraphNode> linkedAssets)
      Set up the list of elements that are linked to the asset by lineage relationships.
      Parameters:
      linkedAssets - linked elements
    • getLineageRelationships

      public List<AssetLineageGraphRelationship> getLineageRelationships()
      Return the relationships that connect the assets together in the lineage graph.
      Returns:
      relationships
    • setLineageRelationships

      public void setLineageRelationships(List<AssetLineageGraphRelationship> lineageRelationships)
      Set up the relationships that connect the assets together in the lineage graph.
      Parameters:
      lineageRelationships - relationships
    • getMermaidGraph

      public String getMermaidGraph()
      Return the mermaid string used to render a graph.
      Returns:
      string in Mermaid markdown
    • setMermaidGraph

      public void setMermaidGraph(String mermaidGraph)
      Set up mermaid string used to render a graph.
      Parameters:
      mermaidGraph - string in Mermaid markdown
    • toString

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

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