Chapter 4 Managing Profiles


Extended collection properties

When you create an extended collection, you have to select the appropriate metaclass or stereotype in which to create the collection. This will determine the extended collection scope. You also have to define the following properties:

Property Description
Name Name of the extended collection
Comment Additional information about the extended collection
Inverse Name Name of the parent metaclass that will appear in the Dependencies tab of the target metaclass. If you do not type a value in this box, an inverse name is automatically created and displayed in the Dependencies tab
Target Type Defines the metaclass associated with the current metaclass or stereotype. The list lets you select the type of object that can be stored in the collection, this list displays only metaclasses that can be directly instantiated in the current model or package like classes or tables. You cannot select sub-objects like class attributes or table columns.

You can click the Select a Metaclass tool beside the Target Type box to display a list of models installed on your workstation and select a metaclass from another type of model.

Make sure you select a target type, otherwise the extended collection definition is ignored
Target Stereotype Additional filter set on the extended collection. This box lists all the stereotypes defined in the current profile for the selected target type. You can also type a new stereotype in this box

When you create an extended collection on a stereotype, the corresponding list of objects is displayed only if the instance of the parent metaclass has the correct stereotype. If you change the stereotype, the list is displayed.

When you open a model containing extended collections with a resource file that does not support extended collections, extended collections are still visible in the different property sheets. This is to let you delete objects in the collections no longer supported.

If you copy and paste an object with extended collections The related objects are not copied.

If you move an object with extended collections The link with the related objects is preserved (using shortcuts if required).

 


Copyright (C) 2005. Sybase Inc. All rights reserved.