![](/images/new-backgrounds/1214202/214202215x1.webp)
Defining complex types
Icon | Tool | Description |
| Create from Sources | To copy abstract data type attributes or class |
|
| attributes to the current complex type |
|
| attributes |
| Generate Mapping | To automatically generate a mapping between |
|
| abstract data type attributes or class attributes |
|
| and complex type attributes with same name |
|
| or code in the data source and the current |
|
| model |
|
|
|
For more information on complex type mapping, see section Mapping objects in an XML model in chapter Working with an XML model.
Modifying complex type display preferences
You can modify the following display preferences for a complex type by selecting Tools→Display Preferences:
Preference | Description |
Attributes | Displays attributes and attribute values of the complex type |
Display limit | Maximum number of attributes displayed |
Stereotype | Displays the stereotype of the complex type |
Type | Displays the data type of the complex type |
Complex Type | Select Type, if you want the complex type attributes data |
Attributes | types to be displayed |
|
|
Creating a complex type
You can create a complex type:
♦From the palette
♦From the Browser tree view
♦From the List of Complex Types in the Model menu
For more information on the different ways to create a complex type, see section Creating an object in chapter Managing objects of the General Features Guide.
96 | PowerDesigner |