com.gargoylesoftware.htmlunit.html
Class HtmlElement.ChildElementsIterator

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.HtmlElement.ChildElementsIterator
All Implemented Interfaces:
Iterator<HtmlElement>
Enclosing class:
HtmlElement

protected class HtmlElement.ChildElementsIterator
extends Object
implements Iterator<HtmlElement>

An iterator over the HtmlElement children.


Constructor Summary
protected HtmlElement.ChildElementsIterator()
          Constructor.
 
Method Summary
 boolean hasNext()
           
 HtmlElement next()
           
 HtmlElement nextElement()
           
 void remove()
          Removes the current one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlElement.ChildElementsIterator

protected HtmlElement.ChildElementsIterator()
Constructor.

Method Detail

hasNext

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

next

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

remove

public void remove()
Removes the current one.

Specified by:
remove in interface Iterator<HtmlElement>

nextElement

public HtmlElement nextElement()
Returns:
the next element


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.