public interface Node
| Modifier and Type | Method and Description | 
|---|---|
void | 
addChildNode(Node childNode)
Adds the child node to this Node. 
 | 
void | 
addChildNode(String tag,
            String value)
Adds a child node to this Node. 
 | 
void | 
addParentNode(Node parentNode)
Adds a parent node to this node 
 | 
void | 
addParentNode(String tag,
             String value)
Adds a parent node to this Node. 
 | 
Set<Node> | 
getChildNodes()
Returns the set of nodes that are children of this node. 
 | 
String | 
getNodeName()
Get the value associated to this node in the spreadsheet. 
 | 
String | 
getNodeType()
Get the type of this node in the graph. 
 | 
Set<Node> | 
getParentNodes()
Returns the set of nodes that are parents of this node. 
 | 
void | 
removeChildNode(Node childNode)
Removes the reference to the child from this node 
 | 
void | 
removeParentNode(Node parentNode)
Removes the reference to the parent from this node 
 | 
void | 
setNodeName(String name)
Set the value associated to this node in the spreadsheet. 
 | 
boolean | 
updateChildNode(Node nodeToUpdate)
Updates a child node equal to the supplied node with a new object reference. 
 | 
boolean | 
updateParentNode(Node nodeToUpdate)
Updates a parent node equal to the supplied node with a new object reference. 
 | 
String getNodeType()
void setNodeName(String name)
name - the value for this node name entryString getNodeName()
void addChildNode(Node childNode)
childNode - the node to addvoid removeChildNode(Node childNode)
childNode - the node to removevoid addChildNode(String tag, String value)
tag - the type (or column header, or tag) of the node to addvalue - the value (or node name) of the node to addboolean updateChildNode(Node nodeToUpdate)
UnresolvedPlaceholderNode) have been
 stored, and are subsequently updated with a correct type.
 
 This method capitalises on the fact that nodes with the same type and name parameter are equal, even if the
 actual object references are different. Invoking this method updates the node to the new reference.nodeToUpdate - the new object reference to useSet<Node> getChildNodes()
void addParentNode(Node parentNode)
parentNode - the parent node to addvoid removeParentNode(Node parentNode)
parentNode - the node to removevoid addParentNode(String tag, String value)
tag - the type (or column header, or tag) of the node to addvalue - the value (or node name) of the node to addboolean updateParentNode(Node nodeToUpdate)
UnresolvedPlaceholderNode) have been
 stored, and are subsequently updated with a correct type.
 
 This method capitalises on the fact that nodes with the same type and name parameter are equal, even if the
 actual object references are different. Invoking this method updates the node to the new reference.nodeToUpdate - the new object reference to useCopyright © 2014. All rights reserved.