Class Graph
- 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 typeNodeType, 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 booleanequals(Object o)StringgetNodeFilter()Get the node type filters as a comma separated stringMap<String,Node>getNodes()Get the nodes that are in the neighbourhood of the root nodeStringgetRelationshipFilter()Get the relationship type filters as a comma separated stringMap<String,Relationship>getRelationships()Get the relationships that are in the neighbourhood of the root nodeStringgetRootNodeGuid()inthashCode()voidsetNodeFilter(String nodeFilter)Set the node type filters as a comma separated stringvoidsetNodes(Map<String,Node> nodes)Set the nodes that are in the neighbourhood of the root nodevoidsetRelationshipFilter(String relationshipFilter)Set the relationship type filters as a comma separated stringvoidsetRelationships(Map<String,Relationship> relationships)Set the relationships that are in the neighbourhood of the root nodevoidsetRootNodeGuid(String rootNodeGuid)the root node's guid.StringtoString()StringtoString(StringBuilder sb)
-
-
-
Method Detail
-
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)
-
-