|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxmlgp.Node
public class Node
This class is the data holder for Node.
It has setters and getters to all the attributes of Node.
It also has the annotations which will be used by jsefa to deserialize node XML element to node object and to serialize node object to node XML element.
Constructor Summary | |
---|---|
Node()
|
Method Summary | |
---|---|
java.util.List<Node> |
getChildren()
Returns the list of children of the node. |
NodeType |
getType()
Returns the type of the node. |
java.lang.String |
getValue()
Returns the value of the node. |
void |
setChildren(java.util.List<Node> children)
Sets the list of children of the node. |
void |
setLeafNode(NodeType type,
java.lang.String value)
Sets terminal node and sets all attributes at once. |
void |
setNonTerminalNode(NodeType type,
java.lang.String value,
java.util.List<Node> children)
Sets non terminal node and sets all attributes at once. |
void |
setType(NodeType type)
Sets the type of the node. |
void |
setValue(java.lang.String value)
Sets the value of the node. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Node()
Method Detail |
---|
public void setNonTerminalNode(NodeType type, java.lang.String value, java.util.List<Node> children)
type
- the type of the node to setvalue
- the value of the node to setchildren
- the list of children to setpublic void setLeafNode(NodeType type, java.lang.String value)
type
- the type of the node to setvalue
- the value of the node to setpublic NodeType getType()
public void setType(NodeType type)
type
- the type of the node to setpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value of the node to setpublic java.util.List<Node> getChildren()
public void setChildren(java.util.List<Node> children)
children
- the list of children to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |