|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.adapter.ScriptedConnection.ScriptToken
com.waveset.adapter.ScriptedConnection.ScriptToken.WaitForIgnoreCase
Waits for and consumes up to a string in the input. Optionally can cause an error if a rejected string is found first. This class is identical to WaitFor except that it ignores the case of the string to wait for and any reject strings. It would be preferrable to have this class inherit from the WaitFor class. However, since there are methods that are overridden and these are static inner classes Java will not allow that. The result is some redundant code (with the WaitFor class) here and code which does implicit casting in ScriptedConnection.java.
Nested Class Summary |
Nested classes inherited from class com.waveset.adapter.ScriptedConnection.ScriptToken |
ScriptToken.Capture, ScriptToken.Send, ScriptToken.SendPassword, ScriptToken.Sleep, ScriptToken.Timeout, ScriptToken.WaitFor, ScriptToken.WaitForIgnoreCase |
Field Summary |
Fields inherited from class com.waveset.adapter.ScriptedConnection.ScriptToken |
CAPTURE_TIMEOUT, CLASS, code_id, DEFAULT_TIMEOUT, DEFAULT_TIMEOUT_PROPERTY, RESOURCE_POLICY_GLOBAL_SCOPE, SCRIPTTOKEN_TIMEOUT, WAITFOR_TIMEOUT, WAITFORIGNORECASE_TIMEOUT |
Constructor Summary | |
ScriptToken.WaitForIgnoreCase(java.lang.String value)
Constructor takes the string to wait for. |
|
ScriptToken.WaitForIgnoreCase(java.lang.String value,
int timeout)
Constructor takes the string to wait for. |
|
ScriptToken.WaitForIgnoreCase(java.lang.String value,
java.lang.String reject)
Constructor takes the string to wait for and any reject strings to error out on. |
|
ScriptToken.WaitForIgnoreCase(java.lang.String value,
java.lang.String[] reject)
Constructor takes the string to wait for and any reject strings to error out on. |
|
ScriptToken.WaitForIgnoreCase(java.lang.String value,
java.lang.String[] reject,
int timeout)
Constructor takes the string to wait for and any reject strings to error out on. |
|
ScriptToken.WaitForIgnoreCase(java.lang.String value,
java.lang.String reject,
int timeout)
Constructor takes the string to wait for and any reject strings to error out on. |
Method Summary | |
java.lang.String[] |
getAllRejects()
Returns the | delimited reject strings or null if there are none. |
java.lang.String |
getRejects()
Returns the | delimited reject strings or null if there are none. |
boolean |
hasReject()
Returns true if the token has any reject strings. |
boolean |
includesReject(java.lang.String s)
|
java.lang.String |
toString()
Makes a string of this. |
Methods inherited from class com.waveset.adapter.ScriptedConnection.ScriptToken |
getTimeout, getValue, isTimeoutSpecified, setTimeout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ScriptToken.WaitForIgnoreCase(java.lang.String value)
public ScriptToken.WaitForIgnoreCase(java.lang.String value, int timeout)
public ScriptToken.WaitForIgnoreCase(java.lang.String value, java.lang.String[] reject)
public ScriptToken.WaitForIgnoreCase(java.lang.String value, java.lang.String reject)
public ScriptToken.WaitForIgnoreCase(java.lang.String value, java.lang.String reject, int timeout)
public ScriptToken.WaitForIgnoreCase(java.lang.String value, java.lang.String[] reject, int timeout)
Method Detail |
public java.lang.String getRejects()
public java.lang.String[] getAllRejects()
public boolean hasReject()
public java.lang.String toString()
toString
in class ScriptToken
public boolean includesReject(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |