public interface NodeIterator<T> extends Iterator<T>
CoreParentNode. It defines an
additional method that allows to replace the child node returned by the last call to
Iterator.next().
All implementations of this interface must satisfy the following requirements:
Iterator.remove() method, i.e. it is not
allowed to throw UnsupportedOperationException.
ConcurrentModificationException MUST be thrown when the iterator is used after the
last node returned by Iterator.next() has been removed using a method other than
Iterator.remove() (e.g. CoreChildNode.coreDetach(Semantics)).
CoreModelException occurs inside Iterator.hasNext(),
Iterator.next() or Iterator.remove(), then the implementation MUST use the
supplied ExceptionTranslator to translate that checked exception into an unchecked
exception.
void replace(CoreChildNode newNode) throws CoreModelException
CoreChildNode.newNode - CoreModelExceptionCopyright © The Apache Software Foundation. All Rights Reserved.