Prev | Next |
Global Attribute
A Global Attribute is an «XSDtopLevelAttribute» stereotyped Class. You can create it by dragging the 'Attribute' icon from the XML Schema Toolbox and dropping it directly onto a diagram.
Access
To display the 'XSD attribute Properties' dialog for the selected «XSDtopLevelAttribute» stereotyped element, use one of the methods outlined here.
Ribbon |
Design > Element > Editors > Properties |
Context Menu |
Right-click on «XSDtopLevelAttribute» stereotyped element| Properties |
Keyboard Shortcuts |
|
Other |
Double-click on «XSDtopLevelAttribute» stereotyped Class, or Drag icon from toolbox and drop directly onto the diagram (this creates a new «XSDtopLevelAttribute» stereotyped Class) |
Toolbox Icon
Define Properties
Field/Button |
Action |
See also |
---|---|---|
Name |
If you do not want to use the default name of the global attribute, overtype it with another name. |
|
Type |
Either:
Alternatively, select the 'Nested simpleType' checkbox. |
|
Nested simpleType |
Select this checkbox to create an XSDsimpleType element as a child of this global attribute element. |
Simple Type |
Value |
(Optional) If you have selected an XSD built-in dataType in the 'Type' field, type in a value. |
|
Default |
Select this radio button to set the 'Value' field as a default value. |
|
Fixed |
Select this radio button to set the 'Value' field as a fixed value. |
|
Form |
(Optional) Click on the drop-down arrow and select:
|
Schema Package |
Annotation |
(Optional) Type in any notes you need for this attribute. |
|
OK |
Click on this button to save the attribute data entered and close the XSD attribute 'Properties' dialog. |
|
Cancel |
Click on this button to discard the attribute data entered and close the XSD attribute 'Properties' dialog. |
|
Help |
Click on this button to display this Help topic. |
|
UML |
This button is displayed when you are editing existing XSD element information. Click on the button to open the UML element 'Properties' dialog for the global attribute Class. |
Properties Dialog |
Notes
- The field 'Nested simpleType' is available in the dialog only when creating a new global attribute (and not when editing the global attribute)
- The fields 'Type' and 'Nested simpleType' are mutually exclusive; selecting one disables the other
- A Global attribute:
- Cannot contain any UML attributes
- Cannot be the source of an Association connector
- Can be the target of an Association connector from a Complex Type Class
- Cannot be the target of a Generalization connector
- Can be the source of one Generalization connector to a Simple Type Class