public class IlvDefaultSDMLink extends IlvDefaultSDMNode implements IlvMutableSDMLink, Serializable
IlvDefaultSDMLink
is a simple
implementation of the IlvSDMLink
interface that stores the link ends in memory.IlvDefaultSDMModel
,
Serialized FormMOVE_DOWN, MOVE_FIRST, MOVE_LAST, MOVE_UP
Constructor and Description |
---|
IlvDefaultSDMLink(String tag)
Creates a new link with a
null source and destination. |
Modifier and Type | Method and Description |
---|---|
IlvSDMNode |
getFrom()
Returns the source of the link.
|
IlvSDMNode |
getTo()
Returns the destination of the link.
|
void |
setFrom(IlvSDMNode from)
Sets the source of this link.
|
void |
setTo(IlvSDMNode to)
Sets the destination of this link.
|
addChild, getChildren, getChildrenCount, getDependentProperties, getID, getParent, getProperty, getPropertyNames, getTag, removeChild, setID, setParent, setProperty, shiftChild, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addChild, getDependentProperties, removeChild, setID, setParent, setProperty
getChildren, getID, getParent, getProperty, getPropertyNames, getTag
public IlvDefaultSDMLink(String tag)
null
source and destination.tag
- The symbolic type of the object.public void setFrom(IlvSDMNode from)
setFrom
in interface IlvMutableSDMLink
from
- The new source of the link.public IlvSDMNode getFrom()
getFrom
in interface IlvSDMLink
public void setTo(IlvSDMNode to)
setTo
in interface IlvMutableSDMLink
to
- The new destination of the link.public IlvSDMNode getTo()
getTo
in interface IlvSDMLink
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.