com.taursys.xml.event
Class TriggerEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.taursys.xml.event.TriggerEvent
All Implemented Interfaces:
java.io.Serializable

public class TriggerEvent
extends java.util.EventObject

Event descriptor used when specific trigger(key/value) is received. It contains information about the source of the event. If this event is used for a single parameter, then the parameter name and the value received properties are set and the Map property is null. If this event is used for propagation of multiple parameters, then the map property is set and the name and value properties are null.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TriggerEvent(java.lang.Object source, java.util.Map map)
          Constructs a new TriggerEvent with all the given properties.
TriggerEvent(java.lang.Object source, java.lang.String name, java.lang.String value)
          Constructs a new TriggerEvent with all the given properties.
 
Method Summary
 java.util.Map getMap()
          Get the Map of all Parameter keys and values.
 java.lang.String getName()
          Returns the trigger key name
 java.lang.String getValue()
          Returns the trigger value
 
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
 

Constructor Detail

TriggerEvent

public TriggerEvent(java.lang.Object source,
                    java.lang.String name,
                    java.lang.String value)
Constructs a new TriggerEvent with all the given properties.


TriggerEvent

public TriggerEvent(java.lang.Object source,
                    java.util.Map map)
Constructs a new TriggerEvent with all the given properties.

Method Detail

getName

public java.lang.String getName()
Returns the trigger key name


getValue

public java.lang.String getValue()
Returns the trigger value


getMap

public java.util.Map getMap()
Get the Map of all Parameter keys and values.

Returns:
the Map of all Parameter keys and values.


Copyright © 2007 Martin T Phelan. All Rights Reserved.