Chapter 4 Managing Profiles
Depending on the type of resource file you are working on, the list of pre-existing metaclasses can change in the Profile category.
The procedure for adding a metaclass requires selecting items among a wide range of existing PowerDesigner metaclasses. In the Selection dialog box, you can use the Modify Metaclass Filter tool to display all, concrete or abstract conceptual metaclasses in the selection list.
For more information on the PowerDesigner metamodel, see the "PowerDesigner Public Metamodel" chapter.
All concrete metaclasses having a name and a code display a code naming convention list. The code naming convention allows you to select a name to code conversion script for all instances of the selected metaclass. The process automatically converts names into codes with the selected naming convention, provided the Enable name/code conversion check box is selected in the naming conventions tab.
You can select among the following conversion scripts:
Code naming convention | Description |
---|---|
firstLowerWord | First word in lowercase, then other first letters of other words in uppercase |
FirstUpperChar | First character of all words in uppercase |
lower_case | All words in lowercase and separated by an underscore |
UPPER_CASE | All words in uppercase and separated by an underscore |
When you select a code naming convention, the conversion script is displayed as a parameter in the conversion script page of the Model Options dialog box whenever you change the target of the current model or when you create a new model.
For more information on conversion scripts and naming conventions, see the ".convert_name & .convert_code macros" section in the "Managing Models" chapter in the General Features Guide .
When you add a metaclass in a profile, you can select the Enable Selection in File Generation check box in order to have the corresponding metaclass instances appear in the Selection tab of the extended generation dialog box. If a parent metaclass is selected for file generation, children metaclasses also appear in the Selection tab.
To add a metaclass to a profile:
Copyright (C) 2005. Sybase Inc. All rights reserved. |