Book a Demo

Author Topic: Displaying Enumeration Values  (Read 13717 times)

William McKenzie

  • EA User
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Displaying Enumeration Values
« on: June 23, 2011, 03:19:13 am »
For the <<enumeration>> stereotype, there does not seem to be a way to specify the actual enumerated values.  Is it possible to do this, and further, can they be displayed on a diagram, instead of the attributes/methods (which enumerations would not have).

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Displaying Enumeration Values
« Reply #1 on: June 23, 2011, 08:48:56 am »
Enter them as attributes but tick the "Is Literal" checkbox. You can also give each literal an "Initial Value" if you wish.
The Sparx Team
[email protected]

William McKenzie

  • EA User
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: Displaying Enumeration Values
« Reply #2 on: June 23, 2011, 10:28:47 am »
Thanks.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Displaying Enumeration Values
« Reply #3 on: June 23, 2011, 04:35:02 pm »
William,

Just for reference, Enumerations can have attributes and operations next to Literal Values.
Attributes are modeled the same way as literal values except for the Is Literal check-box.

Geert