slreq.Link class
Package: slreq
Work with link objects
Description
When you establish a traceable association between artifacts, Requirements Toolbox™ creates an slreq.Link
object to store source and
destination data of the link.
Creation
creates an link
= slreq.createLink(src
, dest
)slreq.Link
object link
with source and
destination artifacts specified by src
and
dest
respectively. The slreq.Link
object is
stored in the Link set file that belongs to src
.
returns an array of outLinks
= slreq.outLinks(src
)slreq.Link
objects outLinks
that contains the outgoing links from the source artifact
src
.
returns an array of inLinks
= slreq.inLinks(dest
)slreq.Link
objects inLinks
that contains the incoming links to the destination artifact
dest
.
Input Arguments
Output Arguments
Properties
Methods
addComment | Add comments to links |
destination | Get link destination |
getAttribute | Get link property values |
getDestinationLabel | Get label that identifies link destination |
getDestinationOpenCommand | Retrieve command that opens link destination |
getDestinationURL | Retrieve URL that opens link destination |
getIncomingTypeLabel | Get type label for incoming link |
getOutgoingTypeLabel | Get type label for outgoing link |
getReferenceInfo | Get unresolved link destination |
getSourceLabel | Get label that identifies link source |
getSourceOpenCommand | Retrieve command that opens link source |
getSourceURL | Retrieve URL that opens link source |
isFilteredIn | Check filtered links |
isResolved | Check if the link is resolved |
isResolvedDestination | Check if the link destination is resolved |
isResolvedSource | Check if the link source is resolved |
linkSet | Return parent link set |
remove | Delete links |
setAttribute | Set link property values |
setDestination | Set requirement link destination |
setSource | Set requirement link source |
source | Get link source |
Examples
Version History
Introduced in R2018a