setAttribute
Class: slreq.Link
Namespace: slreq
Syntax
setAttribute(myLink,propertyName,propertyValue)
Description
setAttribute(
sets a link property, myLink
,propertyName
,propertyValue
)propertyName
, to the value specified by
propertyValue
for the link myLink
. 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 requirements, use the
setAttribute
method.
Version History
Introduced in R2020b