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

Access

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

Ribbon

Design > Element > Properties > Properties

Context Menu

Right-click on «XSDsimpleType» stereotyped Class | Properties

Keyboard Shortcuts

Alt+Enter

Other

Double-click on «XSDsimpleType» stereotyped Class, or

Drag 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 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

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