public class TreePosition extends SeqPosition implements java.lang.Cloneable
ipos, sequence
Constructor and Description |
---|
TreePosition() |
TreePosition(AbstractSequence seq,
int index) |
TreePosition(java.lang.Object root)
Not a position *in* a sequence, but the current element is the entire sequence.
|
TreePosition(TreePosition pos) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
dump()
Copy this position into pos.
|
java.lang.Object |
getAncestor(int up)
Get the value of an ancestor node.
|
int |
getDepth()
Number of ancestor sequences, including current sequence.
|
java.lang.Object |
getPosNext() |
AbstractSequence |
getRoot()
Get the "root document".
|
boolean |
gotoAttributesStart()
Set position before first attribute (of the element following position).
|
boolean |
gotoChildrenStart()
Set position before first child (of the element following position).
|
boolean |
gotoParent() |
void |
pop() |
void |
popNoRelease() |
void |
push(AbstractSequence child,
int iposChild) |
void |
release() |
void |
set(TreePosition position) |
add, copy, finalize, fromEndIndex, getContainingSequenceSize, getNext, getNextKind, getNextTypeName, getNextTypeObject, getPos, getPrevious, gotoEnd, gotoNext, gotoPrevious, gotoStart, hasMoreElements, hasNext, hasPrevious, isAfter, make, next, nextElement, nextIndex, previous, previousIndex, remove, set, set, set, setNext, setPos, setPos, setPrevious, toInfo, toString
public TreePosition()
public TreePosition(java.lang.Object root)
public TreePosition(AbstractSequence seq, int index)
public TreePosition(TreePosition pos)
public java.lang.Object clone()
clone
in class java.lang.Object
public void set(TreePosition position)
public int getDepth()
public AbstractSequence getRoot()
public java.lang.Object getPosNext()
public void push(AbstractSequence child, int iposChild)
public void pop()
public void popNoRelease()
public final boolean gotoParent()
public boolean gotoChildrenStart()
gotoChildrenStart
in class SeqPosition
public boolean gotoAttributesStart()
public java.lang.Object getAncestor(int up)
up
- the number parents to go up.public void release()
release
in class SeqPosition
public void dump()