Complex Type Properties

You can modify an object's properties from its property sheet. To open a complex type property sheet, double-click its diagram symbol or its Browser entry in the Complex Types folder. The following sections detail the property sheet tabs that contain the properties most commonly entered for complex types.

The General tab contains the following properties:

Property

Description

Name

Name of the complex type, which must be a no-colon-name and unique among all simple types and complex types.

Code

Code of the complex type, which must be a no-colon-name and unique among all simple types and complex types.

Comment

Descriptive label of the complex type.

Stereotype

Sub-classification used to extend the semantics of an object without changing its structure. It can be predefined or user-defined.

Group type

Specifies that the complex type has child elements, and how they are used (see Group Particles (XSM)). You can choose between:
  • all – All children may be present.

  • choice – Only one child must be present.

  • group – Reference to a predefined group (see Groups (XSM))

  • sequence – All children must be present in order.

Content

Content type of the complex type (see Specifying the Type of Content of a Complex Type).

Derivation

Derivation method for the complex type. Once you have selected a derivation method, you must define a base type. Click the Properties tool beside the derivation box to display the derivation property sheet. In the General tab, select a base type in the Base Type list.

Detail Tab

The Detail tab contains the following properties:

Property

Description

Final

Property to prevent derivation of the current complex type

Block

Property to prevent another complex type with the specified type of derivation from being used in place of the current complex type

Mixed

If selected, this property indicates that character data is allowed to appear between the child elements of the current complex type. Select Mixed only if the current complex type has a complex content (See general properties)

Abstract

If selected, this property indicates that the complex type can be used in the instance document

ID

ID of the complex type. Its value must be of type ID and unique within the model containing this complex type

Mapping Tab

This tab lets you map the complex type to PDM or OOM objects.

You associate one or more PDM abstract data types or OOM classes to the complex type using the Add Objects tool on the Complex Type Sources sub-tab. You can associate PDM abstract data type attributes or OOM class attributes to the complex type attributes using following tools on the Attributes Mapping tab:

Tool

Description

Add Mapping - Selects the attributes in the current complex type that will be mapped to PDM abstract data type attributes or OOM class attributes. Once you have selected the attributes, you can use the list in the Mapped to column to select corresponding PDM abstract data type attributes or OOM class attributes

Create from Sources - Copies PDM abstract data type attributes or OOM class attributes in the data source to the current complex type attributes

Generate Mapping - Automatically generates a mapping between PDM abstract data type attributes or OOM class attributes and complex type attributes with the same name or code in the data source and the current model

For detailed information about mappings, see Chapter 12, Object Mappings in the Core Features Guide .

The following tabs are also available: