Chapter 4 Extending your Models with Profiles


Adding the extended object, sub-object, and link metaclasses to a profile

By default, extended objects and links do not appear in models other than the free model. You have to add them in the Profile category of the resource file attached to your model. The resource file can be an extended model definition for those models, such as the CDM that do not support target languages.

Once added, you can refine the extended objects, sub-objects, and links using stereotypes (see Stereotypes (Profile), and extend them in the same ways as you would other metaclasses (see Extending objects in the profile).

Steps To add the extended object, sub-object, and link metaclasses to a profile:

  1. Open your resource file in the resource editor.

    You may have to create and attach an extended model definition if the current model is a CDM.
  2. Right-click the Profile category and select Add Metaclasses in the contextual menu to open the Metaclass Selection dialog box, and click the PdCommon tab at the bottom of the dialog box to display the list of objects common to all models.
  3. Select one or more of the ExtendedLink, ExtendedSubObject, and ExtendedObject check boxes and click OK.

    The metaclasses are added to the profile.

 


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