Author Topic: BUG: Keyword, keyword wherefore art thou keyword?  (Read 2793 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
BUG: Keyword, keyword wherefore art thou keyword?
« on: November 30, 2006, 07:42:09 pm »
If an edge has a defined UML keyword (such as an Information Flow: «flow» - see Analysis Toolbox).  If you subsequently add a stereotype, the keyword disappears.  To "get it back" you have to add an identically named stereotype - which is wrong...

UML keywords are not stereotypes.  If both a keyword and (one or more) stereotype(s) are present, then both must be visible.

The [size=13]UML 2.1 Superstructure (interim)[/size] Specification doesn't seem to be clear on whether they are to be rendered as:
«keyword» «stereotype, stereotype»
or as:
«keyword, stereotype, stereotype»

But I suspect the keyword should always come first.

This needs to be rectified.

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

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: BUG: Keyword, keyword wherefore art thou keywo
« Reply #1 on: November 30, 2006, 08:07:18 pm »
Quote
The [size=13]UML 2.1 Superstructure (interim)[/size] Specification doesn't seem to be clear on whether they are to be rendered as:
«keyword» «stereotype, stereotype»
or as:
«keyword, stereotype, stereotype»


Annex B, p717 says:

Quote
If multiple keywords and/or stereotype names apply to the same model element, they all appear between the same pair of guillemets, separated by commas
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: BUG: Keyword, keyword wherefore art thou keywo
« Reply #2 on: November 30, 2006, 08:31:01 pm »
Thanks for that Neil, that's definitive, but not normative since it doesn't specifiy the order...

I still contend the keyword(s) should come first.

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

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: BUG: Keyword, keyword wherefore art thou keywo
« Reply #3 on: November 30, 2006, 08:37:29 pm »
Quote
Thanks for that Neil, that's definitive, but not normative since it doesn't specifiy the order...

I still contend the keyword(s) should come first.

Paolo

Totally agree!
The Sparx Team
[email protected]