org.eclipse.actf.model.event
Class ModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.actf.model.event.ModelEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AccessibilityModelEvent

public abstract class ModelEvent
extends EventObject

an event fired within a model

Author:
Serialized Form

Field Summary
static String EVENT_TYPE_PROPERTY
           
protected  Map properties
           
static String TIMESTAMP_PROPERTY
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ModelEvent(Object source)
           
 
Method Summary
 String getEventType()
          convenience method for getting the symbolic name or type of the event.
 Object getProperty(String name)
           
 long getTimeMillis()
          convenience method for getting the timestamp of the event
 void setEventType(String eventType)
          convenience method for setting the symbolic name or type of the event.
 void setProperty(String name, Object value)
           
 void setTimeMillis(long time)
          convenience method for retreaving the timestamp of the event
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TIMESTAMP_PROPERTY

public static final String TIMESTAMP_PROPERTY
See Also:
Constant Field Values

EVENT_TYPE_PROPERTY

public static final String EVENT_TYPE_PROPERTY
See Also:
Constant Field Values

properties

protected Map properties
Constructor Detail

ModelEvent

public ModelEvent(Object source)
Parameters:
source -
Method Detail

getProperty

public Object getProperty(String name)

setProperty

public void setProperty(String name,
                        Object value)

getTimeMillis

public long getTimeMillis()
convenience method for getting the timestamp of the event

Returns:
timestamp of event

setTimeMillis

public void setTimeMillis(long time)
convenience method for retreaving the timestamp of the event

Parameters:
time - timestamp of event

getEventType

public String getEventType()
convenience method for getting the symbolic name or type of the event. This should be a more informative token than the event id used by the underlying model.

Returns:
symbolic name or type of event

setEventType

public void setEventType(String eventType)
convenience method for setting the symbolic name or type of the event. This should be a more informative token than the event id used by the underlying model. Typically, this will be obtained from the corresponding ModelEventType object.

Parameters:
eventType - symbolic name or type of event
See Also:
ModelEventType