Tuesday 1 August 2023

A Guide to Defining Packages in PlantUML

Package can be defined using package keyword.

 

Example

package "java.lang" #lightblue

 

package.txt

@startuml

	package "java.lang" #lightblue {
		interface Appendable
		interface AutoCloseable
		interface Cloneable

		class Boolean
		class System
		class Object
	}

	package "java.util" #F0F0F0{
		interface Collection<E>
		interface List<E>

		class ArrayList<E> implements List
		Object <|-- ArrayList
	}
	
@enduml

Above snippet generate below diagram.



 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment