All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.templates.macros.vm Maven / Gradle / Ivy

There is a newer version: 0.17.0
Show newest version
## Pass all string to either #handleText or #handleNonBreakableText (the latter displays  in case value is null)
#macro(handleText $value)#if ($value)$StringEscapeUtils.escapeHtml4($value.toString())#end#end
#macro(handleNonBreakableText $value)#if ($value)
$StringEscapeUtils.escapeHtml4($value.toString())
#else<null>#end#end ## convention: provide macros for type specific hrefs. Makes life a whole lot easier. #macro(href $value) #if ($value) $value #end #end #macro(hrefCapabilityDefinition $capDef) #if ($capDef) $capDef.getId() #end #end #macro(hrefUnitId $unitId) #if ($unitId) $unitId #end #end #macro(hrefCapability $cap) #if ($cap) $cap.getId() #end #end #macro(hrefOrigin $value) #if ($value) $urlUtils.asRelativePath($solutionRootDir.getAbsolutePath(), $value.getAbsolutePath()) #end #end #macro(navbar $id $path) #end #macro(footer)

DCC generated documentation

#end #macro(htmlStart $title $path) $title #set($dotSvg='.svg') #set($baseDir = $generator.getTargetDir() + "/" + $profile.getId()) #set($deploymentProfiles=$generator.filterProfiles($profiles, "DEPLOYMENT")) #set($solutionProfiles=$generator.filterProfiles($profiles, "SOLUTION")) #set($contributionProfiles=$generator.filterProfiles($profiles, "CONTRIBUTION")) #set($baseProfiles=$generator.filterProfiles($profiles, "BASE")) #end #macro(htmlEnd) #end #macro(panelStart $a $title $id)
#end #macro(panelEnd $title)
#end #macro(activeStyle $activeId $id) #if ($id.equals($activeId))font-weight: bold;#end #end #macro(profileNav $title $profiles $activeId) #if ($profiles)

$title

#foreach($p in $profiles)
$p.getId()
#if($p.equals($profile))
 - Profile Overview
 - Unit Reference
 - Capability Reference
 - Capability Definitions
#end #end #end #end #macro(rootContainerStart $id $path $activeId)
#navbar($id, $path) #end #macro(rootContainerEnd $id $path $activeId)
#end #macro(renderSvg $unit) #set($capabilityWidth=220.0) #set($capabilityHeight=30.0) #set($unitHeaderOffset=60) #set($capabilityUnitTopOffsetY=50) #set($unitFooterOffset=10) #set($unitWidth=$capabilityWidth * 2 - 20 * 2 + 5) #set($unitOffsetX=20) #set($unitOffsetY=2) #set($unitTitleOffsetX=$unitOffsetX + 15) #set($unitTitleOffsetY=25.0) #set($capabilityDistance=3) #set($capabilityTextOffsetY=19) #set($requiredCapabilityOffsetX=2) #set($requiredCapabilityTextOffsetX=$requiredCapabilityOffsetX + 10) #set($providedCapabilityOffsetX=$capabilityWidth + 5) #set($providedCapabilityTextOffsetX=$providedCapabilityOffsetX + 10) #set($height = $unitHeaderOffset + $unitFooterOffset + ($capabilityHeight + $capabilityDistance) * $generator.computeHeight($unit)) #set($unitHeaderFillColor="#fdfdfe") #if ($unit.isAbstract()) #set($unitFillColor="#f1f1f2") #set($unitTextStyle="italic") #else #set($unitFillColor="#f1f1f2") #set($unitTextStyle="normal") #end #set($unitStrokeColor="#908f93") #set($unitTextColor="#000000") #set($rcFillColor="#a0fefe") #set($rcStrokeColor="#555555") #set($rcTextColor="#000000") #set($pcFillColor="#fefea0") #set($pcStrokeColor="#555555") #set($pcTextColor="#000000") #set($commandFillColor="#fefefe") #set($commandStrokeColor="#555555") #set($commandTextColor="#000000") $generator.getText($profile, $unit) $generator.getText($profile, $unit) $unit.getId() #set($offset = 50) #set($offset_text = $offset + 19) #foreach($cap in $generator.sortCapabilities($unit.getRequiredCapabilities())) $generator.getText($profile, $cap, true) $cap.getId() #set($offset = $offset + $capabilityHeight + $capabilityDistance) #set($offset_text = $offset_text + $capabilityHeight + $capabilityDistance) #end #set($offset = $capabilityUnitTopOffsetY) #set($offset_text = $offset + $capabilityTextOffsetY) #foreach($cap in $generator.sortCapabilities($unit.getProvidedCapabilities())) $generator.getText($profile, $cap) $cap.getId() #set($offset = $offset + $capabilityHeight + $capabilityDistance) #set($offset_text = $offset_text + $capabilityHeight + $capabilityDistance) #end #set($offset_y = 60 + 3 + 32 * $generator.computeHeight($unit)) #set($offset = 26) #set($offset_text = $offset + 7) #set($offset_y_text = $offset_y + 19) #foreach($cmd in $generator.sortCommands($unit.getCommands())) ## $generator.getText($profile, $unit, $cmd) $cmd.getCommandId() ## #set($offset = $offset + $generator.getCommandWidth($cmd) + 5) #set($offset_text = $offset_text + $generator.getCommandWidth($cmd) + 5) #end #end #macro(renderProfileTable $profiles $showDeploymentId) #if ($showDeploymentId) #end #foreach($profile in $profiles) #if ($showDeploymentId) #if ($showDeploymentId) #end #end
Profile Id DescriptionDeployment Id
$profile.getId() #else #end $profile.getDescription() #handleNonBreakableText($profile.getDeploymentId())
#end ##macro(modalLink $id $text) ## ##end #macro(modalDialog $id $title $src) #if ($src) #end #end