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
Name-Value Arguments
Output Arguments
Tips
To search the children of a requirement, use the
findmethod ofslreq.RequirementTo search the children of a requirements set, use the
findmethod ofslreq.ReqSet.To search the children of a link set, use the
findmethod ofslreq.LinkSet.To search the children of a reference, use the
findmethod ofslreq.Reference.To search the children of a justification, use the
findmethod ofslreq.Justification.To search links by destination attributes, specify
ObjectTypeas"Link"andPropertyNameas a link destination attribute, specified as one of these strings:"destination.domain""destination.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);