plantcode
plantcode copied to clipboard
Suggestion: create XMI output to open the way to use other tools
In addition to generating code from templates, generate XMI representing the UML diagram. There are many tools that can parse this. See e.g. http://agx.me/ (doc source) and related packages.
That project implements UML profiles to generate various kinds of projects and Python structures (apps using the Pyramid web framework, content types for the Plone CMS, SQLAlchemy classes, etc.) from class diagrams.
If plantuml-code-generator generated UML in XMI format, then the output could be further processed using tools like AGX.
- Here's one that converts XMI statecharts to C code: ufsm.
- Target the .NET Platform: NMF.
- Generate desktop/web prototypes from XMI: U-Fabrik.
- Generate PHP from XMI: php-xmi-tools.
It would also allow sketching diagrams in PlantUML before importing them to more unwieldy full-featured tools.