How to specify stereotyped relations?

0 votes
asked Jan 22, 2022 in Question / help by Art
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.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...