Cannot hide specific stereotype, if multiple stereotypes are used

0 votes
asked Dec 22, 2020 in Question / help by kirchsth (600 points)

I use multiple stereotypes and one stereotype should be displayed as stereotype and the other should change the e.g. color and not displayed. This works if I don't combine both stereotypes. If I use both together, I can only hide both or nothing. E.g. exampleBaseComponent1 should be displayed with <<base>> but not with <<example>> (already represented via color)

Thank you and best regards
Helmut

@startuml
' https://forum.plantuml.net/4282/multiple-stereotypes-on-one-component

' hide stereotype
hide <<example>> stereotype
' hide <<example>><<base>> stereotype

skinparam component {
    BackgroundColor<<example>> Yellow
}

package "Something" {
    [origComponent]
    [baseComponent1]<<base>>
    [exampleComponent1]<<example>>
    [exampleBaseComponent1]<<example>><<base>>
}

origComponent <-U- baseComponent1
origComponent <-U- exampleComponent1
baseComponent1 <-U- exampleBaseComponent1
exampleComponent1 <-U- exampleBaseComponent1
@enduml

exampleBaseComponent with <<example>><<base>>

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.
...