|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.scxml.TriggerEvent
A class representing an event. Specific event types have been
defined in reference to SCXML.
NOTE: Instances are Serializable
as long as the associated
payload, if any, is Serializable
.
Field Summary | |
static int |
CALL_EVENT
CALL_EVENT . |
static int |
CHANGE_EVENT
CHANGE_EVENT . |
static int |
ERROR_EVENT
ERROR_EVENT . |
static int |
SIGNAL_EVENT
SIGNAL_EVENT . |
static int |
TIME_EVENT
TIME_EVENT . |
Constructor Summary | |
TriggerEvent(String name,
int type)
Constructor. |
|
TriggerEvent(String name,
int type,
Object payload)
Constructor. |
Method Summary | |
boolean |
equals(Object obj)
Define an equals operator for TriggerEvent. |
String |
getName()
|
Object |
getPayload()
|
int |
getType()
|
int |
hashCode()
Returns the hash code for this TriggerEvent object. |
String |
toString()
Returns a string representation of this TriggerEvent object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CALL_EVENT
CALL_EVENT
.
public static final int CHANGE_EVENT
CHANGE_EVENT
.
public static final int SIGNAL_EVENT
SIGNAL_EVENT
.
public static final int TIME_EVENT
TIME_EVENT
.
public static final int ERROR_EVENT
ERROR_EVENT
.
Constructor Detail |
public TriggerEvent(String name, int type, Object payload)
name
- The event nametype
- The event typepayload
- The event payload, must be Serializable
public TriggerEvent(String name, int type)
name
- The event nametype
- The event typeMethod Detail |
public String getName()
public Object getPayload()
public int getType()
public boolean equals(Object obj)
Object.equals(java.lang.Object)
public String toString()
Object.toString()
public int hashCode()
Object.hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |