TPTP 4.1.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.test.common.event
Class VerdictEvent

java.lang.Object
  extended byorg.eclipse.hyades.test.common.event.ExecutionEvent
      extended byorg.eclipse.hyades.test.common.event.VerdictEvent
All Implemented Interfaces:
IEventConstants
Direct Known Subclasses:
AnnotatedVerdictEvent

public class VerdictEvent
extends ExecutionEvent

This is a flat class packaged in the execution environment and it mirrors the TPFVerdictEvent.


Field Summary
static int REASON_ABORT
           
static int REASON_DID_NOT_COMPLETE
           
static int REASON_NONE
           
static int REASON_SEE_DESCRIPTION
           
static int REASON_UNKNOWN
           
static int VERDICT_ERROR
           
static int VERDICT_FAIL
           
static int VERDICT_INCONCLUSIVE
           
static int VERDICT_PASS
           
 
Fields inherited from interface org.eclipse.hyades.test.common.event.IEventConstants
CONFLICT_IGNORE, CONFLICT_NONE, CONFLICT_OVERWRITE, CONFLICT_OVERWRITE_IF_EARLIEST, CONFLICT_OVERWRITE_IF_LATEST, NOT_INITIALIZED_VALUE, ROOT_PARENT
 
Constructor Summary
VerdictEvent()
           
 
Method Summary
protected  void addXMLAttributes(java.lang.StringBuffer xml)
          Add the attributes to the xml StringBuffer that is used by the ExecutionEvent.toString() method.
 java.lang.String getCausedBy()
           
 int getReason()
          Returns the reason for the status of this event.
 int getVerdict()
          Returns the verdict of this event.
protected  java.lang.String getXMLRoot()
          Returns the string that is used as the root of the xml fragment generated by the ExecutionEvent.toString() method.
 void setCausedBy(java.lang.String string)
           
 void setReason(int value)
          Sets the reason for the status of this event.
 void setVerdict(int value)
          Sets the verdict of this event.
 
Methods inherited from class org.eclipse.hyades.test.common.event.ExecutionEvent
addXMLProperties, getConflict, getEventType, getId, getName, getOwnerId, getParentId, getProperties, getSortBy, getText, getTimestamp, getXMLPropertyRoot, setConflict, setEventType, setId, setName, setOwnerId, setParentId, setSortBy, setText, setTimestamp, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERDICT_INCONCLUSIVE

public static final int VERDICT_INCONCLUSIVE
See Also:
Constant Field Values

VERDICT_PASS

public static final int VERDICT_PASS
See Also:
Constant Field Values

VERDICT_FAIL

public static final int VERDICT_FAIL
See Also:
Constant Field Values

VERDICT_ERROR

public static final int VERDICT_ERROR
See Also:
Constant Field Values

REASON_UNKNOWN

public static final int REASON_UNKNOWN
See Also:
Constant Field Values

REASON_NONE

public static final int REASON_NONE
See Also:
Constant Field Values

REASON_SEE_DESCRIPTION

public static final int REASON_SEE_DESCRIPTION
See Also:
Constant Field Values

REASON_ABORT

public static final int REASON_ABORT
See Also:
Constant Field Values

REASON_DID_NOT_COMPLETE

public static final int REASON_DID_NOT_COMPLETE
See Also:
Constant Field Values
Constructor Detail

VerdictEvent

public VerdictEvent()
Method Detail

setVerdict

public void setVerdict(int value)
Sets the verdict of this event.

Parameters:
value -

getVerdict

public int getVerdict()
Returns the verdict of this event.

Returns:
int

setReason

public void setReason(int value)
Sets the reason for the status of this event.

Parameters:
value -

getReason

public int getReason()
Returns the reason for the status of this event.

Returns:
int

getXMLRoot

protected java.lang.String getXMLRoot()
Description copied from class: ExecutionEvent
Returns the string that is used as the root of the xml fragment generated by the ExecutionEvent.toString() method.

Overrides:
getXMLRoot in class ExecutionEvent
Returns:
a not null String
See Also:
org.eclipse.hyades.test.java.event.ExecutionEvent#getXMLRoot()

addXMLAttributes

protected void addXMLAttributes(java.lang.StringBuffer xml)
Description copied from class: ExecutionEvent
Add the attributes to the xml StringBuffer that is used by the ExecutionEvent.toString() method.

Overrides:
addXMLAttributes in class ExecutionEvent
Parameters:
xml -
See Also:
org.eclipse.hyades.test.java.event.ExecutionEvent#addXMLAttributes(java.lang.StringBuffer)

getCausedBy

public java.lang.String getCausedBy()
Returns:

setCausedBy

public void setCausedBy(java.lang.String string)
Parameters:
string -

TPTP 4.1.0 Testing Tools Project
Public API Specification