Book a Demo

Author Topic: How do you represent an Enum in a class diagram?  (Read 4934 times)

dubem1

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
How do you represent an Enum in a class diagram?
« on: December 17, 2003, 07:58:16 am »
Hello,
I want to represent an enum in the class diagram and then generate de code.  Someone knows how?

Thanks
Martin

Sean Kearon

  • EA User
  • **
  • Posts: 126
  • Karma: +0/-0
    • View Profile
Re: How do you represent an Enum in a class diagra
« Reply #1 on: December 18, 2003, 03:34:42 am »
Use a class with the stereotype "enumeration".  Attributes of the class are the enum's members, use the Initial property of the Attribute to specify the value if you wish.

Cheers

Sean