org.apache.xml.dtm.ref
Class DTMDefaultBaseTraversers.AllFromRootTraverser
java.lang.Object
   org.apache.xml.dtm.DTMAxisTraverser
org.apache.xml.dtm.DTMAxisTraverser
       org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.IndexedDTMAxisTraverser
org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.IndexedDTMAxisTraverser
           org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantTraverser
org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantTraverser
               org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantOrSelfTraverser
org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.DescendantOrSelfTraverser
                   org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.AllFromNodeTraverser
org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.AllFromNodeTraverser
                       org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.AllFromRootTraverser
org.apache.xml.dtm.ref.DTMDefaultBaseTraversers.AllFromRootTraverser
- Direct Known Subclasses: 
- DTMDefaultBaseTraversers.RootTraverser
- Enclosing class:
- DTMDefaultBaseTraversers
- private class DTMDefaultBaseTraversers.AllFromRootTraverser 
- extends DTMDefaultBaseTraversers.AllFromNodeTraverser
Implements traversal of the Ancestor access, in reverse document order.
 
| Method Summary | 
|  int | first(int context)Return the root.
 | 
|  int | first(int context,
           int expandedTypeID)Return the root if it matches the expanded type ID.
 | 
|  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 | 
 
DTMDefaultBaseTraversers.AllFromRootTraverser
private DTMDefaultBaseTraversers.AllFromRootTraverser()
first
public int first(int context)
- Return the root.
 
- 
- Overrides:
- firstin class- DTMDefaultBaseTraversers.DescendantOrSelfTraverser
 
- 
- Parameters:
- context- The context node of this traversal.
- Returns:
- the first node in the traversal.
 
first
public int first(int context,
                 int expandedTypeID)
- Return the root if it matches the expanded type ID.
 
- 
- Overrides:
- firstin class- DTMDefaultBaseTraversers.DescendantTraverser
 
- 
- Parameters:
- context- The context node of this traversal.
- expandedTypeID- The expanded type ID that must match.
- Returns:
- the first node in the traversal.
 
next
public int next(int context,
                int current)
- Traverse to the next node after the current node.
 
- 
- Overrides:
- nextin class- DTMDefaultBaseTraversers.AllFromNodeTraverser
 
- 
- Parameters:
- context- The context node of this iteration.
- current- The current node of the iteration.
- Returns:
- the next node in the iteration, or DTM.NULL.
- See Also:
- DTMAxisTraverser.first(int)
 
next
public 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.
 
- 
- Overrides:
- nextin class- DTMDefaultBaseTraversers.DescendantTraverser
 
- 
- Parameters:
- context- The context node of this iteration.
- current- The current node of the iteration.
- expandedTypeID- The expanded type ID that must match.
- Returns:
- the next node in the iteration, or DTM.NULL.
- See Also:
- DTMAxisTraverser.first(int,int)