Saturday, 20 May 2023

PlantUML: Working with class diagrams

Class diagrams are the core building blocks in object-oriented modelling and represent the static view of a system.

 

Following snippet describes different elements provided by PlantUML.

 

classDiagramElements.txt

@startuml

interface MyInterface

abstract MyAbstractClass1
abstract class MyAbstractClass2

class MyClass

entity MyEntity

enum MyEnum

annotation MyAnnotation

circle MyCircle
() MyCircleShortForm

diamond MyDiamond
<> MyDiamondShortForm

@enduml

 Above snippet generates below diagram.

 


  

Previous                                                    Next                                                    Home

No comments:

Post a Comment