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
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 |
|
Other |
Double-click on «enumeration» stereotyped element, or Drag 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:
|
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