ilog.ds.sdm
Class SDMNodeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--ilog.ds.AbstractDSEvent
              |
              +--ilog.ds.sdm.SDMElementEvent
                    |
                    +--ilog.ds.sdm.SDMNodeEvent
All Implemented Interfaces:
Serializable

public class SDMNodeEvent
extends SDMElementEvent

Event class used for all events happening on a node.

See Also:
Serialized Form

Field Summary
protected  Object _node
           
 
Fields inherited from class ilog.ds.sdm.SDMElementEvent
_parent, _tag
 
Fields inherited from class ilog.ds.AbstractDSEvent
_properties, _type, ADD, REMOVE, UPDATE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SDMNodeEvent(Object source, Object node)
          Constructor to use when the node is being deleted.
SDMNodeEvent(Object source, Object node, Map properties)
          Constructor to use for updating nodes.
SDMNodeEvent(Object source, String tag, Object node, Object parent, Map properties)
          Constructor to use for creating nodes.
 
Method Summary
 Object getNode()
          Gets the node (to be used only as a key).
 
Methods inherited from class ilog.ds.sdm.SDMElementEvent
getParent, getTag
 
Methods inherited from class ilog.ds.AbstractDSEvent
getProperties, getType
 
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

_node

protected Object _node
Constructor Detail

SDMNodeEvent

public SDMNodeEvent(Object source,
                    String tag,
                    Object node,
                    Object parent,
                    Map properties)
Constructor to use for creating 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.
parent - item The owner of the new node. Can be null for a root element in the SDM model.
properties - It contains the named properties of the node, that is, all the properties when the node is created.

SDMNodeEvent

public SDMNodeEvent(Object source,
                    Object node,
                    Map properties)
Constructor to use for 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.
properties - Contains the named properties of the item, that is, all the modified properties. Predefined named properties tag and parent are used to respectively change tag and parent of the node.

SDMNodeEvent

public SDMNodeEvent(Object source,
                    Object node)
Constructor to use when the node is being deleted.
Method Detail

getNode

public Object getNode()
Gets the node (to be used only as a key).
Returns:
the subject of this event