org.datamanager.event
Class UnsubscribeEventGeneratorEvent

java.lang.Object
  |
  +--org.datamanager.event.DataManagerEventAdapter
        |
        +--org.datamanager.event.UnsubscribeEventGeneratorEvent
All Implemented Interfaces:
DataManagerEvent, EntityValue, KernelEvent, Serializable

public class UnsubscribeEventGeneratorEvent
extends DataManagerEventAdapter
implements KernelEvent

This event is fired when EventGenerator.unsubscribed() is invoked.

Author:
Matthew Farrellee
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.datamanager.event.DataManagerEventAdapter
source, time
 
Constructor Summary
UnsubscribeEventGeneratorEvent(EventGenerator source, EventHandler handler)
          This public constructor used to create a UnsubscribeEventGeneratorEvent that does not contain a EventConstraint.
UnsubscribeEventGeneratorEvent(EventGenerator source, EventHandler handler, EventConstraint constraint)
          This public constructor used to create a UnsubscribeEventGeneratorEvent that does contain a EventConstraint.
 
Method Summary
 EventConstraint getConstraint()
          Report the EventConstraint that was unsubscribed.
 EventHandler getEventHandler()
          Report the EventHandler that was unsubscribed.
 String toString()
          A toString() method to provide a meaningful String representation of this event.
 
Methods inherited from class org.datamanager.event.DataManagerEventAdapter
getSource, getTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.datamanager.event.DataManagerEvent
getSource, getTime
 

Constructor Detail

UnsubscribeEventGeneratorEvent

public UnsubscribeEventGeneratorEvent(EventGenerator source,
                                      EventHandler handler)
This public constructor used to create a UnsubscribeEventGeneratorEvent that does not contain a EventConstraint.

Parameters:
source - The source of this event. Usually 'this.'
handler - The EventHandler that was unsubscribed.

UnsubscribeEventGeneratorEvent

public UnsubscribeEventGeneratorEvent(EventGenerator source,
                                      EventHandler handler,
                                      EventConstraint constraint)
This public constructor used to create a UnsubscribeEventGeneratorEvent that does contain a EventConstraint.

Parameters:
source - The source of this event. Usually 'this.'
handler - The EventHandler that was unsubscribed.
constraint - The EventConstraint that was unsubscribed.
Method Detail

getEventHandler

public EventHandler getEventHandler()
Report the EventHandler that was unsubscribed.

Returns:
The EventHandler that was unsubscribed.

getConstraint

public EventConstraint getConstraint()
Report the EventConstraint that was unsubscribed.

Returns:
The EventConstraint that was unsubscribed.

toString

public String toString()
A toString() method to provide a meaningful String representation of this event.

Specified by:
toString in interface DataManagerEvent
Specified by:
toString in class DataManagerEventAdapter
Returns:
A meaningful String representation of this event.


See the Helium Website