java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetElement
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AssetGraph
All Implemented Interfaces:
MetadataElement

public class AssetGraph extends AssetElement
AssetGraph is used to return an asset along with all of its anchored elements and the relationships that they have between one another and to other elements.
  • Constructor Details

    • AssetGraph

      public AssetGraph()
      Default constructor
    • AssetGraph

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

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

    • getAnchoredElements

      public List<MetadataElementSummary> getAnchoredElements()
      Return the list of elements that are anchored to the asset.
      Returns:
      anchored elements
    • setAnchoredElements

      public void setAnchoredElements(List<MetadataElementSummary> anchoredElements)
      Set up the list of elements that are anchored to the asset.
      Parameters:
      anchoredElements - anchored elements
    • getRelationships

      public List<MetadataRelationship> getRelationships()
      Return the relationships that connect the anchored elements to the asset, to each other, and to other open metadata elements.
      Returns:
      relationships
    • setRelationships

      public void setRelationships(List<MetadataRelationship> relationships)
      Set up the relationships that connect the anchored elements to the asset, to each other, and to other open metadata elements.
      Parameters:
      relationships - 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
    • getInformationSupplyChains

      public List<MetadataElementSummary> getInformationSupplyChains()
      Return the list of information supply chains that are associated with the lineage relationships to the asset.
      Returns:
      list of information supply chain elements
    • setInformationSupplyChains

      public void setInformationSupplyChains(List<MetadataElementSummary> informationSupplyChains)
      Set up the list of information supply chains that are associated with the lineage relationships to the asset.
      Parameters:
      informationSupplyChains - list of information supply chain elements
    • getInformationSupplyChainMermaidGraph

      public String getInformationSupplyChainMermaidGraph()
      Return the mermaid string used to render a summary graph of the information supply chains that the asset is a part of.
      Returns:
      string in Mermaid markdown
    • setInformationSupplyChainMermaidGraph

      public void setInformationSupplyChainMermaidGraph(String informationSupplyChainMermaidGraph)
      Set up the mermaid string used to render a summary graph of the information supply chains that the asset is a part of.
      Parameters:
      informationSupplyChainMermaidGraph - string in Mermaid markdown
    • getFieldLevelLineageGraph

      public String getFieldLevelLineageGraph()
      Return field-level lineage graph.
      Returns:
      mermaid string
    • setFieldLevelLineageGraph

      public void setFieldLevelLineageGraph(String fieldLevelLineageGraph)
      Set up field-level lineage graph.
      Parameters:
      fieldLevelLineageGraph - mermaid string
    • 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