Adding attributes to classifiers in diagrams

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:

  1. In the diagram editor, right-click a classifier; then click Add UML > Attribute.
  2. 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.

Parent topic: Managing attributes and operations in classifiers

Related concepts
Attributes
Classifiers

Related reference
Relationship types

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.