class TreeNode extends Object implements Cloneable, Serializable
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private int |
firstChild
The offset of the first child record in the offset.
|
private String |
name
The name of this TreeNode.
|
private int |
nextSibling
The offset of the next sibling record in the offset.
|
private int |
offset
The offset of this TreeNode in the offset.
|
private int |
parent
The offset of the parent record in the offset.
|
private static long |
serialVersionUID
Serialization ID
|
private byte[] |
userData
Optional, extra data associated with this TreeNode.
|
Constructor and Description |
---|
TreeNode()
TreeNode default ctor.
|
TreeNode(int theOffset)
Setup with the positions of data in the file
|
Modifier and Type | Method and Description |
---|---|
TreeNode |
clone() |
int |
getFirstChild() |
String |
getName() |
int |
getNextSibling() |
int |
getOffset() |
int |
getParent() |
byte[] |
getUserData() |
boolean |
hasChildren() |
boolean |
hasNextSibling() |
void |
setFirstChild(int firstChild) |
void |
setName(String newName) |
void |
setNextSibling(int nextSibling) |
void |
setOffset(int newOffset) |
void |
setParent(int parent) |
void |
setUserData(byte[] theUserData) |
private int offset
private String name
private byte[] userData
private int parent
private int nextSibling
private int firstChild
private static final long serialVersionUID
TreeNode()
TreeNode(int theOffset)
theOffset
- public int getOffset()
public void setOffset(int newOffset)
newOffset
- the offset to setpublic String getName()
public void setName(String newName)
newName
- the name to setpublic byte[] getUserData()
public void setUserData(byte[] theUserData)
theUserData
- the userData to setpublic int getFirstChild()
public boolean hasChildren()
public void setFirstChild(int firstChild)
firstChild
- the firstChild to setpublic int getNextSibling()
public boolean hasNextSibling()
public void setNextSibling(int nextSibling)
nextSibling
- the nextSibling to setpublic int getParent()
public void setParent(int parent)
parent
- the parent to set