Book a Demo

Author Topic: How to place literals in an Enum?  (Read 8455 times)

ssands

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
How to place literals in an Enum?
« on: December 31, 2015, 06:38:27 am »
Hi all,

I have an Enumeration and want to list the possible values of the enumeration class. Are modelers using attributes to list the possible enums?

That doesn't seem quite right to me, but I'd like to hear what others are doing. It seems like there should be a "Literals" compartment for enums, but I might be missing something.

Best,
S

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to place literals in an Enum?
« Reply #1 on: December 31, 2015, 07:34:51 am »
Use attributes with the Is Literal set to true (which is the default for enumerations)

Geert

ssands

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: How to place literals in an Enum?
« Reply #2 on: December 31, 2015, 07:38:53 am »
Use attributes with the Is Literal set to true (which is the default for enumerations)

Geert
Thank you, Geert!

For some reason, it is set to False by default but that is easy enough to change.

EDIT: Once I started to enter them, isLiteral defaulted to True.

I appreciate your quick response.

Best,
Stu
« Last Edit: December 31, 2015, 07:41:43 am by ssands »