Chapter 10. Architecture overview

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

[Tip]

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 png image.

$ java -jar plantuml.jar -Tpng /path/to/puml_file -o /path/to/ouput/dir
processor-guide__1.png

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 :