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 interface
Interface 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.boolean
getNext()
boolean
hasNext()
next()
void
remove()
void
setConverter
(IteratorGenerator.Converter aConverter) void
setCount
(int aCount) void
setSeparator
(String aChar) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:Action
Where the logic of the action is executed. -
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-