Class DomElement.ChildElementsIterator

  • All Implemented Interfaces:
    java.util.Iterator<DomElement>
    Enclosing class:
    DomElement

    protected static class DomElement.ChildElementsIterator
    extends java.lang.Object
    implements java.util.Iterator<DomElement>
    An iterator over the DomElement children.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • ChildElementsIterator

        protected ChildElementsIterator​(DomNode domNode)
        Constructor.
        Parameters:
        domNode - the parent
    • Method Detail

      • hasNext

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

        public DomElement next()
        Specified by:
        next in interface java.util.Iterator<DomElement>
        Returns:
        the next one
      • remove

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