Package webwork.util

Class IteratorGenerator

java.lang.Object
webwork.util.IteratorGenerator
All Implemented Interfaces:
Serializable, Iterator, Action

public class IteratorGenerator extends Object implements Iterator, Action
A bean that generates an iterator filled with a given object
Version:
$Revision: 1.8 $
Author:
Rickard Öberg (rickard@middleware-company.com)
See Also:
  • Constructor Details

    • IteratorGenerator

      public IteratorGenerator()
  • Method Details

    • setValues

      public void setValues(Object aValue)
    • setCount

      public void setCount(int aCount)
    • setSeparator

      public void setSeparator(String aChar)
    • getHasNext

      public boolean getHasNext()
    • getNext

      public Object getNext()
    • execute

      public String execute()
      Description copied from interface: Action
      This method is where the logic of the action is executed. Parameters are passed by calling set-methods, or by implementing the ParameterAware interface.
      Specified by:
      execute in interface Action
      Returns:
      a string representing the logical result of the execution. See constants in this interface for a list of standard result values.
    • 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