ilog.ds
Class AbstractDSEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--ilog.ds.AbstractDSEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ActivityEvent, ConstraintEvent, ElementEvent, LinkEvent, NodeEvent, ReservationEvent, ResourceEvent, RowEvent, SDMElementEvent, TreeItemEvent

public class AbstractDSEvent
extends EventObject

Abstract event class for all events happening on a data source

See Also:
Serialized Form

Field Summary
protected  Map _properties
           
protected  int _type
           
static int ADD
           
static int REMOVE
           
static int UPDATE
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AbstractDSEvent(Object source)
          Constructor for REMOVE events
AbstractDSEvent(Object source, int type, Map properties)
          Constructor for ADD or UPDATE events
 
Method Summary
 Map getProperties()
          Gets the properties.
 int getType()
          Gets the type of event.
 
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
 

Field Detail

ADD

public static final int ADD

REMOVE

public static final int REMOVE

UPDATE

public static final int UPDATE

_properties

protected Map _properties

_type

protected int _type
Constructor Detail

AbstractDSEvent

public AbstractDSEvent(Object source,
                       int type,
                       Map properties)
Constructor for ADD or UPDATE events
Parameters:
source - The source of the event (i.e. the data source)
type - Can be ADD or UPDATE
properties - The map of properties

AbstractDSEvent

public AbstractDSEvent(Object source)
Constructor for REMOVE events
Parameters:
source - The source of the event (i.e. the data source)
Method Detail

getType

public int getType()
Gets the type of event.
Returns:
a type that can be ADD, REMOVE or UPDATE.

getProperties

public Map getProperties()
Gets the properties.
Returns:
This method may return null, for example when the origin of the data source is being deleted.