PlantUmlClassDiagramGenerator icon indicating copy to clipboard operation
PlantUmlClassDiagramGenerator copied to clipboard

Use lines instead of List`1

Open Tvde1 opened this issue 6 years ago • 5 comments
trafficstars

I created a diagram which looked like this: image Everything which is connected goes via List'1. Could there be an option to just use lines like:

ClassA --> "0..*" ClassB

Where "0..*" shows it's a list.

Tvde1 avatar Jul 05 '19 11:07 Tvde1

I would love this too. This is one of the reasons why I still need to "fix" the generated UML Class Diagram :-)

devantler avatar Oct 27 '19 16:10 devantler

does anybody have any solution for this?

emriti avatar Jan 27 '21 14:01 emriti

I would love this feature also. Currently I'm patching the generated files with sed. Examples:

find plantuml/ -name *.puml -exec sed -i -E 's/(.*) --> "(.*)<(.*)>" "List`1"/\1 o-- "0..*" \3/' {} \;
find plantuml/ -name *.puml -exec sed -i -E 's/(.*) o-> "(.*)<(.*)>" "List`1"/\1 o-- "0..*" \3/' {} \;

this will convert

Foo o-> "bars<Bar>" "List`1"

to

Foo o-- "0..*" Bar

bjarnisig avatar Mar 18 '21 10:03 bjarnisig

@bjarnisig thank you for share your solution, it works very well!

calvacode avatar Apr 01 '22 11:04 calvacode

This should also apply to all collections types, such as IList, ICollection, etc ...

ArwynFr avatar Sep 13 '23 09:09 ArwynFr