Book a Demo

Author Topic: Stereotypes with same name and other metaclass  (Read 3176 times)

clicht

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Stereotypes with same name and other metaclass
« on: September 08, 2011, 12:48:12 am »
Is it possible to define in one MTA profile two stereotypes with the same name, but with other realtion to metaclass.

I want to define a Stereotype "MyStereotype" as a extension of the metaclass "Attribute" and a second stereotype with the same name as a extension of the metaclass "Class".

Currently it is not working.
Both are included in the Profile export.
But after MDG-Technology file creation only the firts is inculded in the XML.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Stereotypes with same name and other metaclass
« Reply #1 on: September 08, 2011, 09:06:34 am »
If you try to define more than one «stereotype» class with the same name in the same profile, the profile save command will only process the first one it finds and ignore the rest.

However, you can define a stereotype that extends multiple metaclasses (that is, one «stereotype» class with multiple outgoing «extends» associations to multiple «metaclass» classes).
The Sparx Team
[email protected]