Specifying the Java collection types that the UML-to-Java transformation generates

A collection represents a group of model elements. The collection type determines whether duplicate model elements in the collection can exist or whether the model elements are ordered.

For each UML collection type in the source project, you can specify the Java™ collection type that the transformation generates. The UML collection type is determined by the isOrdered and isUnique property of the model elements.

To specify the Java collection types that the transformation generates:

  1. In the Project Explorer view, right-click a transformation configuration file; then click Open.
  2. Click the Advanced tab.
  3. On the Advanced page, from each UML collection type list, select a Java collection type.
  4. Click File > Save.
The options are applied the next time that you run the transformation.
Note: If you create a new transformation configuration, you can specify this information on the Advanced page of the New Transformation Configuration wizard.

Feedback