In UML diagrams, you can add attributes to classifiers
to specify classifier properties.
You must have a diagram open in the diagram editor,
and the classifiers attributes list compartment must be visible. Ensure
that you have not set preferences to filter or hide attributes.
Note: If you set options to hide attributes,
you do not see new attributes in the diagram editor.
To
add an attribute to a classifier in a diagram:
- In the diagram editor, right-click a classifier;
then click .
- Type a name for the attribute (and optionally the attribute’s
type; for example, attributeName:Integer) and press
Enter.
Tip: You can also add attributes to classifiers
in the Model Explorer view.