Extended Collections and Compositions (Profile)

An extended collection allows you to associate multiple instances of one metaclass with an instance of another.

For example, to attach documents containing use case specifications to the different packages of a model you can create an extended collection in the Package metaclass and define FileObject as the target metaclass. You could create an extended collection on the OOM process metaclass to show the components used as resources to the process, in order to have a more accurate vision of the physical implementation of the process.

The association between the parent and child objects is relatively weak, so that:

An extended composition allows you to associate multiple instances of the extended sub-object metaclass with a metaclass. The association is stronger than that created by an extended collection – sub-objects can only be created within the parent object and are moved, copied, and/or deleted along with their parent.

When you create an extended collection or extended composition in a metaclass, a new tab with the name of the collection or composition is added to the metaclass property sheet.

Note:

If you create an extended collection or composition on a stereotype or criterion, the corresponding tab is displayed only if the metaclass instance bears the stereotype or meets the criterion.

For extended collections, the property sheets of the objects contained within the collection list the parent object on their Dependencies tab.