| Modifier and Type | Class and Description |
|---|---|
private static class |
WholeBibleTreeNode.Level
Levels at which this node stands.
|
private class |
WholeBibleTreeNode.WholeBibleEnumeration
Iterate over the Books
|
| Modifier and Type | Field and Description |
|---|---|
private WholeBibleTreeNode.Level |
level
The level of this node one of: LEVEL_[BIBLE|BOOK|CHAPTER|VERSE]
|
private TreeNode |
parent
Our parent tree node
|
private org.crosswire.jsword.passage.VerseRange |
range
The range that this node refers to
|
private org.crosswire.common.icu.NumberShaper |
shaper
Change the number representation as needed
|
private org.crosswire.jsword.versification.Versification |
v11n |
| Modifier | Constructor and Description |
|---|---|
private |
WholeBibleTreeNode(TreeNode parent,
org.crosswire.jsword.passage.VerseRange range,
WholeBibleTreeNode.Level level)
This constructor is for when we are really a BookTreeNode
|
| Modifier and Type | Method and Description |
|---|---|
Enumeration<TreeNode> |
children() |
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int i)
Returns the child
TreeNode at index i |
int |
getChildCount()
Returns the number of children
TreeNodes the receiver
contains. |
int |
getIndex(TreeNode node)
Returns the index of
node in the receivers children. |
protected static WholeBibleTreeNode |
getNode(TreeNode parent,
org.crosswire.jsword.versification.BibleBook b,
int c,
int v)
We could do some caching here if needs be.
|
TreeNode |
getParent() |
static WholeBibleTreeNode |
getRootNode()
The start point for all WholeBibleTreeNodes.
|
org.crosswire.jsword.passage.VerseRange |
getVerseRange()
The current Passage number
|
boolean |
isLeaf() |
String |
toString()
How we appear in the Tree
|
private org.crosswire.jsword.versification.Versification v11n
private org.crosswire.common.icu.NumberShaper shaper
private org.crosswire.jsword.passage.VerseRange range
private TreeNode parent
private WholeBibleTreeNode.Level level
private WholeBibleTreeNode(TreeNode parent, org.crosswire.jsword.passage.VerseRange range, WholeBibleTreeNode.Level level)
public static WholeBibleTreeNode getRootNode()
protected static WholeBibleTreeNode getNode(TreeNode parent, org.crosswire.jsword.versification.BibleBook b, int c, int v)
public org.crosswire.jsword.passage.VerseRange getVerseRange()
public TreeNode getParent()
getParent in interface TreeNodeTreeNode.getParent()public boolean getAllowsChildren()
getAllowsChildren in interface TreeNodeTreeNode.getAllowsChildren()public boolean isLeaf()
isLeaf in interface TreeNodeTreeNode.isLeaf()public TreeNode getChildAt(int i)
TreeNode at index igetChildAt in interface TreeNodepublic int getChildCount()
TreeNodes the receiver
contains.getChildCount in interface TreeNodepublic int getIndex(TreeNode node)
node in the receivers children. If the
receiver does not contain node, 0 will be returned.public Enumeration<TreeNode> children()
children in interface TreeNodeTreeNode.children()