com.ibm.rational.test.lt.kernel.services
Class RPTLoopEvent
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ibm.rational.test.lt.kernel.services.RPTEvent
com.ibm.rational.test.lt.kernel.services.RPTLoopEvent
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- RPTBreakLoopEvent, RPTContinueLoopEvent
public abstract class RPTLoopEvent
- extends RPTEvent
This class is the base class for the group of RPTEvents that are thrown to cause an immediate
break or continue in an loop in the behavior model.
This class extends RPTEvent and changes the default value of severity to MessageEvent.INFO and
changes the default to not show the stack trace.
- See Also:
- Serialized Form
Method Summary |
String |
getLoopName()
|
com.ibm.rational.test.lt.kernel.action.ILoop |
getTargetLoop()
|
void |
setTargetLoop(com.ibm.rational.test.lt.kernel.action.ILoop target)
Sets the loop which is to catch this event and perform either the break or continue. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
RPTLoopEvent
public RPTLoopEvent()
RPTLoopEvent
public RPTLoopEvent(String message,
Throwable cause)
RPTLoopEvent
public RPTLoopEvent(String message)
RPTLoopEvent
public RPTLoopEvent(Throwable cause)
RPTLoopEvent
public RPTLoopEvent(String message,
String loopName)
setTargetLoop
public void setTargetLoop(com.ibm.rational.test.lt.kernel.action.ILoop target)
- Sets the loop which is to catch this event and perform either the break or continue.
The default is to affect the nearest enclosing loop.
- Parameters:
target
- The loop to break or continue.
getTargetLoop
public com.ibm.rational.test.lt.kernel.action.ILoop getTargetLoop()
getLoopName
public String getLoopName()
© Copyright IBM Corp. 2012. All rights reserved.