TPTP 4.3.0 Testing Tools Project
Public API Specification

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

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

public class InvocationEvent
extends ExecutionEvent

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


Field Summary
static int REASON_DID_NOT_START
           
static int REASON_NO_BEHAVIOR
           
static int REASON_NO_MATCHING_CONFIGURATION
           
static int REASON_NONE
           
static int REASON_PRECONDITION_NOT_MET
           
static int REASON_SEE_DESCRIPTION
           
static int REASON_UNKNOWN
           
static int STATUS_SUCCESSFUL
           
static int STATUS_UNATTEMPTED
           
static int STATUS_UNSUCCESSFUL
           
 
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
InvocationEvent()
           
 
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 getInvokedId()
          Returns the id of the invoked element.
 int getReason()
          Returns the reason for the status of this event.
 int getStatus()
          Returns the status 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 setInvokedId(java.lang.String value)
          Sets the id of the invoked element.
 void setReason(int value)
          Sets the reason for the status of this event.
 void setStatus(int value)
          Sets the status of this event.
 
Methods inherited from class org.eclipse.hyades.test.common.event.ExecutionEvent
addAnnotation, addProperty, addRepositoryRecords, addXMLAnnotations, addXMLProperties, addXMLRepositoryRecords, clearAnnotations, clearProperties, clearRepositoryRecords, getAnnotations, getConflict, getEventType, getId, getName, getOwnerId, getParentId, getProperties, getRepositoryRecords, getSortBy, getText, getTimestamp, getXMLAnnotationRoot, getXMLPropertyRoot, getXMLRepositoryRecordRoot, 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

STATUS_UNATTEMPTED

public static final int STATUS_UNATTEMPTED
See Also:
Constant Field Values

STATUS_SUCCESSFUL

public static final int STATUS_SUCCESSFUL
See Also:
Constant Field Values

STATUS_UNSUCCESSFUL

public static final int STATUS_UNSUCCESSFUL
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_PRECONDITION_NOT_MET

public static final int REASON_PRECONDITION_NOT_MET
See Also:
Constant Field Values

REASON_NO_MATCHING_CONFIGURATION

public static final int REASON_NO_MATCHING_CONFIGURATION
See Also:
Constant Field Values

REASON_NO_BEHAVIOR

public static final int REASON_NO_BEHAVIOR
See Also:
Constant Field Values

REASON_DID_NOT_START

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

InvocationEvent

public InvocationEvent()
Method Detail

setStatus

public void setStatus(int value)
Sets the status of this event.

Parameters:
value -

getStatus

public int getStatus()
Returns the status 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

setInvokedId

public void setInvokedId(java.lang.String value)
Sets the id of the invoked element.

Parameters:
value -

getInvokedId

public java.lang.String getInvokedId()
Returns the id of the invoked element.

Returns:
String

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)

TPTP 4.3.0 Testing Tools Project
Public API Specification