| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A link between two RwiElements.
Links are navigatable in one direction--from source to destination. The RwiElement.outgoingLinks
method
is used to get the enumeration of outgoing links for every RwiElement.
Note that there is no way to get the incoming links enumeration using a similar approach, because there is no such method.
Most links can be redirected--either source or destination can be changed via
setSource or setDestination methods respectively.
Methods getSource and getDestination are used to
get link's source and destination elements. Important notice about links: links to the
attributes have null as a destination.
| Method Summary | |
boolean | canSetDestination(RwiElement destination)Checks whether this link can have the element as a destination. |
boolean | canSetSource(RwiElement source)Checks whether this link can have the element as a source. |
RwiElement | getDestination()Returns this link's destination |
RwiElement | getSource()Returns this link's source. |
void | setDestination(RwiElement destination)Sets the destination for this link. |
void | setSource(RwiElement source)Sets the source for this link. |
| Methods inherited from interface com.togethersoft.openapi.rwi.RwiElement |
accept, canCreateIncomingLink, canCreateOutgoingLink, canCreateOutgoingLink, canCreateOutgoingLinkByPattern, canCut, canDelete, codeElements, copy, createOutgoingLink, createOutgoingLinkByPattern, cut, delete, getCodeElement, getTimeStamp, getUniqueName, isDeleted, outgoingLinks |
| Methods inherited from interface com.togethersoft.openapi.rwi.RwiPropertyMap |
addProperty, canAddProperty, canSetProperty, canSetProperty, getProperty, hasProperty, isPropertyReadable, isPropertyWritable, properties, properties, setProperty, setProperty |
| Method Detail |
public boolean canSetDestination(RwiElement destination)
RwiElement which will be assigned as a destination for this linktrue if the destination can be set as a destination
for this link, false otherwisepublic boolean canSetSource(RwiElement source)
RwiElement which will be assigned as a source for this linktrue if the source can be set as a source for this link,
false otherwisepublic RwiElement getDestination()
public RwiElement getSource()
public void setDestination(RwiElement destination)
RwiElement which will be assigned as a destination for this linkpublic void setSource(RwiElement source)
RwiElement which will be assigned as a source for this link
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||