public abstract class AbstractNode extends Object implements Node
| Constructor and Description | 
|---|
AbstractNode()  | 
AbstractNode(String name)  | 
| 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. 
 | 
boolean | 
equals(Object obj)
Nodes are determined to be equal() if they are of the same class, have the same  
Node.getNodeType() value and
 the same getNodeName() value. | 
Set<Node> | 
getChildNodes()
Returns the set of nodes that are children of this node. 
 | 
protected org.slf4j.Logger | 
getLog()  | 
String | 
getNodeName()
Get the value associated to this node in the spreadsheet. 
 | 
Set<Node> | 
getParentNodes()
Returns the set of nodes that are parents of this node. 
 | 
int | 
hashCode()  | 
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 nodeName)
Set the value associated to this node in the spreadsheet. 
 | 
String | 
toString()  | 
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. 
 | 
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNodeTypeprotected volatile String nodeName
public AbstractNode()
public AbstractNode(String name)
public void setNodeName(String nodeName)
NodesetNodeName in interface NodenodeName - the value for this node name entrypublic String getNodeName()
NodegetNodeName in interface Nodepublic void addChildNode(Node childNode)
NodeaddChildNode in interface NodechildNode - the node to addpublic void removeChildNode(Node childNode)
NoderemoveChildNode in interface NodechildNode - the node to removepublic void addChildNode(String tag, String value)
NodeaddChildNode in interface Nodetag - the type (or column header, or tag) of the node to addvalue - the value (or node name) of the node to addpublic Set<Node> getChildNodes()
NodegetChildNodes in interface Nodepublic boolean updateChildNode(Node nodeToUpdate)
NodeUnresolvedPlaceholderNode) 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.updateChildNode in interface NodenodeToUpdate - the new object reference to usepublic void addParentNode(Node parentNode)
NodeaddParentNode in interface NodeparentNode - the parent node to addpublic void removeParentNode(Node parentNode)
NoderemoveParentNode in interface NodeparentNode - the node to removepublic void addParentNode(String tag, String value)
NodeaddParentNode in interface Nodetag - the type (or column header, or tag) of the node to addvalue - the value (or node name) of the node to addpublic Set<Node> getParentNodes()
NodegetParentNodes in interface Nodepublic boolean updateParentNode(Node nodeToUpdate)
NodeUnresolvedPlaceholderNode) 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.updateParentNode in interface NodenodeToUpdate - the new object reference to usepublic boolean equals(Object obj)
Node.getNodeType() value and
 the same getNodeName() value.protected org.slf4j.Logger getLog()
Copyright © 2014. All rights reserved.