Monday 21 August 2023

PlantUML: How to Draw a Lollipop Interface

UML use a "lollipop" to denote an interface, which can be appended to classes and subsystems.

 

Lollipop interface is defined using below symbols.

 

a.   ()-

b.   ()—

c.    -()

 

Example

MyInterface1 ()- MyClass
MyInterface2 ()-- MyClass
MyClass -() MyInterface3

 

lollipopInterface.txt

@startuml

class MyClass

MyInterface1 ()- MyClass
MyInterface2 ()-- MyClass
MyClass -() MyInterface3

@enduml

 

Above snippet generate below diagram.

 


 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment