The
UML collection type is determined by the following properties of the model
elements:
- In the Properties view, on the General page, the Ordered and Unique properties
specify the UML collection type.
- In the Properties view, on the Advanced page, the Is Ordered and Is Unique
properties specify the UML collection type.
Note: You can also specify the Java collection type that the transformation
generates by applying the «JavaCollection» stereotype to the UML attribute,
association or operation. Applying this stereotype overrides the default collections
that you select in the transformation configuration. This stereotype is available
only in the UML-to-Java 5.0 transformation profile.
To specify
the Java collection
types that the transformation generates:
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
Collections page
of the New Transformation Configuration wizard.