Each processor is a specialized version of a graphical engine. UmlWriter version 1.0.0 is able to render only two diagram syntaxes :
But you are free to make your own. Here is the class diagram of processors architecture built with PlantUML processor
![]() | |
How To Build It. With the CLI mode, use the umlwriter command. $ umlwriter diagram:render:namespace --processor=plantuml /path/to/umlwriter Bartlett\UmlWriter\Processor Output return the PlantUML diagram syntax, that you may redirect directly to a file Then build a $ java -jar plantuml.jar -Tpng /path/to/puml_file -o /path/to/ouput/dir |
Any new processor must implement the Bartlett\UmlWriter\Processor\ProcessorInterface
interface.
And to avoid to implement again and again the same methods, you should used
the abstract Bartlett\UmlWriter\Processor\AbstractProcessor
class, that will do
the job for you.
There are three methods to implement :
renderClass()
that is in charge of return diagram syntax of a single class and its direct dependencies.
renderNamespace()
that is in charge of return diagram syntax of a single namespace and all its objects.
render()
that is in charge of return diagram syntax of all namespaces and objects.