|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.sword.TreeNode
class TreeNode
A node that knows where the data is in the real file and where it is in relationship to other nodes.
for license details. The copyright to this program is
held by it's authors.
Field Summary | |
---|---|
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 Summary | |
---|---|
TreeNode()
TreeNode default ctor. |
|
TreeNode(int theOffset)
Setup with the positions of data in the file |
Method Summary | |
---|---|
Object |
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)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int offset
private String name
private byte[] userData
private int parent
private int nextSibling
private int firstChild
private static final long serialVersionUID
Constructor Detail |
---|
TreeNode()
TreeNode(int theOffset)
theOffset
- Method Detail |
---|
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 setpublic Object clone()
clone
in class Object
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |