Thursday 17 August 2023

Automatic Namespace Creation in PlantUML

A namespace is created automatically based on the class, interface, enum names.

autoNamespaceCreation.txt 

@startuml

	class java.lang.Object
	class java.lang.System

	class java.util.Set
	class java.util.HashSet

	java.util.Set <|-- java.util.HashSet

@enduml

 

Above snippet generate below diagram.

 

 


 

You can disable automatic namespace creation using the command ‘set namespaceSeparator none’.

 

disableAutoNamespaceCreation.txt

@startuml

	set namespaceSeparator none
	
	class java.lang.Object
	class java.lang.System

	class java.util.Set
	class java.util.HashSet

	java.util.Set <|-- java.util.HashSet

@enduml

 

Above snippet generate below diagram.


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment