Class OMChildElementIterator
java.lang.Object
org.apache.axiom.om.impl.traverse.OMChildElementIterator
- All Implemented Interfaces:
Iterator
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.axiom.om.OMNodeDeprecated.Field currentChildprotected org.apache.axiom.om.OMNodeDeprecated.Field lastChildprotected booleanDeprecated.Field nextCalledprotected booleanDeprecated.Field removeCalled -
Constructor Summary
ConstructorsConstructorDescriptionOMChildElementIterator(org.apache.axiom.om.OMElement currentChild) Deprecated.Constructor OMChildrenIterator. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()Deprecated.Returnstrueif the iteration has more elements.next()Deprecated.Returns the next element in the iteration.voidremove()Deprecated.Removes the last element returned by the iterator (optional operation) from the underlying collection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
currentChild
protected org.apache.axiom.om.OMNode currentChildDeprecated.Field currentChild -
lastChild
protected org.apache.axiom.om.OMNode lastChildDeprecated.Field lastChild -
nextCalled
protected boolean nextCalledDeprecated.Field nextCalled -
removeCalled
protected boolean removeCalledDeprecated.Field removeCalled
-
-
Constructor Details
-
OMChildElementIterator
public OMChildElementIterator(org.apache.axiom.om.OMElement currentChild) Deprecated.Constructor OMChildrenIterator.- Parameters:
currentChild-
-
-
Method Details
-
remove
public void remove()Deprecated.Removes the last element returned by the iterator (optional operation) from the underlying collection. This method can be called only once per call tonext. The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method.- Specified by:
removein interfaceIterator- Throws:
UnsupportedOperationException- if theremoveoperation is not supported by this Iterator.IllegalStateException- if thenextmethod has not yet been called, or theremovemethod has already been called after the last call to thenextmethod.
-
hasNext
public boolean hasNext()Deprecated.Returnstrueif the iteration has more elements. (In other words, returnstrueifnextwould return an element rather than throwing an exception.) -
next
Deprecated.Returns the next element in the iteration.- Specified by:
nextin interfaceIterator- Returns:
- Returns the next element in the iteration.
- Throws:
NoSuchElementException- iteration has no more elements.
-
OMElement.getChildElements(), and this class should never be referenced directly. It will be removed in Axiom 1.3.