Showing associations as attributes

In UML visualization, you can show associations as attributes in classifiers in diagrams.

To show an association as an attribute, in the diagram editor, right-click an association; then click Filters > Show as Attribute.

The association is removed from the diagram and is added to the source classifier as an attribute.

Tip: You can also drag an association onto the attribute compartment of the source of the association to show the association as an attribute.

 

Parent topic

Managing shape compartments

 

Related concepts

Association relationships
Attributes

 

Related tasks

Showing and hiding compartments
Showing attributes as associations
Resizing compartments
Collapsing compartments