Changing Java field collection types

In UML visualization, you can change collection types of Java fields.

You can change the collection type of a Java field only when its declared type is one of the default collection types set in the Java to UML Mapping preferences.

To change a Java field collection type:

  1. In the diagram editor, right-click an attribute of a Java class or interface; then click Edit > Change Collection Type.

  2. In the Select Type window, click a collection type and click OK.

 

Parent topic

Managing relationships between Java elements

 

Related tasks

Showing and hiding relationships
Showing operation signatures of classifiers
Showing parent names of classifiers
Changing Java association collection types
Defining default Java collection types