setAttribute
Class: slreq.Requirement
Namespace: slreq
Set requirement property values
Syntax
setAttribute(req,propertyName,propertyValue)
Description
setAttribute(
sets a requirement property, req,propertyName,propertyValue)propertyName, to the value specified
by propertyValue for the requirement req. The
property can be a built-in property, a custom attribute, or a stereotype
property.
Note
To set the value of a stereotype property, you must pass the fully qualified name of the
property. For example, the fully qualified name for a property called
Status in a stereotype called myStereotype in a
profile called myProfile is
myProfile.myStereotype.Status.
Input Arguments
Examples
Tips
To set property values for links, use the
setAttributemethod ofslreq.Link.
Version History
Introduced in R2018a