slreq.find
Find requirement, reference, and link set artifacts
Syntax
Description
returns the loaded Requirements Toolbox™ objects of the type specified by
myReqTbxObjects
= slreq.find("Type",ObjectType
)ObjectType
.
returns the loaded Requirements Toolbox objects with the requirement type or link type specified by
myReqTbxObjects
= slreq.find("Type",ObjectType
,Name,Value
)Name
and Value
.
returns the loaded Requirements Toolbox objects with the property value equal to
myReqTbxObjects
= slreq.find("Type",ObjectType
,PropertyName
,PropertyValue
)PropertyValue
for the property specified by
PropertyName
. The property can be a built-in property,
custom attribute, or stereotype property.
returns the loaded Requirements Toolbox objects whose property value, myReqTbxObjects
= slreq.find("Type",ObjectType
,PropertyOperator
,PropertyValue
)PropertyValue
,
meets the relational criteria for the property specified by
PropertyOperator
.
returns the loaded Requirements Toolbox objects that match at least one of the criteria.myReqTbxObjects
= slreq.find("Type",ObjectType
,___,"-or",___)
Examples
Input Arguments
Output Arguments
Tips
To find the children of a justification that match specified properties, use the
find
method ofslreq.Justification
.To find the children of a requirement that match specified properties, use the
find
method ofslreq.Requirement
.To find the children of a reference requirement that match specified properties, use the
find
method ofslreq.Reference
.To find the requirements that match specified properties in a requirement set, use the
find
method ofslreq.ReqSet.
To find the links in a link set that match specified properties, use the
find
method ofslreq.LinkSet
.To find links by destination attributes, specify
ObjectType
as"Link"
andPropertyName
as a link destination attribute, specified as one of these strings:"destination.domain"
"desintation.artifact"
"destination.id"
"destination.summary"
For example, to find the links whose destination artifact is a requirement set called
myAdd.slreqx
, enter:fp = which("myAdd.slreqx"); myLinks = slreq.find("Type","Link","desintation.artifact",fp);