ilog.ds.sdm
Class SDMLinkEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
|
+--ilog.ds.sdm.SDMElementEvent
|
+--ilog.ds.sdm.SDMLinkEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class SDMLinkEvent
- extends SDMElementEvent
Event class used for all events happening on a link.
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.Object |
_from
|
protected java.lang.Object |
_link
|
protected java.lang.Object |
_to
|
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
SDMLinkEvent(java.lang.Object source,
java.lang.Object link)
Constructor to use when the link is being deleted. |
SDMLinkEvent(java.lang.Object source,
java.lang.Object link,
java.util.Map properties)
Constructor to use for updating links. |
SDMLinkEvent(java.lang.Object source,
java.lang.String tag,
java.lang.Object link,
java.lang.Object parent,
java.lang.Object from,
java.lang.Object to,
java.util.Map properties)
Constructor to use for creating links. |
|
Method Summary |
java.lang.Object |
getFrom()
Gets the origin node (to be used only as a key), only useful for
creation. |
java.lang.Object |
getLink()
Gets the link (to be used only as a key) |
java.lang.Object |
getTo()
Gets the target node (to be used only as a key), only useful for
creation. |
| 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 |
_link
protected java.lang.Object _link
_to
protected java.lang.Object _to
_from
protected java.lang.Object _from
SDMLinkEvent
public SDMLinkEvent(java.lang.Object source,
java.lang.String tag,
java.lang.Object link,
java.lang.Object parent,
java.lang.Object from,
java.lang.Object to,
java.util.Map properties)
- Constructor to use for creating links.
- Parameters:
source - The first parameter is the source of the event.link - The link itself. It can be anything, as it is only used as a
key.parent - item The owner of the new link. Can be null for
a root element in the SDM model.from - The origin of the linkto - The target of the linkproperties - It contains the named properties of the link, that is, all the
properties when the link is created.
SDMLinkEvent
public SDMLinkEvent(java.lang.Object source,
java.lang.Object link,
java.util.Map properties)
- Constructor to use for updating links.
- Parameters:
source - The first parameter is the source of the event.link - The link itself. It can be anything, as it is only used as a
key.properties - Contains the named properties of the link, that is, all the
modified properties. Predefined named properties
tag, parent, from
and to are used to respectively change tag,
parent, origin node and target node of the link.
SDMLinkEvent
public SDMLinkEvent(java.lang.Object source,
java.lang.Object link)
- Constructor to use when the link is being deleted.
getLink
public java.lang.Object getLink()
- Gets the link (to be used only as a key)
- Returns:
- the subject of this event
getFrom
public java.lang.Object getFrom()
- Gets the origin node (to be used only as a key), only useful for
creation.
- Returns:
- the origin of the link
getTo
public java.lang.Object getTo()
- Gets the target node (to be used only as a key), only useful for
creation.
- Returns:
- the destination of the link