Cannot hide specific stereotype, if multiple stereotypes are used

0 votes
asked Dec 22, 2020 in Question / help by kirchsth (2,270 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>>

commented Mar 3, 2021 by chris (1,740 points)
This is now working
commented Mar 5, 2021 by kirchsth (2,270 points)
Hi @chris,

I tried it but still have the same result on the PlantUML server (see picture in my first question, both <<example>><<base>> are visible).
Did you promoted your source chaneges?

Thank you and best regards
Helmut
commented Mar 6, 2021 by chris (1,740 points)
edited Mar 6, 2021 by chris

Oh, I've just re-read your question. You're trying to combine stereotypes? Is that not just a third stereotype?

Closest I can get you is a label fudge:

Or, slightly nicer:

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