public final class GraphNode extends Object
Constructor and Description |
---|
GraphNode(com.onwbp.adaptation.Adaptation record) |
GraphNode(TableDescriptor tableDescriptor,
com.onwbp.adaptation.PrimaryKey primaryKey) |
Modifier and Type | Method and Description |
---|---|
void |
addAllNodesFrom(Set<GraphNode> nodeRecords)
Adds a
Set of nodes to the list of nodes that are linked from the current node. |
void |
addAllNodesTo(Map<GraphNode,DisplaySpec> linksTo)
Adds a collection of nodes to the list of nodes that link to the current node.
|
void |
addNodesFrom(GraphNode recordDescriptor)
Adds a specified
GraphNode to the list of nodes that are linked from the current node. |
void |
addNodesTo(GraphNode graphNode,
DisplaySpec label)
Adds a specified
GraphNode to the list of nodes that link to the current node. |
boolean |
equals(Object obj) |
DisplaySpec |
getLinkToSpec(GraphNode nodeRecord)
Gets the customization label and layout of the relationship from the current node to a specific node.
|
com.onwbp.adaptation.PrimaryKey |
getPrimaryKey() |
com.onwbp.adaptation.Adaptation |
getRecord(com.orchestranetworks.instance.Repository repository)
Returns an
Adaptation object that corresponds to the current node. |
TableDescriptor |
getTableDescriptor() |
int |
hashCode() |
Iterator<GraphNode> |
iteratorNodesFrom()
Returns an iterator that corresponds to all nodes that link to the current node.
|
Iterator<Map.Entry<GraphNode,DisplaySpec>> |
iteratorNodesTo()
Returns an iterator that corresponds to all nodes that are linked from the current node.
|
Set<GraphNode> |
keySetNodesTo()
Returns a
Set view of the all nodes that link to the current node. |
boolean |
nodesFromContains(GraphNode node)
Checks whether a node links to the current node.
|
boolean |
nodesToContains(GraphNode node)
Checks whether a node is linked from the current node.
|
int |
sizeOfNodesFrom()
Returns the number of nodes that are linked from the current node.
|
int |
sizeOfNodesTo()
Returns the number of nodes that link to the current node.
|
String |
toString() |
public GraphNode(com.onwbp.adaptation.Adaptation record)
public GraphNode(TableDescriptor tableDescriptor, com.onwbp.adaptation.PrimaryKey primaryKey)
public Iterator<Map.Entry<GraphNode,DisplaySpec>> iteratorNodesTo()
public boolean nodesFromContains(GraphNode node)
public boolean nodesToContains(GraphNode node)
public Set<GraphNode> keySetNodesTo()
Set
view of the all nodes that link to the current node.public Iterator<GraphNode> iteratorNodesFrom()
public com.onwbp.adaptation.PrimaryKey getPrimaryKey()
public void addNodesTo(GraphNode graphNode, DisplaySpec label)
GraphNode
to the list of nodes that link to the current node.public void addAllNodesTo(Map<GraphNode,DisplaySpec> linksTo)
public DisplaySpec getLinkToSpec(GraphNode nodeRecord)
public void addNodesFrom(GraphNode recordDescriptor)
GraphNode
to the list of nodes that are linked from the current node.public void addAllNodesFrom(Set<GraphNode> nodeRecords)
Set
of nodes to the list of nodes that are linked from the current node.public int sizeOfNodesTo()
public int sizeOfNodesFrom()
public com.onwbp.adaptation.Adaptation getRecord(com.orchestranetworks.instance.Repository repository)
Adaptation
object that corresponds to the current node.public TableDescriptor getTableDescriptor()