Prev | Next |
Complex Type
An «XSDcomplexType» stereotype is applied to a generic UML Class, to tailor the generation of a complexType definition in the Schema. You can create an «XSDcomplexType» stereotyped Class by dragging the Complex Type icon from the XML Schema Toolbox and dropping it directly onto a diagram.
Toolbox Icon
Access
To display the 'XSD complexType Properties' dialog for the selected «XSDcomplexType» stereotyped Class, use one of the methods outlined here.
Ribbon |
Design > Element > Properties > Properties |
Context Menu |
Right-click on «XSDcomplexType» stereotyped Class | Properties |
Keyboard Shortcuts |
|
Other |
Double-click on «XSDcomplexType» stereotyped Class, or Drag icon from toolbox onto diagram (this creates a new «XSDcomplexType» stereotyped Class) |
Define Properties
Field/Button |
Action |
See also |
---|---|---|
Name |
If you do not want to use the default name of the complexType Class, overtype it with another name. |
|
Model Group |
Click on the down-arrow and select the option that defines how the child elements of this complexType should occur in the Schema.
|
|
MinOccurs |
(Optional) Type the minimum number of times this element must occur in the Class. Type 0 to indicate that the element is optional. The default value is 1. |
|
MaxOccurs |
(Optional) Type the maximum number of times this element can occur in the Class. Type unbounded to indicate that there is no limit to the number of times the element can occur. The default value is 1. |
|
Annotation |
(Optional) Type any notes you need for this element. |
|
Abstract |
(Optional) Select this checkbox to use this complexType in an instance XML file. |
|
Mixed |
(Optional) Select this checkbox to allow character data to display among the child elements. |
|
OK |
Click on this button to save the complexType data entered and close the XSD complexType 'Properties' dialog. |
|
Cancel |
Click on this button to discard the complexType data entered and close the XSD complexType 'Properties' dialog. |
|
Help |
Click on this button to display this Help topic. |
|
UML |
This button is displayed when you are editing existing XSD complexType information. Click on the button to open the UML element 'Properties' dialog for the complexType Class. |
Properties |
Notes
Learn more