ilog.ds
Class AbstractDSEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ActivityEvent, ConstraintEvent, ElementEvent, LinkEvent, NodeEvent, ReservationEvent, ResourceEvent, RowEvent, SDMElementEvent, TreeItemEvent
- public class AbstractDSEvent
- extends java.util.EventObject
Abstract event class for all events happening on a data source
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
AbstractDSEvent(java.lang.Object source)
Constructor for REMOVE events |
AbstractDSEvent(java.lang.Object source,
int type,
java.util.Map properties)
Constructor for ADD or UPDATE events |
|
Method Summary |
java.util.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 |
ADD
public static final int ADD
REMOVE
public static final int REMOVE
UPDATE
public static final int UPDATE
_properties
protected java.util.Map _properties
_type
protected int _type
AbstractDSEvent
public AbstractDSEvent(java.lang.Object source,
int type,
java.util.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 UPDATEproperties - The map of properties
AbstractDSEvent
public AbstractDSEvent(java.lang.Object source)
- Constructor for REMOVE events
- Parameters:
source - The source of the event (i.e. the data source)
getType
public int getType()
- Gets the type of event.
- Returns:
- a type that can be ADD, REMOVE or UPDATE.
getProperties
public java.util.Map getProperties()
- Gets the properties.
- Returns:
- This method may return null, for example when the origin of the
data source is being deleted.