Monday 19 June 2023

PlantUML: Add stereotypes to the class

Stereo types are defined with << and  >>

 

stereotypes.txt

@startuml

enum Gender << enum >> {
	MALE
	FEMALE
}

class OrderService << highly_available >> {
	
}

class WebClient <<generate_stub>>{
	
}

class Person <<Metaclass>>{
	
}

@enduml

Above snippet generate below diagram.



 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment