Class OMChildElementIterator
- java.lang.Object
-
- org.apache.axiom.om.impl.traverse.OMChildElementIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.axiom.om.OMNode
currentChild
Deprecated.Field currentChildprotected org.apache.axiom.om.OMNode
lastChild
Deprecated.Field lastChildprotected boolean
nextCalled
Deprecated.Field nextCalledprotected boolean
removeCalled
Deprecated.Field removeCalled
-
Constructor Summary
Constructors Constructor Description OMChildElementIterator(org.apache.axiom.om.OMElement currentChild)
Deprecated.Constructor OMChildrenIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
hasNext()
Deprecated.Returnstrue
if the iteration has more elements.Object
next()
Deprecated.Returns the next element in the iteration.void
remove()
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, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
currentChild
protected org.apache.axiom.om.OMNode currentChild
Deprecated.Field currentChild
-
lastChild
protected org.apache.axiom.om.OMNode lastChild
Deprecated.Field lastChild
-
nextCalled
protected boolean nextCalled
Deprecated.Field nextCalled
-
removeCalled
protected boolean removeCalled
Deprecated.Field removeCalled
-
-
Method Detail
-
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:
remove
in interfaceIterator
- Throws:
UnsupportedOperationException
- if theremove
operation is not supported by this Iterator.IllegalStateException
- if thenext
method has not yet been called, or theremove
method has already been called after the last call to thenext
method.
-
hasNext
public boolean hasNext()
Deprecated.Returnstrue
if the iteration has more elements. (In other words, returnstrue
ifnext
would return an element rather than throwing an exception.)
-
next
public Object next()
Deprecated.Returns the next element in the iteration.- Specified by:
next
in interfaceIterator
- Returns:
- Returns the next element in the iteration.
- Throws:
NoSuchElementException
- iteration has no more elements.
-
-