com.ibm.mm.sdk.common
Class DKLink
- java.lang.Object
com.ibm.mm.sdk.common.DKLink
- public class DKLink
- extends java.lang.Object
- implements java.io.Serializable
Usually, the source and target objects are both DDOs, representing items. For example, if the link type name is "contains" then it would be reasonable to interpret this as container-containee relationship, that is the source item contains the target item. It could also mean a folder-document relationship, where the folder contains the document.
A link type name is the name by which links are categorized and grouped and often describe a meaningful relationship. Depending on the backend, the link type names used may be required to be a valid name defined first in a link type definition object, such as DKLinkTypeDefICM.
Constructor Summary
| Constructor and Description |
|---|
DKLink()
Constructs a link object
|
DKLink(java.lang.String typeName,dkDataObject source,dkDataObject target)
Constructs a link object and initialize it with the type name,
the source and target objects.
|
DKLink(java.lang.String typeName,dkDataObject source,dkDataObject target,dkDataObject linkItem)
Constructs a link object and initialize it with the type name,
the source and target objects as well as the link item.
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
getLinkItem()
Gets the link item object
|
|
getSource()
Gets the link source object
|
|
getTarget()
Gets the link target object
|
|
|
getTypeName()
Gets the link type name
|
|
setLinkItem(dkDataObject linkItem)
Sets the link item object.
|
|
setSource(dkDataObject source)
Sets the link source object
|
|
setTarget(dkDataObject target)
Sets the link target object
|
|
setTypeName(java.lang.String typeName)
Sets the link type name
A link type name is the name by which links are categorized and grouped
and often describe a meaningful relationship.
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
DKLink
- public DKLink()
DKLink
- public DKLink(java.lang.String typeName,
- dkDataObject source,
- dkDataObject target)
typeName - link type name, an identifier, for example "contains". source - data object for the source of the link. target - target data object for the target of the link. DKLink
- public DKLink(java.lang.String typeName,
- dkDataObject source,
- dkDataObject target,
- dkDataObject linkItem)
typeName - link type name source - data object for the source of the link. target - data object for the target of the link. linkItem - I suggest adding more information to the "linkItem" option: Data object containing Optional properties or attributes that further describe the relationship.
For more information about these parameters, see the description in the beginning of this class.
Method Detail
getTypeName
- public java.lang.String getTypeName( )
setTypeName
- public void setTypeName(java.lang.String typeName)
typeName - link type name getSource
- public dkDataObject getSource()
setSource
- public void setSource(dkDataObject source)
source - data object for the source of the link. getTarget
- public dkDataObject getTarget()
setTarget
- public void setTarget(dkDataObject target)
target - data object for the target of the link. getLinkItem
- public dkDataObject getLinkItem( )
setLinkItem
- public void setLinkItem(dkDataObject linkItem)
linkItem - link item object. option: Optional data object containing properties
or attributes that further describe the relationship.