In UML models, attributes represent information, data,
or properties. You can add attributes to UML stereotypes. You can
also specify the data type of attributes.
Before you can add attributes to stereotypes,
a custom UML profile that contains at least one stereotype must
be open in the Model Explorer view.
To add an attribute to a stereotype:
- In the Model Explorer view,
right-click a stereotype; then click .
- Type a name without spaces and press Enter.
- To specify the data type of the attribute, in the Properties view,
click the General tab.
- On the General page, click Select
Type.
- In the Select Element window, click
a data type.
- Click OK.