|
SienaXML (v.2.0.0) API documentation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectsiena.xml.xpath.BinaryNode
public class BinaryNode
This object represents a node in a Binary Tree. It has two children, left and right, and space to store a single user object.
| Constructor Summary | |
|---|---|
BinaryNode()
Constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
getData()
Return the user data |
BinaryNode |
getLeftChild()
Returns the left child of the node |
BinaryNode |
getRightChild()
Returns the right child of the node |
boolean |
isLeaf()
Returns if this node is a leaf node in the tree. |
void |
setData(java.lang.Object newData)
Sets the user data |
void |
setLeaf()
Sets that this node is a leaf node. |
void |
setLeftChild(BinaryNode node)
Sets the left child of this node |
void |
setRightChild(BinaryNode node)
Sets the right child of the node |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryNode()
| Method Detail |
|---|
public void setLeftChild(BinaryNode node)
node - Node to be set as the left child.public void setRightChild(BinaryNode node)
node - Node to be set as the right child.public void setData(java.lang.Object newData)
newData - User datapublic BinaryNode getLeftChild()
public BinaryNode getRightChild()
public java.lang.Object getData()
public void setLeaf()
public boolean isLeaf()
|
SienaXML (v.2.0.0) API documentation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||