org.apache.axiom.om.impl.traverse

## Class OMAbstractIterator

- java.lang.Object
- - org.apache.axiom.om.impl.traverse.OMAbstractIterator

- All Implemented Interfaces:
    Iterator
  Direct Known Subclasses:
    OMChildrenIterator

      public abstract class OMAbstractIterator
      extends Object
      implements Iterator

  Abstract base class for iterators over sets of OM nodes.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OMAbstractIterator(OMNode firstNode)`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected abstract OMNode` | `getNextNode(OMNode currentNode)` Get the next node.
    `boolean` | `hasNext()`
    `Object` | `next()`
    `void` | `remove()`

    - ### 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`

- - ### Constructor Detail

    - #### OMAbstractIterator

          public OMAbstractIterator(OMNode firstNode)

  - ### Method Detail

    - #### getNextNode

          protected abstract OMNode getNextNode(OMNode currentNode)

      Get the next node.
      Parameters:
        `currentNode` - the predecessor of the node to retrieve
      Returns:
        the next node

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in interface `Iterator`

    - #### next

          public Object next()

      Specified by:
        `next` in interface `Iterator`

    - #### remove

          public void remove()

      Specified by:
        `remove` in interface `Iterator`

Copyright © The Apache Software Foundation. All Rights Reserved.