Define default Java collection types

In UML visualization, you can define default Java collection types by adding them to the Java to UML mapping preferences.

To define a default Java collection type:

  1. Click Window > Preferences.

  2. In the Preferences window, expand Modeling and click Java to UML Mapping.

  3. On the Java to UML Mapping page, click New.

  4. In the Select Java Type window, in the Matching types list, click a class or an interface, and in the Qualifier list, click the qualifier for the collection type, and click OK.

  5. Click Apply and click OK.

 

Parent topic

Customizing the Java visual design tool

 

Related concepts

About UML class diagrams
Class diagrams

 

Related tasks

Setting the default for showing parent names
Setting the default for showing operation signatures
Changing the default for showing attribute and operation compartments
Changing the default visibility style for attributes and operations
Customizing the default Java types to be shown or filtered out in diagrams
Changing Java field collection types
Changing Java association collection types

Related reference
UML modeling best practices