Chapter 4 Working with an XML model


Generating XML Model objects

When you generate an XML model from an OOM, PowerDesigner translates OOM objects into specified XML Model objects as follows:

OOM Object Generated object in an XML model
Class Element. A class is generated as a child element when it has one composition link with another class
Class attribute Element or element attribute (See generation options)
Identifier Key
Domain Simple type
Abstract class Complex type
Abstract class attribute Complex type attribute

OOM packages are generated into XML diagrams.

An OOM is generated into several XML diagrams:

The Global Diagram displays the symbol of a root element called Application. This Application element (which has no equivalent in the source OOM) groups together all the key constraints (see Constraints page of the Application property sheet) generated from the OOM identifiers.

Select Symbol→Show Symbols to reveal the other generated XML Model objects (simple types and complex types).

Note   XML model naming conventions
If the code of the generated XML model objects does not correspond to the target language naming conventions, you can define a code naming convention script to convert object names into codes.
For more information on conversion scripts, see section .convert_name & .convert_code macros in chapter Managing Models of the General Features Guide.

 


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