Display XWikiClass UML Diagram

Version 15.1 by Denis Gervalle on 2014/10/07 20:33

cogGenerates nice UML diagram for XWiki Classes of a specific space using plantuml macro
Typesnippet
Category
Developed by

Jeremie Bousquet, Denis Gervalle

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Description

Draws a class diagram with information from XWiki classes defined in a specific space.

Usage

{{xuml/}}

Plantuml macro must be properly installed. Alternatively you can use parameter "debug" = "true" and copy plantuml content somewhere else to generate a diagram.

Parameters definition

NameOptionalAllowed valuesDefault valueDescription
spaceyesSpace nameCurrent space namethe space to look for XWiki classes to draw.
showSheetsyestrue/falsefalseto display or not information about class sheets (displayed as fake "S" classes)
showListsyestrue/falsefalseto display or not information about lists (displayed as enums)
debugyestrue/falsefalseinstead of showing a diagram, shows plantuml source for debugging purposes

Associations are displayed (only for DBList properties having class name filled, so if you fill HQL query, please also specify class name for better display even if redundant).

Sample result:

sample_uml.png

The same with options showLists and showSheets:

sample_uml_full.png

Release Notes

v1.0

Made it a xar packaged macro with parameters.

Dependencies

Dependencies for this extension (jbousque:display-xwikiclass-uml-diagram 1.0):

  • org.xwiki.contrib:xwiki-macro-plantuml 

Get Connected