public Iterator getAncestorAxisIterator(Object contextNode) throws UnsupportedAxisException { return new AncestorAxisIterator( contextNode, this ); }
/** * Create a new ancestor axis iterator. * * @param contextNode the node to start from * @param navigator the object model specific navigator */ public AncestorAxisIterator(Object contextNode, Navigator navigator) { super( contextNode, navigator ); next(); }
@Override public Iterator<?> getAncestorAxisIterator(final Object contextNode) throws UnsupportedAxisException { return new AncestorAxisIterator(contextNode, this); }