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
In the Project Explorer view, right-click
a stereotype; then click Add UML > Attribute.
Type a name 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. If a
type is not specified for an attribute, a validation error appears.