com.opensymphony.webwork.util
Class IteratorGenerator

java.lang.Object
  extended bycom.opensymphony.webwork.util.IteratorGenerator
All Implemented Interfaces:
com.opensymphony.xwork.Action, Iterator

public class IteratorGenerator
extends Object
implements Iterator, com.opensymphony.xwork.Action

A bean that generates an iterator filled with a given object

Version:
$Revision: 1.5 $
Author:
Rickard ?berg (rickard@middleware-company.com)

Field Summary
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
IteratorGenerator()
           
 
Method Summary
 String execute()
           
 boolean getHasNext()
           
 Object getNext()
           
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 void setCount(int aCount)
           
 void setSeparator(String aChar)
           
 void setValues(Object aValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorGenerator

public IteratorGenerator()
Method Detail

setCount

public void setCount(int aCount)

getHasNext

public boolean getHasNext()

getNext

public Object getNext()

setSeparator

public void setSeparator(String aChar)

setValues

public void setValues(Object aValue)

execute

public String execute()
Specified by:
execute in interface com.opensymphony.xwork.Action

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

WebWork Project Page