Complex Type Properties

To view or edit a complex type's properties, double-click its diagram symbol or Browser or list entry. The property sheet tabs and fields listed here are those available by default, before any customization of the interface by you or an administrator.

The General tab contains the following properties:

Property

Description

Name/Code/Comment

Identify the object. The name should clearly convey the object's purpose to non-technical users, while the code, which is used for generating code or scripts, may be abbreviated, and should not normally include spaces. Neither the name nor code should contain colons. You can optionally add a comment to provide more detailed information about the object. By default the code is generated from the name by applying the naming conventions specified in the model options. To decouple name-code synchronization, click to release the = button to the right of the Code field.

Names and codes must be unique among all simple and complex types.

Stereotype

Extends the semantics of the object. You can enter a stereotype directly in this field, or add stereotypes to the list by specifying them in an extension file.

Group type

Specifies that the object has child elements, and how they are used (see Group Particles (XSM)). You can choose between:
  • all – Each child element can occur 0 or 1 times.

  • 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

[XSD only] Specifies the type of content of the object. You can select:
  • Complex – elements or elements and character data. Click the Properties tool to specify an ID (unique within the model) for the complex content, and select the Mixed check box if character data can appear between child elements.
  • Simple – character data or a simple type (but no elements). Click the Properties tool to specify an ID for the simple content.

Derivation

[XSD only] Specifies a derivation method for the data type to extend or restrict its values. Resets the Type property to <None>. Click the Properties tool to further define the derivation (see Derivations: Extensions, Restrictions, Lists and Unions (XSM)).

Detail Tab

The Detail tab contains the following properties:

Property

Description

Final

Prevents derivation of the object.

Block

Specifies that another object with the same type of derivation cannot be used in place of the current one.

Mixed

Specifies that character data can appear between child elements. Only appropriate if the complex type has complex content.

Abstract

Specifies that the object cannot be used in the instance document.

ID

Specifies the ID of the object, which must be unique within the model.

Keywords

Provide a way of loosely grouping objects through tagging. To enter multiple keywords, separate them with commas.

The following tabs are also available: