java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.graph.Graph
All Implemented Interfaces:
Serializable

public class Graph extends Object implements Serializable
A graph contain A Node is a Glossary Artifact in the subject area omas that has a type NodeType, name, qualified name and description. A node may be in one or more projects.

Nodes can be connected with Relationships to form graphs. As they may be visualised, so a node has an associated icon.

See Also:
  • Constructor Details

    • Graph

      public Graph()
  • Method Details

    • getNodes

      public Map<String,Node> getNodes()
      Get the nodes that are in the neighbourhood of the root node
      Returns:
      the nodes
    • setNodes

      public void setNodes(Map<String,Node> nodes)
      Set the nodes that are in the neighbourhood of the root node
      Parameters:
      nodes - supply the nodes associated with the root node
    • getRelationships

      public Map<String,Relationship> getRelationships()
      Get the relationships that are in the neighbourhood of the root node
      Returns:
      the relationships
    • setRelationships

      public void setRelationships(Map<String,Relationship> relationships)
      Set the relationships that are in the neighbourhood of the root node
      Parameters:
      relationships - supply the nodes associated with the root node
    • getRootNodeGuid

      public String getRootNodeGuid()
      Returns:
      the root node guid
    • setRootNodeGuid

      public void setRootNodeGuid(String rootNodeGuid)
      the root node's guid.
      Parameters:
      rootNodeGuid - the guid of the root node
    • getNodeFilter

      public String getNodeFilter()
      Get the node type filters as a comma separated string
      Returns:
      string of node types
    • setNodeFilter

      public void setNodeFilter(String nodeFilter)
      Set the node type filters as a comma separated string
      Parameters:
      nodeFilter - the node type filters
    • getRelationshipFilter

      public String getRelationshipFilter()
      Get the relationship type filters as a comma separated string
      Returns:
      string of relationship types
    • setRelationshipFilter

      public void setRelationshipFilter(String relationshipFilter)
      Set the relationship type filters as a comma separated string
      Parameters:
      relationshipFilter - the node type filters
    • toString

      public String toString(StringBuilder sb)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object