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 . 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:
- Click .
- In the Configure Transformations window, from
the Transformations/Configurations list, select a transformation
configuration.
- Click the Collections tab.
- On the Collections page, from each UML collection
type list, select a Java collection type.
- Click Apply.
- Click Close.