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» or the «JavaArray» stereotype to
the UML attribute, association or operation. Applying the stereotype overrides
the default collections that you select in the transformation configuration.
These stereotypes are available in the UML-to-Java 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.