We want to add a special description if the UML class is abstract. We will use an if tag to conditionnaly insert a static text:
...
Classes
[#foreach class in model.getInstances("Class")]
Class
${class.name}
Description
[#foreach comment in class.ownedComment]
${comment.body}
[/#foreach]
[#if class.isAbstract]This is an abstract class[/#if]
[/#foreach]
Save the doc template, relaunch the generation and open the file result.xml:
Introduction
This document is generated using MDWorkbench.
Classes
Class IdentifiedElement
Description
An element that can be identified using an int
This is an abstract class