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

enum

Access     Drag icon onto diagram, or
Project Browser | Double-click on Enumeration element, or
Diagram | Right-click on element | Properties

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

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