Package org.apache.struts2.util
Class IteratorGenerator
java.lang.Object
org.apache.struts2.util.IteratorGenerator
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for converting each separated token into an Object of choice. -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()Where the logic of the action is executed.booleangetNext()booleanhasNext()next()voidremove()voidsetConverter(IteratorGenerator.Converter aConverter) voidsetCount(int aCount) voidsetSeparator(String aChar) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
IteratorGenerator
public IteratorGenerator()
-
-
Method Details
-
setCount
public void setCount(int aCount) -
getHasNext
public boolean getHasNext() -
getNext
-
setSeparator
-
setConverter
-
setValues
-
execute
Description copied from interface:ActionWhere the logic of the action is executed. -
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-