org.apache.struts2.util
类 IteratorGenerator

java.lang.Object
  继承者 org.apache.struts2.util.IteratorGenerator
所有已实现的接口:
com.opensymphony.xwork2.Action, Iterator

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

A bean that generates an iterator filled with a given object depending on the count, separator and converter defined. It is being used by IteratorGeneratorTag.


嵌套类摘要
static interface IteratorGenerator.Converter
          Interface for converting each separated token into an Object of choice.
 
字段摘要
 
从接口 com.opensymphony.xwork2.Action 继承的字段
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
构造方法摘要
IteratorGenerator()
           
 
方法摘要
 String execute()
           
 boolean getHasNext()
           
 Object getNext()
           
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 void setConverter(IteratorGenerator.Converter aConverter)
           
 void setCount(int aCount)
           
 void setSeparator(String aChar)
           
 void setValues(Object aValue)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

IteratorGenerator

public IteratorGenerator()
方法详细信息

setCount

public void setCount(int aCount)

getHasNext

public boolean getHasNext()

getNext

public Object getNext()

setSeparator

public void setSeparator(String aChar)

setConverter

public void setConverter(IteratorGenerator.Converter aConverter)

setValues

public void setValues(Object aValue)

execute

public String execute()
指定者:
接口 com.opensymphony.xwork2.Action 中的 execute

hasNext

public boolean hasNext()
指定者:
接口 Iterator 中的 hasNext

next

public Object next()
指定者:
接口 Iterator 中的 next

remove

public void remove()
指定者:
接口 Iterator 中的 remove