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

Enumeration

An Enumeration defines a list of acceptable values for the Class. You can create an Enumeration element by dragging the Enum icon from the XML Schema Toolbox and dropping it directly onto a diagram.

Toolbox Icon

Toolbox Icon

Access

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

Ribbon

Design > Element > Editors > Properties

Context Menu

Right-click on «enumeration» stereotyped element | Properties

Keyboard Shortcuts

Alt+Enter

Other

Double-click on «enumeration» stereotyped element, or

Drag Toolbox Icon icon from toolbox and drop directly onto the diagram (this creates a new «enumeration» stereotyped element)

Define Properties

Field/Button

Action

See also

Name

If you do not want to use the default name of the Enumeration, 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
Simple Type

Values

Type each of the values, separated by commas, for the selected Type.

These values are listed on the element as attributes.

Annotation

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

OK

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

Cancel

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

Help

Click on this button to display this Help topic.

UML

This button is displayed when you are editing existing Enumeration element information.

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

Properties Dialog

Notes

  • An Enumeration:
  • 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 most one Generalization connector to a Simple Type Class

Learn more