| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.scxml.TriggerEvent
public class TriggerEvent
A class representing an event. Specific event types have been defined in reference to SCXML.
| 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
public TriggerEvent(String name,
                    int type)
name - The event nametype - The event type| Method Detail | 
|---|
public String getName()
public Object getPayload()
public int getType()
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class ObjectObject.hashCode()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||