Book a Demo

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

Prev Next

Simple Type

An «XSDsimpleType» stereotype is applied to a generic UML Class, to tailor the generation of a simpleType definition in the Schema. You can create an «XSDsimpleType» Class by dragging the Simple Type icon from the XML Schema Toolbox and dropping it directly onto a diagram.

Toolbox Icon

Toolbox Icon

Access

To display the 'XSD simpleType Properties' dialog for the selected «XSDsimpleType» stereotyped Class, use one of the methods outlined here.

Ribbon

Design > Element > Editors > Properties

Context Menu

Right-click on «XSDsimpleType» stereotyped Class | Properties

Keyboard Shortcuts

Alt+Enter

Other

Double-click on «XSDsimpleType» stereotyped Class, or

Drag Toolbox Icon icon from toolbox onto diagram (this creates a new «XSDsimpleType» stereotyped Class)

Define Properties

Field/Button

Action

See also

Name

If you do not want to use the default name of the simpleType element, 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 Browse. button and browse for an existing «XSDsimpleType» element as a classifier

Restriction

Select this radio button to restrict the value of this simpleType to that of the selected Type.

The various restrictions (facets) on the simpleType are available as Tagged Values on this Class.

Tagged Values

List

Select this radio button to specify this simpleType as a list of values of the selected Type.

Annotation

(Optional) Type any notes you need for this element.

OK

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

Cancel

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

Help

Click on this button to display this Help topic.

UML

This button is displayed when you are editing existing XSD simpleType information.

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

Properties Dialog

Notes

  • A simpleType:
  • Cannot contain any «XSDelement» or «XSDattribute» stereotyped UML attributes
  • Cannot contain any child Classes
  • Cannot be the source of an Association connector
  • Can be the target of a Generalization connector
  • Can have at the most one Generalization connector to another simpleType Class

Learn more