# Enumeration types

**URL:** <https://forums.visual-paradigm.com/t/enumeration-types/12309>\
**Category:** General Questions/Discussions\
**Created:** [January 12, 2013, 5:02am UTC](https://forums.visual-paradigm.com/t/enumeration-types/12309 "2013-01-12T05:02:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wes](https://avatars.discourse-cdn.com/v2/letter/w/e9c0ed/32.png) [@wes](https://forums.visual-paradigm.com/u/wes)\
**Post date:** [January 14, 2013, 10:54am UTC](https://forums.visual-paradigm.com/t/enumeration-types/12309/1 "2013-01-14T10:54:32Z")

</div>

I am a new user of VP-UML 10.0. I’m struggling to define an enumeration type to use within a class. This particular enumeration is a device driver status, but we will have quite a few similar ones. How do I specify the enumeration values in the \<\> object in the diagram? I’m sure it’s straightforward, but it’s eluding me. The current documentation (PDF) doesn’t seem to apply all that well to the 10.0 software version.

---

<div class="post-metadata">

**Author:** ![wes](https://avatars.discourse-cdn.com/v2/letter/w/e9c0ed/32.png) [@wes](https://forums.visual-paradigm.com/u/wes)\
**Post date:** [January 29, 2013, 12:14pm UTC](https://forums.visual-paradigm.com/t/enumeration-types/12309/2 "2013-01-29T12:14:28Z")

</div>

For anyone who finds this in a search, it turned out to be quite easy. In your class object, apply the \<\> stereotype. Now when you right-click in the class, the first item under the Add\> menu is “Enumeration literal.” This will prompt you for a name and then add a \<\> -Name attribute with your name.

I figured this out by writing a C++ class with an encapsulated enumeration and importing it, just to see what the relationships looked like. One of the reasons we chose VP-UML is because if it’s ability to handle partly-specified models, great for capturing an evolving design.
