Enumeration dialog box

 

Enumerations

An enumeration defines a finite sub-set of positive integers, in which each value has a symbolic name.

 

The enumerate types represented here can correspond either to C++ enumerate types or to Pascal or Ada enumerate types (which have different semantics).  All the possible symbolic values of the enumerations are defined by a "Literal value" class.

 

The "Enumeration" dialog box contains four tabs - "Properties", "Notes", "Tagged values" and "Stereotypes".  For information on these standard dialog box tabs, please see "Standard dialog box tabs".

 

 

The "Properties" tab of the "Enumeration" dialog box

The "Properties" tab of the "Enumeration" dialog box is used to define values for an enumeration.

 

The "Properties" tab of the "Enumeration" dialog box

 

Key:

·         "Name": This is the name of the enumeration.

·         "Visibility": This indicates the visibility of the enumeration, which can be public, protected, private or none.

·         "Enumeration literal value": (see "The Enumeration literal dialog box") This is the link with the "Enumeration literal" representing the possible values of the type.