A DTMAxisTraverser can probably not traverse a reverse axis in document order.
Typical usage:
for(int nodeHandle=myTraverser.first(myContext);
nodeHandle!=DTM.NULL;
nodeHandle=myTraverser.next(myContext,nodeHandle))
{ ... processing for node indicated by nodeHandle goes here ... }
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public int | Returns: the first node in the traversal.The context node of this traversal. This is the point
that the traversal starts from. context)By the nature of the stateless traversal, the context node can not be returned or the iteration will go into an infinate loop. |
public int | Returns: the first node in the traversal.The context node of this traversal. This is the point
of origin for the traversal -- its "root node" or starting point. context, int The extended type ID that must match. extendedTypeID)By the nature of the stateless traversal, the context node can not be returned or the iteration will go into an infinate loop. |
public abstract int | Returns: the next node in the iteration, or DTM.NULL.The context node of this traversal. This is the point
of origin for the traversal -- its "root node" or starting point. context, int The current node of the traversal. This is the last known
location in the traversal, typically the node-handle returned by the
previous traversal step. For the first traversal step, context
should be set equal to current. Note that in order to test whether
context is in the set, you must use the first() method instead. current)Traverse to the next node after the current node. |
public abstract int | Returns: the next node in the iteration, or DTM.NULL.The context node of this traversal. This is the point
of origin for the traversal -- its "root node" or starting point. context, int The current node of the traversal. This is the last known
location in the traversal, typically the node-handle returned by the
previous traversal step. For the first traversal step, context
should be set equal to current. Note that in order to test whether
context is in the set, you must use the first() method instead. current, int The extended type ID that must match. extendedTypeID)Traverse to the next node after the current node that is matched by the extended type ID. |
DTMAxisTraverser | back to summary |
---|---|
public DTMAxisTraverser() |
first | back to summary |
---|---|
public int first(int context) By the nature of the stateless traversal, the context node can not be returned or the iteration will go into an infinate loop. So to traverse an axis, the first function must be used to get the first node. This method needs to be overloaded only by those axis that process the self node. <\p>
|
first | back to summary |
---|---|
public int first(int context, int extendedTypeID) By the nature of the stateless traversal, the context node can not be returned or the iteration will go into an infinate loop. So to traverse an axis, the first function must be used to get the first node. This method needs to be overloaded only by those axis that process the self node. <\p>
|
next | back to summary |
---|---|
public abstract int next(int context, int current) Traverse to the next node after the current node.
|
next | back to summary |
---|---|
public abstract int next(int context, int current, int extendedTypeID) Traverse to the next node after the current node that is matched by the extended type ID.
|