Author Topic: Metatype and profile  (Read 11140 times)

beginner

  • Guest
Metatype and profile
« on: July 12, 2010, 07:42:49 pm »
I stumbled over a strange behavior. My profile defines a stereotype <<Block>> which in turn changes the metatype of the created element to be also "Block". Now I accidentally removed the profile and noticed that the metatype of the class was now simply "class", no longer "Block". This is strange, but maybe intended? I'd expect that once an element is created it keeps all it's properties and doesn't change with a moving profile.

Any ideas?

b.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Metatype and profile
« Reply #1 on: July 12, 2010, 07:54:56 pm »
As with many things in EA, the _metatype is ersatz.

The element is still ONLY a class (or other original metatype) with stereotype defined by the profile.  EA just replaces the word "Class" with the name of the _metatype in various places.

I'd expect this behaviour (and have, indeed, observed it).

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

beginner

  • Guest
Re: Metatype and profile
« Reply #2 on: July 12, 2010, 08:36:34 pm »
I feared so. Probably the best is to ignore metatype and just look for stereotype.

b.