|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.newisys.ova.OVAAssert
public final class OVAAssert
Class representing an OVA assert. Includes querying the assert for various properties (name, etc) and performing various actions on the the assert.
| Method Summary | |
|---|---|
void |
addListener(OVAAssertEventType eventType,
OVAAssertCallback handler)
Adds a handler that will be called when the specified event type occurs for this assert. |
void |
addListener(Set<OVAAssertEventType> eventTypeSet,
OVAAssertCallback handler)
Adds a handler that will be called when any of the event types in eventTypeSet occur for this assert. |
void |
disableCount(OVAAssertEventType eventType)
Disables counting of the specified event for this assert. |
void |
doAction(OVAAssertAction action,
long attemptID)
Performs the requested action on this assert. |
void |
enableCount(OVAAssertEventType eventType)
Enables counting of the specified event for this assert. |
int |
getCategory()
Returns the category of this assert. |
long |
getCount(OVAAssertEventType eventType)
Returns the number of times the specified event type has occurred for this assert. |
OVAExprType |
getExprType()
Returns the expression type of this assert. |
String |
getName()
Returns the name of this assert. |
String |
getScopeName()
Returns the scope name of this assert. |
int |
getSeverity()
Returns the severity of this assert. |
String |
getUserMessage()
Returns the user message of this assert. |
int |
hashCode()
|
void |
removeListener(OVAAssertEventType eventType,
OVAAssertCallback handler)
Removes the specified callback handler for the specified event type. |
void |
setCategory(int category)
Sets the category of this assert. |
void |
setSeverity(int severity)
Sets the severity of this assert. |
void |
setUserMessage(String msg)
Sets the user message of this assert. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void addListener(OVAAssertEventType eventType,
OVAAssertCallback handler)
eventType - the OVA event type which will trigger handler
to be calledhandler - the callback handler to be run when the specified event
type occurs for this assert
public void addListener(Set<OVAAssertEventType> eventTypeSet,
OVAAssertCallback handler)
eventTypeSet occur for this assert.
eventTypeSet - a Set of OVAAssertEventType
objects which will trigger handler to be calledhandler - the callback handler to be run when any of the specified
event types occur for this assert
public void removeListener(OVAAssertEventType eventType,
OVAAssertCallback handler)
eventType, they
will not be affected. Likewise, if handler is associated
with event types other than eventType those callbacks will
not be affected.
eventType - the type of event on which to stop receiving callbackshandler - the callback handler that should be removedpublic void enableCount(OVAAssertEventType eventType)
getCount(com.newisys.ova.OVAAssertEventType). This method resets the count to
zero before enabling counting.
Only OVAAssertEventType.AttemptSuccess and
OVAAssertEventType.AttemptFailure have counting support.
If counting is already enabled on this OVAAssert for the specified event type, the count is reset, but stays enabled.
eventType - the type of event being counted
OVAException - if eventType is not AttemptSucces or AttemptFailurepublic void disableCount(OVAAssertEventType eventType)
getCount(com.newisys.ova.OVAAssertEventType).
Only OVAAssertEventType.AttemptSuccess and
OVAAssertEventType.AttemptFailure have counting support.
eventType - the type of event being counted
OVAException - if eventType is not AttemptSucces or AttemptFailurepublic long getCount(OVAAssertEventType eventType)
enableCount(com.newisys.ova.OVAAssertEventType)), this method will throw an
OVAException.
Only OVAAssertEventType.AttemptSuccess and
OVAAssertEventType.AttemptFailure have counting support.
eventType - the type of event being counted
eventType has
occurred for this assert since enableCount was called
OVAException - if counting has not been enabled or if eventType is
not AttemptSucces or AttemptFailure
public void doAction(OVAAssertAction action,
long attemptID)
attemptID should be the
appropriate identifier. For actions that do not require an attempt
identifier, attemptID should be zero.
action - the action to be performed on this assertattemptID - the attempt identifier if action requires
one, or zero if it does notpublic String getName()
main.foo.bar.baz.assert1.cb"assert1.cb".
public String getScopeName()
main.foo.bar.baz.assert1.cb"main.foo.bar.baz".
public OVAExprType getExprType()
public int getSeverity()
public int getCategory()
public String getUserMessage()
public void setSeverity(int severity)
severity - the severity of this assert
IllegalArgumentException - if severity is outside of
the range 0 to 0xFFpublic void setCategory(int category)
category - the category of this assert
IllegalArgumentException - if category is outside of
the range 0 to 0xFFFFFFpublic void setUserMessage(String msg)
null messages are
not allowed.
msg - the message to associate with this assert
IllegalArgumentException - if msg is nullpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||