public class TriggerEvent extends Object implements Serializable
Serializable as long as the associated
payload, if any, is Serializable.| Modifier and Type | Field and Description |
|---|---|
static int |
CALL_EVENT
CALL_EVENT. |
static int |
CANCEL_EVENT
CANCEL_EVENT. |
static int |
CHANGE_EVENT
CHANGE_EVENT. |
static String |
ERROR_COMMUNICATION
The predefined SCXML 'error.communication' Event name
Indicates that an error has occurred while trying to communicate with an external entity.
|
static int |
ERROR_EVENT
ERROR_EVENT. |
static String |
ERROR_EXECUTION
The predefined SCXML 'error.execution' Event name
Indicates that an error internal to the execution of the document has occurred, such as one arising from
expression evaluation.
|
static String |
ERROR_PLATFORM
The predefined SCXML 'error.platform' Event name
Indicates that a platform- or application-specific error has occurred.
|
static int |
SIGNAL_EVENT
SIGNAL_EVENT. |
static int |
TIME_EVENT
TIME_EVENT. |
| Constructor and Description |
|---|
TriggerEvent(String name,
int type)
Constructor.
|
TriggerEvent(String name,
int type,
Object payload)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.public static final int CANCEL_EVENT
CANCEL_EVENT.public static final String ERROR_EXECUTION
Indicates that an error internal to the execution of the document has occurred, such as one arising from expression evaluation.
public static final String ERROR_COMMUNICATION
Indicates that an error has occurred while trying to communicate with an external entity.
public static final String ERROR_PLATFORM
Indicates that a platform- or application-specific error has occurred.
public TriggerEvent(String name, int type, Object payload)
name - The event nametype - The event typepayload - The event payload, must be Serializablepublic TriggerEvent(String name, int type)
name - The event nametype - The event typepublic 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()Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.