Older way to show generics in a class

0 votes
asked Jul 19 in Wanted features by Fuhrmanator (2,170 points)

I had some diagrams that were showing generics in a class with "<type>" (which is how you'd draw them on a whiteboard). Now, that way is being replaced by a more modern way. This is nice, but I'd like to display it the older way. 

@startuml
skinparam style strictuml
hide empty members
class "coursGroupe:\nArrayList<CoursGroupe>" as g 
@enduml

How can I display this in the older way, e.g., UserDao<User> below: 

commented Jul 19 by Fuhrmanator (2,170 points)
I found a work-around with replacing one of the < or > with its unicode:

class "coursGroupe:\nArrayList<CoursGroupe&#62;" as g

1 Answer

0 votes
answered Jul 24 by plantuml (134,510 points)

We've added a "genericDisplay" parameter.
So with last beta, you can have:

https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0

@startuml
skinparam style strictuml
skinparam genericDisplay old
hide empty members
class "coursGroupe:\nArrayList<CoursGroupe>" as g
@enduml


The parameter name is not perfect : any suggestion welcomed!
 

...