Book a Demo

Author Topic: Profile issues with Enumerations and literals  (Read 4978 times)

Alastair Dunsmore

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Profile issues with Enumerations and literals
« on: September 19, 2015, 01:06:14 am »
I have created a new profile with:
- a new stereotype called "myenumeration" that extends the Enumeration metaclass
- a new stereotype called "myliteral" that extends the Attribute metaclass

When I import this profile into an EA model and try to use these profile stereotypes elements to create a new enumeration with a literal (by dragging the profile elements onto a diagram) I have the following problems:

(1) The enumeration that is created on the diagram has two stereotypes - "enumeration" and "myenumeration" - I was expected only to see the "myenumeration" stereotype. Is this a bug or by design or should the profile stereotype not extend the Enumeration metaclass and extend something else?

(2) The literal that was added with the "myliteral" profile stereotype exports via XMI as an attribute and not as an enumeration literal. The literal has the "Is Literal" attribute value set to False. If this is changed to "True" then the XMI export correctly exports an enumeration literal. Is there any way to specify in the "myliteral" stereotype in the Profile a default value of true for the "Is Literal" field? Or should the "myliteral" stereotype in the profile extend some other metaclass? We have already tried extending the abstract metaclass EnumerationLiteral and that did not work either.

Thanks,
Alastair.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Profile issues with Enumerations and literals
« Reply #1 on: September 21, 2015, 08:29:15 am »
1) By design. «enumeration» is not a stereotype but a keyword. It's shown to distinguish the type (Enumeration) from the default rectangle notation type. (Class)

2) I don't think I can provide anything useful on this question. Unless you get a solution posted here I'd recommend sending in a direct support request.