Class OpenMetadataElementGraph


public class OpenMetadataElementGraph extends OpenMetadataElement
OpenMetadataElementGraph is used to return an open metadata element along with all of its anchored elements and the relationships that they have between one another and to other elements.
  • Constructor Details

    • OpenMetadataElementGraph

      public OpenMetadataElementGraph()
      Default constructor
    • OpenMetadataElementGraph

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

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

    • getAnchoredElements

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

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

      public List<OpenMetadataRelationship> 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<OpenMetadataRelationship> 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
    • toString

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

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