Chapter 9 Working with Object-Oriented Models


Opening a Rose model in an OOM

You can open a model built with Rational Rose (.MDL) version 98, 2000 and 2002.

A new OOM is created for the Rose model, and the objects of the Rose model are translated into OOM objects.

This functionality provides you with greater scope and flexibility. You can create an OOM from a Rose model, from which you generate Java files or objects for PowerBuilder to create applications. You can also use the OOM created from a Rose model to add to an existing OOM, or to generate a CDM or PDM for database analysis purposes.

Object language of the new OOM

A Rose model can support one or several languages whereas a PowerDesigner OOM has a single object language. When you open a Rose model in an OOM:

If the Rose model supports only one object language the new OOM will have the same object language.

If the Rose model supports several object languages the new OOM will have only one of the object languages of the Rose model.

The following table maps Rose languages to PowerDesigner languages:

Rose language PowerDesigner language
CORBA IDL-CORBA
Java Java
C++ C++
VC++ C++
XML-DTD XML-DTD
Visual Basic Visual Basic 6
Analysis Analysis
Oracle 8, Ada, COM, Web Modeler, and all other languages Analysis

Steps To open a Rose model in an OOM:

  1. Select File→Import→Rational Rose File to display the open file dialog box.
  2. Select or browse to the directory that contains the Rose file.
  3. Select Rational Rose Model (*.MDL) file from the Files of Type list.
  4. Select a file.
  5. Click Open.

    The Output window displays a message following the successful import and the default diagram of the model is displayed.

 


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