Sunday, 28 May 2023

PlantUML: Summary of connect symbols in a class diagram

In my previous post, we learned about below symbols.

 

<|--   : Extension

*--    : Composition

o--     : Aggregation

 

Apart from those, following symbols are used to connect various entities in class diagram.

 

<|..

-->

..>

..|>

<--*

#--

x--

}--

+--

^--

 

Find the below working application.

 

connectSymbols.txt

@startuml

title "Different connector symbols"

class1 <|.. class2
class3 --> class4 
class5 ..> class6 
class7 ..|> class8
class9 <--* class10 
class11 #-- class12
class13 x-- class14 
class15 }-- class16 
class17 +-- class18
class19 ^-- class20 
class21 <|-- class22 
class23 *-- class24 
class25 o-- class26

@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment