Book a Demo

Author Topic: Problem with the Stereotype representation  (Read 3140 times)

Cole

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Problem with the Stereotype representation
« on: May 16, 2019, 06:24:15 pm »
Hello,

I'm just facing the problem that my representation of certain elements doesn't quite fit. I create enumeration type elements with "Aufzählungstyp" as stereotype. Unfortunately: the element is displayed to me as <<enumeration, Aufzählungstyp>> in the diagram.

I'm sure I've removed all the other stereotypes, but I can't explain the problem. Is there another way to remove the "enumeration" and to keep "Aufzählungstyp" in the representation?

Many greetings,
Cole

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Problem with the Stereotype representation
« Reply #1 on: May 16, 2019, 06:53:41 pm »
Hello,

I'm just facing the problem that my representation of certain elements doesn't quite fit. I create enumeration type elements with "Aufzählungstyp" as a stereotype. Unfortunately: the element is displayed to me as <<enumeration, Aufzählungstyp>> in the diagram.

I'm sure I've removed all the other stereotypes, but I can't explain the problem. Is there another way to remove the "enumeration" and to keep "Aufzählungstyp" in the representation?

Many greetings,
Cole
Hi Cole,

Your problem is that enumeration is NOT a stereotype, but a keyword.  From the UML standard:
An Enumeration is similarly designated. The name of the Enumeration is placed in the upper compartment with the
keyword «enumeration» above or before the name.


Out of the box, you can't remove it (IIRC).

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

Cole

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Problem with the Stereotype representation
« Reply #2 on: May 16, 2019, 07:18:09 pm »
All right, I guess there's nothing you can do. Thank you very much for the quick answer.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Problem with the Stereotype representation
« Reply #3 on: May 17, 2019, 12:40:07 am »
I you insist on using German (argh, like during my Siemens time) you need to create your own meta type with an MDG. But, as Paolo said, <<enumeration>> is a keyword. Your Aufzählung will be something else than an enumeration. So for example the attributes will show a visibility if you derive it from a class meta type.

q.