|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.core.commandshell.ScriptReader
public class ScriptReader
Understands how to read specific command line scripts from a String containing multiple scripts.
| Field Summary | |
|---|---|
static java.lang.String |
RESULT_KEYWORD
|
| Constructor Summary | |
|---|---|
ScriptReader(java.lang.String scripts)
|
|
| Method Summary | |
|---|---|
boolean |
checkResults()
Returns whether the last command line includes a specification of what the expected results are. |
java.lang.String |
getExpectedResults()
If the last command line includes a specification of what the expected results are, then this method returns the expected value from the script. |
java.lang.String[] |
getScriptNames()
|
void |
gotoScript(java.lang.String scriptName)
Indicates which specific script is currently being referenced. |
boolean |
hasMore()
Returns whether or not their are additional commands for the current script. |
java.lang.String |
nextCommandLine()
Retrieve the next command line for the current script. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String RESULT_KEYWORD
| Constructor Detail |
|---|
public ScriptReader(java.lang.String scripts)
scripts - A String containing many script definitions.| Method Detail |
|---|
public void gotoScript(java.lang.String scriptName)
scriptName - The name of the script to go to. This name should correspond to a name in the scripts String.public boolean hasMore()
public java.lang.String nextCommandLine()
public boolean checkResults()
public java.lang.String getExpectedResults()
public java.lang.String[] getScriptNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||