ilog.ds
Class NodeEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
|
+--ilog.ds.NodeEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class NodeEvent
- extends AbstractDSEvent
Event class used for all events happening on a node
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.Object |
_node
|
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
NodeEvent(java.lang.Object source,
java.lang.Object node)
Constructor to use when the node is being deleted. |
NodeEvent(java.lang.Object source,
java.lang.Object node,
int type,
java.util.Map properties)
Constructor to use for creating or updating nodes. |
|
Method Summary |
java.lang.Object |
getNode()
Gets the node (to be used only as a key). |
| 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 |
_node
protected java.lang.Object _node
NodeEvent
public NodeEvent(java.lang.Object source,
java.lang.Object node,
int type,
java.util.Map properties)
- Constructor to use for creating or updating nodes.
- Parameters:
source - The first parameter is the source of the event.node - The node itself. It can be anything, as it is only used as a
key.type - It can be:
- ADD when the node is created;
- UPDATE if the node is being updated.
properties - It contains the named properties of the node, that is, all the
properties when the node is created, or all the modified
properties when the node is being updated.
NodeEvent
public NodeEvent(java.lang.Object source,
java.lang.Object node)
- Constructor to use when the node is being deleted.
getNode
public java.lang.Object getNode()
- Gets the node (to be used only as a key).
- Returns:
- the subject of this event