Adding attributes to a use case
Because a use case is a stereotyped class, it can have attributes. No code is generated for these attributes.
About this task
IBM® Engineering Systems Design Rhapsody® does not display attributes in the use-case diagram. To access attributes for a use case, use the browser.
Adding a new attribute to a use case
Procedure
- Select the use case in the use-case diagram editor.
- Right-click the use case, and then select New Attribute. The Attribute window opens.
- Type a name for the attribute in the Name field.
Use the L button next to the name field to assign a logical label. - Select the Type, Visibility, and Multiplicity for the attribute.
- Type a description in the Description tab.
- Click OK.
Adding an existing attribute to a use case
Procedure
- In the browser, locate the class that contains the attribute.
- Click-and-drag the attribute to the use case in the browser. This action creates a separate copy of the attribute under the use case.
Results
Note: If you click-and-drag an attribute from
one use case to another, the attribute is moved, not copied.