Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Topic
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 > Manage > Properties

Context Menu

Right-click on «XSDtopLevelAttribute» stereotyped element| Properties

Keyboard Shortcuts

Alt+Enter

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:

  • Type the name of a data type, or
  • Click on the drop-down arrow and select an XSD built-in dataType from the list, or
  • Click on the button and browse for an existing XSDsimpleType element as a classifier

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:

  • qualified to use any Prefix supplied on the Schema Package to qualify this attribute, or
  • unqualified to show no qualifying prefix on the attribute name
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

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

Learn more