A light weight XML tree node
Public Member Functions | |
TreeNode (TreeNodeType ty) | |
TreeNodeType | getType () |
boolean | isLeaf () |
void | setParent (TreeNode parent) |
TreeNode | getParent () |
void | setChild (TreeNode child) |
TreeNode | getChild () |
TreeNode | getSecondChild () |
TreeNode | getThirdChild () |
TreeNode | getChildN (int n) |
Get child N, where N = {1, 2, ... | |
void | setSibling (TreeNode sibling) |
TreeNode | getSibling () |
void | setSibPred (TreeNode pred) |
TreeNode | getSibPred () |
abstract String | toString () |
Private Attributes | |
TreeNodeType | mType = null |
Node type: tag, attribute, text. | |
TreeNode | mParent = null |
if (this) is a child, mParent points to the parent node | |
TreeNode | mChild = null |
reference to a child node | |
TreeNode | mSibling = null |
reference to the next sibling node | |
TreeNode | mSibPred = null |
reference to the predecessor to (this) sibling |
|
|
|
Reimplemented in treebuilder.Attribute.
|
|
Get child N, where N = {1, 2, ... n}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in treebuilder.Attribute.
|
|
|
|
|
|
|
|
Implemented in treebuilder.NamedEntity, and treebuilder.TextNode.
|
|
reference to a child node
|
|
if (this) is a child, mParent points to the parent node
|
|
reference to the next sibling node
|
|
reference to the predecessor to (this) sibling
|
|
Node type: tag, attribute, text.
Reimplemented in treebuilder.Attribute.
|