Book a Demo
Prev Next

Model Group

You can create an «XSDsequence», «XSDchoice» or «XSDall» stereotyped Class by dragging the Model Group icon from the XML Schema Toolbox and dropping it directly onto a diagram.

An «XSDsequence» model group (the default model group type) is a container for the attributes and associations owned by the Class. The model group is in turn added to the model groups of the Class's respective owners. Tagged Values specified by owners of the Class persist through to the child elements of the model group; if memberNames are unqualified for a complexType, so are the children of this model group when added to that complexType.

Toolbox Icon

Toolbox Icon

Access

To display the 'XSD Model Group Properties' dialog for the selected «XSDsequence», «XSDchoice» or «XSDall» stereotyped Class, use one of the methods outlined here.

Ribbon

Design > Element > Editors > Properties

Context Menu

Right-click on «XSDsequence», «XSDchoice» or «XSDall» stereotyped Class | Properties

Keyboard Shortcuts

Alt+Enter

Other

  • Double-click on «XSDsequence», «XSDchoice» or «XSDall» stereotyped Class, or
  • Drag the Toolbox Icon icon from the Toolbox onto the diagram (this creates a new Model Group element; you can choose from the «XSDsequence», «XSDchoice» or «XSDall» stereotypes, of which «XSDsequence» is the default)

Define Properties

Field/Button

Action

See also

Name

If you do not want to use the default name of the Model Group, overtype it with another name.

Model Group

Click on the drop-down arrow and select the value that defines how the child elements of this group should occur in the Complex Type Class:

  • sequence - to specify that the child elements must occur in the specified order; creates an «XSDsequence» stereotyped Class
  • choice - to specify that only one of the child elements can occur; creates an «XSDchoice» stereotyped Class
  • all - to specify that the child elements can occur in any order; creates an «XSDall» stereotyped Class
Complex Type

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.

OK

Click on this button to save the Model Group data entered and close the XSD element 'Properties' dialog.

Cancel

Click on this button to discard the Model Group data entered and close the XSD element 'Properties' dialog.

Help

Click on this button to display this Help topic.

UML

This button is displayed when you are editing existing Model Group element information.

Click on the button to open the UML element 'Properties' dialog for the Model Group Class.

Properties Dialog

Notes

  • A Model Group:
  • Can contain only «XSDelement» stereotyped UML attributes
  • Can contain Complex Types and Simple Types as child elements
  • Can be the source of Association connectors to Complex Type, Simple Type, Group and Model Group elements
  • Must be the target of least one incoming Association connector from a Complex Type
  • Cannot be the source or target of a Generalization connector

Learn more