com.gargoylesoftware.htmlunit.html
Class HtmlElement.MapEntryWrappingIterator

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

Deprecated. This class is no longer used since attributes are now represented by HtmlAttr.

public static class HtmlElement.MapEntryWrappingIterator
extends Object
implements Iterator

Converts an iteration of plain Map.Entry into an iteration of HtmlAttr.

Author:
Denis N. Antonioli

Constructor Summary
HtmlElement.MapEntryWrappingIterator(Iterator iterator, HtmlElement htmlElement)
          Deprecated. Wraps a new iterator around an iterator of attributes.
 
Method Summary
 boolean hasNext()
          Deprecated. Delegates to wrapped Iterator.
 Object next()
          Deprecated. Wraps the next entry into a new HtmlAttr.
 void remove()
          Deprecated. Delegates to wrapped Iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlElement.MapEntryWrappingIterator

public HtmlElement.MapEntryWrappingIterator(Iterator iterator,
                                            HtmlElement htmlElement)
Deprecated. 
Wraps a new iterator around an iterator of attributes.

Parameters:
iterator - An iterator of Map.Entry.
htmlElement - the Parent of all the attributes.
Method Detail

hasNext

public boolean hasNext()
Deprecated. 
Delegates to wrapped Iterator.

Specified by:
hasNext in interface Iterator
Returns:
true if the iterator has more elements.

next

public Object next()
Deprecated. 
Wraps the next entry into a new HtmlAttr.

Specified by:
next in interface Iterator
Returns:
Next entry.

remove

public void remove()
Deprecated. 
Delegates to wrapped Iterator.

Specified by:
remove in interface Iterator


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