Generating OO Source Files from an OOM

PowerDesigner provides a standard interface for generating source files for all the supported OO languages. For details of language-specific options and generation tasks, see the appropriate language chapter.

By default, PowerDesigner supports the generation of the following types of objects for the languages supported by the OOM:

Object language

What is generated

Analysis

No files generated as this language is mainly used for modeling purpose

C#

.CS definition files

C++

C++ definition files (.h and .cpp)

IDL-CORBA

IDL-CORBA definition files

Java

Java files from classes and interfaces of the model. Includes support of EJB and J2EE

PowerBuilder

.PBL application or .SRU files from classes of the model

Visual Basic.Net

.VB files

XML–DTD

.DTD files

XML–Schema

.XSD files. Includes standard XML language properties

Note: The PowerDesigner generation system is extremely customizable through the use of extensions (see Extending your Modeling Environment). For detailed information about customizing generation, including adding generation targets, options, and tasks, see Customizing and Extending PowerDesigner > Extension Files.
  1. Select Language > Generate langage Code to open the Generation dialog box:


  2. Enter a directory in which to generate the files, and specify whether you want to perform a model check (see Checking an OOM).
  3. [optional] Select any additional targets to generate for. These targets are defined by any extensions that may be attached to your model (see Working With Generation Targets).
  4. [optional] Click the Selection tab and specify the objects that you want to generate from. By default, all objects are generated, and PowerDesigner remembers for any subsequent generation the changes you make.


  5. [optional] Click the Options tab and set any necessary generation options. For more information about these options, see the appropriate language chapter.
    Note: For information about modifying the options that appear on this and the Tasks tab and adding your own options and tasks, see Customizing and Extending PowerDesigner > Object, Process, and XML Language Definition Files > Generation Category.
  6. [optional] Click the Generated Files tab and specify which files will be generated. By default, all files are generated.

    For information about customizing the files that will be generated, see Customizing and Extending PowerDesigner > Extension Files > Generated Files (Profile).

  7. [optional] Click the Tasks tab and specify any additional language-specific generation tasks to perform.
  8. Click OK to begin generation.

    When generation is complete, the Generated Files dialog opens, listing the files that have been generated to the specified directory. Select a file in the list and click Edit to open it in your associated editor, or click Close to exit the dialog.