Global Element

The Element icon from the XML Schema Toolbox creates an XSDtopLevelElement stereotyped Class, which acts as a XSD global element, when dropped directly on a diagram.

XSD Properties:          Project Browser: double-click on the XSDtopLevelElement stereotyped Class
                 Diagram: double-click on the XSDtopLevelElement stereotyped Class

Reference

Field/Button

Usage

See also

Name

Specify the name for this global element.

 

 

Type

Specify either an XSD built-in dataType or complexType or simpleType.

 

 

Value

If Type is an XSD built-in type then optionally specify its value:

Option

Usage

Default

Specifies Value as default value.

 

Fixed

Specifies Value as fixed.

 

 

 

Nested complexType

Check this option to create an XSDcomplexType as a child of this global element.

 

Complex Type

Nested simpleType

Check this option to create an XSDsimpleType as a child of this global element.

 

Simple Type

Annotation

Specify the notes for this element ( Optional ).

 

 

OK

Save the values entered and close the dialog.

 

 

Cancel

Discard the values entered and close the dialog.

 

 

Help

Display this Help topic.

 

 

UML

Open the UML Properties dialog.

This button is available when editing the global element.

 

Properties

Notes

The fields Nested complexType and Nested simpleType are available in the dialog only when creating a new global element (and not when editing the global element)
The fields Type, Nested complexType and Nested simpleType are mutually exclusive - selecting one disables the others
Global elements cannot contain any UML Attributes
Global elements cannot be the source of Association connector
Global elements cannot be the target of a Generalization connector
Global elements can be the target of Association connector from Complex Type or Group Class
Global elements can have at most one Generalization connector to a Complex Type or Simple Type Class