Class Graph
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.graph.Graph
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the node type filters as a comma separated stringgetNodes()Get the nodes that are in the neighbourhood of the root nodeGet the relationship type filters as a comma separated stringGet the relationships that are in the neighbourhood of the root nodeinthashCode()voidsetNodeFilter(String nodeFilter) Set the node type filters as a comma separated stringvoidSet 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.toString()
-
Constructor Details
-
Graph
public Graph()
-
-
Method Details
-
getNodes
Get the nodes that are in the neighbourhood of the root node- Returns:
- the nodes
-
setNodes
Set the nodes that are in the neighbourhood of the root node- Parameters:
nodes- supply the nodes associated with the root node
-
getRelationships
Get the relationships that are in the neighbourhood of the root node- Returns:
- the relationships
-
setRelationships
Set the relationships that are in the neighbourhood of the root node- Parameters:
relationships- supply the nodes associated with the root node
-
getRootNodeGuid
- Returns:
- the root node guid
-
setRootNodeGuid
the root node's guid.- Parameters:
rootNodeGuid- the guid of the root node
-
getNodeFilter
Get the node type filters as a comma separated string- Returns:
- string of node types
-
setNodeFilter
Set the node type filters as a comma separated string- Parameters:
nodeFilter- the node type filters
-
getRelationshipFilter
Get the relationship type filters as a comma separated string- Returns:
- string of relationship types
-
setRelationshipFilter
Set the relationship type filters as a comma separated string- Parameters:
relationshipFilter- the node type filters
-
toString
-
toString
-
equals
-
hashCode
public int hashCode()
-