Package org.htmlunit.html

# Class DomElement.ChildElementsIterator

java.lang.Object
org.htmlunit.html.DomElement.ChildElementsIterator

All Implemented Interfaces:
  `Iterator<DomElement>`

Enclosing class:
  `DomElement`

protected static class DomElement.ChildElementsIterator extends Object implements Iterator<DomElement>
An iterator over the DomElement children.

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `ChildElementsIterator(DomNode domNode)`
  Constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `hasNext()`
  `DomElement`
  `next()`
  `void`
  `remove()`
  Removes the current one.

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

  - ### ChildElementsIterator

    protected ChildElementsIterator(DomNode domNode)
    Constructor.
    Parameters:
      `domNode` - the parent

- ## Method Details

  - ### hasNext

    public boolean hasNext()
    Specified by:
      `hasNext` in interface `Iterator<DomElement>`
    Returns:
      is there a next one ?

  - ### next

    public DomElement next()
    Specified by:
      `next` in interface `Iterator<DomElement>`
    Returns:
      the next one

  - ### remove

    public void remove()
    Removes the current one.
    Specified by:
      `remove` in interface `Iterator<DomElement>`