Adding attributes to UML stereotypes

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.

About this task

Before you can add attributes to stereotypes, a custom UML profile that contains at least one stereotype must be open in the Project Explorer view.

To add an attribute to a stereotype:

Procedure

  1. In the Project Explorer view, right-click a stereotype; then click Add UML > Attribute.
  2. Type a name and press Enter.
  3. To specify the data type of the attribute, in the Properties view, click the General tab.
  4. On the General page, click Select Type.
  5. In the Select Element window, click a data type.
  6. Click OK. If a type is not specified for an attribute, a validation error appears.

Feedback