You can show Java™ attributes, or fields, as association
relationships in Unified Modeling Language (UML) class diagrams.
To show a Java attribute as an association in a UML
class diagram, in the diagram editor, right-click an attribute; then click .
The attribute is removed from the classifier and displayed as an association
relationship.
Tip: You can also drag an attribute outside the classifier
to show the attribute as an association.