org.apache.commons.scxml
Class TriggerEvent

java.lang.Object
  extended by org.apache.commons.scxml.TriggerEvent

public class TriggerEvent
extends java.lang.Object

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(java.lang.String name, int type)
          Constructor.
TriggerEvent(java.lang.String name, int type, java.lang.Object payload)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Define an equals operator for TriggerEvent.
 java.lang.String getName()
           
 java.lang.Object getPayload()
           
 int getType()
           
 int hashCode()
          Returns the hash code for this TriggerEvent object.
 java.lang.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

CALL_EVENT

public static final int CALL_EVENT
CALL_EVENT.

See Also:
Constant Field Values

CHANGE_EVENT

public static final int CHANGE_EVENT
CHANGE_EVENT.

See Also:
Constant Field Values

SIGNAL_EVENT

public static final int SIGNAL_EVENT
SIGNAL_EVENT.

See Also:
Constant Field Values

TIME_EVENT

public static final int TIME_EVENT
TIME_EVENT.

See Also:
Constant Field Values

ERROR_EVENT

public static final int ERROR_EVENT
ERROR_EVENT.

See Also:
Constant Field Values
Constructor Detail

TriggerEvent

public TriggerEvent(java.lang.String name,
                    int type,
                    java.lang.Object payload)
Constructor.

Parameters:
name - The event name
type - The event type
payload - The event payload

TriggerEvent

public TriggerEvent(java.lang.String name,
                    int type)
Constructor.

Parameters:
name - The event name
type - The event type
Method Detail

getName

public java.lang.String getName()
Returns:
Returns the name.

getPayload

public java.lang.Object getPayload()
Returns:
Returns the payload.

getType

public int getType()
Returns:
Returns the type.

equals

public boolean equals(java.lang.Object obj)
Define an equals operator for TriggerEvent.

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Returns a string representation of this TriggerEvent object.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

hashCode

public int hashCode()
Returns the hash code for this TriggerEvent object.

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.