Hi,
I have failed to find any example of using stereotyped relations. All the examples in the language specification use labels, but I would prefer to use stereotypes in some cases. UML supports stereotypes on relationships.
When I use the following syntax
Elem1 ..> Elem2 : <<stereotype>>
The stereotype is shown on the diagram, just like a label, which is what I want.
With the following syntax:
Elem1 ..> Elem2 <<stereotype>> : label
only the label is displayed, but the stereotype can be used to change the line style using skinparam. This syntax is consistent with the stereotypes on other elements like classes or components.
Please advise which syntax is correct and how to ensure that the stereotype label is shown on the diagram, thanks.