public class AncestorAxisIterator extends AncestorOrSelfAxisIterator
ancestor axis.
The "ancestor axis contains the ancestors of the context node;
the ancestors of the context node consist of the parent of context node and
the parent's parent and so on; thus, the ancestor axis will always include
the root node, unless the context node is the root node."| Constructor and Description |
|---|
AncestorAxisIterator(java.lang.Object contextNode,
Navigator navigator)
Create a new ancestor axis iterator.
|
hasNext, next, removepublic AncestorAxisIterator(java.lang.Object contextNode,
Navigator navigator)
contextNode - the node to start fromnavigator - the object model specific navigator