-
Notifications
You must be signed in to change notification settings - Fork 22
/
template.txt
46 lines (42 loc) · 1.76 KB
/
template.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#import('text', 'com.nomagic.reportwizard.tools.TextTool')
#import('hrsort', 'com.hiltonroscoe.mdreportext.Sorter')
#import('hrlang', 'com.hiltonroscoe.mdreportext.NLPLanguage')
#set($packages = $array.createArray())
#set($void = $array.addCollection($packages, $Package))
#set($void = $array.addCollection($packages, $SmartPackage))
#foreach ($package in $sorter.sort($packages, "qualifiedName"))
#set($qualifiedName = $package.qualifiedName)
#set ($classList = $array.createArray())
#set ($interfaceList = $array.createArray())
#set ($enumerationList = $array.createArray())
#foreach ($element in $report.getOwnedElementsIncludingAdditional($package, true))
#if ($element.elementType == "class")
#set ($void = $classList.add($element))
#elseif ($element.elementType == "interface")
#set ($void = $interfaceList.add($element))
#elseif ($element.elementType == "enumeration")
#set ($void = $enumerationList.add($element))
#end
#end
<!--
MagicDraw Template for Markdown Glossary
(c) 2019 Hilton Roscoe LLC
-->
# $package.name Glossary
#foreach ($class in $sorter.sort($classList))
#set ($skipWords = $report.getStereotypeProperty($class, "glossaryEntry", "ignoreEntries"))
#[[##]]# <a name="$class.name.replaceAll("\s+","-")"></a>$class.name
$hrlang.runNLP($class.documentation, $class.name, "$NERMappingFile", $skipWords)
#set ($communities = $report.getStereotypeProperty($class, "glossaryEntry", "communities"))
#if($communities)
###foreach ($community in $communities)
##\#[[#]]#$community
###end
#end
#set ($synonyms = $report.getStereotypeProperty($class, "glossaryEntry", "synonyms"))
#if($list.size($synonyms) > 0 && !$list.get($synonyms,0).equals(""))
##[[###]]# synonyms
Synonyms: #foreach($synonym in $sorter.sort($synonyms))`$synonym`#if( $foreach.hasNext ), #end#end
#end
#end
#end