Class Graph

  • All Implemented Interfaces:
    java.io.Serializable

    public class Graph
    extends java.lang.Object
    implements java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Graph()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getNodeFilter()
      Get the node type filters as a comma separated string
      java.util.Map<java.lang.String,​Node> getNodes()
      Get the nodes that are in the neighbourhood of the root node
      java.lang.String getRelationshipFilter()
      Get the relationship type filters as a comma separated string
      java.util.Map<java.lang.String,​Relationship> getRelationships()
      Get the relationships that are in the neighbourhood of the root node
      java.lang.String getRootNodeGuid()  
      int hashCode()  
      void setNodeFilter​(java.lang.String nodeFilter)
      Set the node type filters as a comma separated string
      void setNodes​(java.util.Map<java.lang.String,​Node> nodes)
      Set the nodes that are in the neighbourhood of the root node
      void setRelationshipFilter​(java.lang.String relationshipFilter)
      Set the relationship type filters as a comma separated string
      void setRelationships​(java.util.Map<java.lang.String,​Relationship> relationships)
      Set the relationships that are in the neighbourhood of the root node
      void setRootNodeGuid​(java.lang.String rootNodeGuid)
      the root node's guid.
      java.lang.String toString()  
      java.lang.String toString​(java.lang.StringBuilder sb)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Graph

        public Graph()
    • Method Detail

      • getNodes

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

        public void setNodes​(java.util.Map<java.lang.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 java.util.Map<java.lang.String,​Relationship> getRelationships()
        Get the relationships that are in the neighbourhood of the root node
        Returns:
        the relationships
      • setRelationships

        public void setRelationships​(java.util.Map<java.lang.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 java.lang.String getRootNodeGuid()
        Returns:
        the root node guid
      • setRootNodeGuid

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

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

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

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

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

        public java.lang.String toString​(java.lang.StringBuilder sb)
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object