Book a Demo

Author Topic: Init. value for enum. literal ignored in Java API  (Read 3029 times)

tanja

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Init. value for enum. literal ignored in Java API
« on: August 24, 2010, 03:42:16 am »
For a project, I have to assign an int value to each enum literal (like C/C++/C# enumerations). They are well in the model, and displayed on the diagrams.

However, Attribute.GetDefault() always returns an empty string.

Half of the enums have been imported from Rose, the other half has been created with "Enumeration" drag&drop from the Toolbox - the problem is the same.

I have some 150 such enums, each with 5 literals in average, and I really hope I can get to those initial values through Java API.

tanja

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Init. value for enum. literal ignored in Java
« Reply #1 on: August 28, 2010, 07:39:22 am »
Mea culpa !
I worked very late and must have been tired.
I must have picked the wrong model (which actually did not have init values on enum literals).
So it's confirmed that this is not an issue.
Sorry for the false alarm.