|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.dtm.DTMAxisTraverser org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.IndexedDTMAxisTraverser org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantTraverser org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantFromRootTraverser
A non-xpath axis, returns all nodes that aren't namespaces or attributes, from but not including the root.
Constructor Summary | |
private |
DTMDefaultBaseTraversers.DescendantFromRootTraverser()
|
Method Summary | |
protected boolean |
axisHasBeenProcessed(int axisRoot)
Tell if the axis has been fully processed to tell if a the wait for an arriving node should terminate. |
int |
first(int context)
Return the root. |
int |
first(int context,
int expandedTypeID)
By the nature of the stateless traversal, the context node can not be returned or the iteration will go into an infinate loop. |
protected int |
getFirstPotential(int identity)
Get the first potential identity that can be returned, which is the axis root context in this case. |
protected int |
getNextIndexed(int axisRoot,
int nextPotential,
int expandedTypeID)
Get the next indexed node that matches the expanded type ID. |
protected int |
getSubtreeRoot(int handle)
Get the first potential identity that can be returned. |
protected boolean |
isAfterAxis(int axisRoot,
int identity)
Tell if a node is outside the axis being traversed. |
protected boolean |
isDescendant(int subtreeRootIdentity,
int identity)
Tell if this node identity is a descendant. |
protected boolean |
isIndexed(int expandedTypeID)
Tell if the indexing is on and the given expanded type ID matches what is in the indexes. |
int |
next(int context,
int current)
Traverse to the next node after the current node. |
int |
next(int context,
int current,
int expandedTypeID)
Traverse to the next node after the current node that is matched by the expanded type ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private DTMDefaultBaseTraversers.DescendantFromRootTraverser()
Method Detail |
protected int getFirstPotential(int identity)
getFirstPotential
in class DTMDefaultBaseTraversers.DescendantTraverser
identity
- The node identity of the root context of the traversal.
protected int getSubtreeRoot(int handle)
getSubtreeRoot
in class DTMDefaultBaseTraversers.DescendantTraverser
handle
- handle to the root context.
public int first(int context)
first
in class DTMAxisTraverser
context
- The context node of this traversal.
public int first(int context, int expandedTypeID)
This method needs to be overloaded only by those axis that process the self node. <\p>
first
in class DTMDefaultBaseTraversers.DescendantTraverser
context
- The context node of this traversal. This is the point
of origin for the traversal -- its "root node" or starting point.expandedTypeID
- The expanded type ID that must match.
protected boolean axisHasBeenProcessed(int axisRoot)
axisHasBeenProcessed
in class DTMDefaultBaseTraversers.IndexedDTMAxisTraverser
axisRoot
- The root identity of the axis.
protected boolean isDescendant(int subtreeRootIdentity, int identity)
subtreeRootIdentity
- The root context of the subtree in question.identity
- The index number of the node in question.
protected boolean isAfterAxis(int axisRoot, int identity)
isAfterAxis
in class DTMDefaultBaseTraversers.IndexedDTMAxisTraverser
axisRoot
- The root identity of the axis.identity
- The node in question.
public int next(int context, int current)
next
in class DTMAxisTraverser
context
- The context node of this iteration.current
- The current node of the iteration.
DTMAxisTraverser.first(int)
public int next(int context, int current, int expandedTypeID)
next
in class DTMAxisTraverser
context
- The context node of this iteration.current
- The current node of the iteration.expandedTypeID
- The expanded type ID that must match.
DTMAxisTraverser.first(int,int)
protected final boolean isIndexed(int expandedTypeID)
getNextIndexed
method.
expandedTypeID
- The expanded type ID being requested.
getNextIndexed
method.protected int getNextIndexed(int axisRoot, int nextPotential, int expandedTypeID)
isIndexed
to make sure that the index can
contain nodes that match the given expanded type ID.
axisRoot
- The root identity of the axis.nextPotential
- The node found must match or occur after this node.expandedTypeID
- The expanded type ID for the request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |