<<stereotype>> formatting

0 votes
asked Oct 17, 2022 in Bug by grivo (240 points)
recategorized Oct 18, 2022 by grivo

hello there!

i've got a question on stereotypes formatting: why stereotype classes get not only head, but whole body formatted italic? is it UML standard specific thing? or is it some plantuml glitch?

see below

@startuml
' interface's title is marked italic - that's fine
interface MyInterface {
    + x : int = 1
    - z() : void
}


' abstract class's title is marked italic - that's fine too
abstract MyAbstractClass {
    + qaz : float = 134
}


' class's title is not marked - that's fine as well
class MyClass {
    ' some properties and operations may be merked as abstract
    + pA {abstract}
    - p : int = 76876876
    - pFA() {abstract}
    - pF() : int
}


/'
metaclass is not formatted despite it is most abstract thing
in UML
'/
class MyMetaClass <<metaclass>>


/'
when class is marked as some stereotype - whole object gets formatted italic
however, not all stereotype's features should be abstract features, imo,
since stereotype may inject some real functionality into an entity it's applied
onto
'/
class MyStereotype <<stereotype>> {
    + x : int = 8879797
    - qwert() : int
}

@enduml

link to sample

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