net.sourceforge.aqueduct.inputsource
Class StringSequenceInputSource

java.lang.Object
  extended by net.sourceforge.aqueduct.inputsource.StringSequenceInputSource
All Implemented Interfaces:
InputSource

public class StringSequenceInputSource
extends java.lang.Object
implements InputSource

An InputSource that provides a sequence of Strings as inputs to a StateMachine. A StateMachine that processes the lines of a file might use an instance of this class to provide values to its States.

Author:
keith

Constructor Summary
StringSequenceInputSource(java.util.List<java.lang.String> values)
           
StringSequenceInputSource(java.lang.String... values)
           
 
Method Summary
 java.lang.String getCurrentString()
          Returns the String returned by the last call to nextString().
 java.lang.String nextString()
          Returns the next String from the sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringSequenceInputSource

public StringSequenceInputSource(java.util.List<java.lang.String> values)

StringSequenceInputSource

public StringSequenceInputSource(java.lang.String... values)
Method Detail

nextString

public java.lang.String nextString()
Returns the next String from the sequence.

Returns:

getCurrentString

public java.lang.String getCurrentString()
Returns the String returned by the last call to nextString().

Returns:


Copyright © 2008. All Rights Reserved.