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.

Before you apply the UML-to-Java transformation, you should read the information that is available at Modeling > Transform > Configure Transformations. From the Transformations/Configurations list, select UML to Java. On the Transformation Description page, click View Transformation Documentation.

You must be in the Modeling perspective.

To specify the Java collection types that the UML-to-Java transformation generates:
  1. Click Modeling > Transform > Configure Transformations.
  2. In the Configure Transformations window, from the Transformations/Configurations list, select a transformation configuration.
  3. Click the Collections tab.
  4. On the Collections page, from each UML collection type list, select a Java collection type.
  5. Click Apply.
  6. Click Close.
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.