Contents

Description

A description of the properties of an Enumeration object is given below:

Tab Field Description
General Name Name of the enumeration element
Value Enables to add value to the enumeration element


Creating an Enumeration

Follow the steps given below to create an enumeration, to add value, and link it to a class:

1. Click on the Enumeration icon in the toolbox and drag it into the position you want in the class diagram.

Enumerationcration.JPG

2. Double-click on the object Enumeration1 in the main view to edit its properties. In the new window, enter Title in the field Name.

EnumerationName.JPG

3. In the Value tab, click Add to create a new value.

EnumerationValueadd.JPG

4. Click in the cell new. Delete it and enter the value Miss. Click OK to close the window.

EnumerationValuemiss.JPG
EnumerationValueobject.JPG

5. In the toolbox, select the Enumeration Literal icon and click on the enumeration Title. Enter the value Mrs.

EnumerationValueliteral.JPG
EnumerationValueliteralf.JPG

6. Add the values Mr and Ms.

EnumerationValueliteralfinal.JPG

7. Double-click on the attribute title of the class Customer. Select Enumeration Title in the combo box Value List and click OK.

EnumerationValueList.JPG
EnumerationInClass.JPG

Deployment in a target platform

Alfresco

Deploy your class diagram in Alfresco. When you create a new instance of the class customer, you will see now in the form a combo box displaying the value list of title.

AlfrescoEnumeration.JPG