net.sourceforge.aqueduct.inputsource
Class StringSequenceInputSource
java.lang.Object
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
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 |
StringSequenceInputSource
public StringSequenceInputSource(java.util.List<java.lang.String> values)
StringSequenceInputSource
public StringSequenceInputSource(java.lang.String... values)
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.