/** * Returns the next following node. * * @return the next following node * * @throws NoSuchElementException if no following nodes remain * * @see java.util.Iterator#next() */ public Object next() throws NoSuchElementException { if ( ! hasNext() ) { throw new NoSuchElementException(); } return currentSibling.next(); }