Add Enumeration Elements
Enumerations can be used to restrict the values available to stereotype tags.

Note: |
Enumerations defined under a Profile Package do not appear as elements in the profile when imported. |
To add an Enumeration element, follow the steps below:
- Open your Profile Package child Class diagram.
- In the Enterprise Architect UML Toolbox, select More tools | Profile. The contents of the Profile page of the Toolbox display.
- Drag an Enumeration item from the toolbox onto the diagram. If the Properties dialog does not display, double-click on the element on the diagram.
- In the Name field, type the name of the new Enumeration.
- Click on the Details tab and click on the Attributes button. The Attributes Properties dialog displays.

- In the Name field, type the name of the Enumeration attribute.
- In the Type field, click on the drop-down arrow and select the appropriate type.
- In the Initial field, type the initial value of the attribute.
- Click on the Save button, and repeat steps 6 to 9 for additional attributes.
- When you are finished, click on the Close button.
- Right-click on the Stereotype element and select the Attributes context menu option. The Attribute Properties dialog displays for the stereotype.
- In the Name field type a name for the attribute.
- In the Type field type the name of the Enumeration element.
- In the Initial field type the name of the first enumeration attribute you defined.
- Click on the Save and Close buttons.
You have now generated a drop-down list for setting the value of the tag in the Tagged Values window.
The material ("material" includes all pages, documents and on-line graphics) on this web site is protected by copyright law. (C) 1998-2008 Sparx Systems Pty Ltd.