TPTP 4.3.0 Testing Tools Project
Public API Specification

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

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

public class MessageEvent
extends ExecutionEvent

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


Field Summary
static int ERROR
           
static int INFO
           
static int WARNING
           
 
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
MessageEvent()
           
 
Method Summary
protected  void addXMLAttributes(java.lang.StringBuffer xml)
          Add the attributes to the xml StringBuffer that is used by the ExecutionEvent.toString() method.
 int getSeverity()
          Returns the severity 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 setSeverity(int value)
          Sets the severity 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

INFO

public static final int INFO
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

WARNING

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

MessageEvent

public MessageEvent()
Method Detail

setSeverity

public void setSeverity(int value)
Sets the severity of this event.

Parameters:
value -

getSeverity

public int getSeverity()
Returns the severity 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)

TPTP 4.3.0 Testing Tools Project
Public API Specification