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.

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:
  1. In the Model Explorer view, right-click a stereotype; then click Add UML > Attribute.
  2. Type a name without spaces 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.
Related concepts
Custom UML profiles
Related reference
Stereotypes and constraints
Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.