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

templates.view-standardsregistry_docs-macros.ftl Maven / Gradle / Ivy

<#macro renderTags tags>
    <#if tags?has_content>
        <#list tags as tag>
            <#if tag.objectIri?has_content>
            ${tag.label?html}
            <#else>
            ${tag.label?html}
            
        
    


<#macro renderPackage package>

<#if package.description?has_content>${package.description}

<@renderTags tags=package.tags/> <#-- Subpackages --> <#if package.children?has_content>

Packages

<#-- Entities index --> <#if package.entityTypes?has_content>

Entities

back to top
<#-- Entities --> <#list package.entityTypes as entity>

${entity.label?html} <#if entity.extends?has_content> extends ${entity.extends.label?html}<#if entity.isAbstract()> (abstract)

<#if entity.description?has_content>${entity.description?html}<#else>No description available

<@renderTags tags=tagService.getTagsForEntity(entity)/> <#-- Entity attributes -->
<#assign depth = []/> <#list entity.attributes as attribute> <@renderAttribute attribute entity depth/>
Attribute Default Type Constraints Description
back to entities
back to top <#else>

This package does not contain entities

<#if package.children?has_content> <#list package.children as subPackage> <@renderPackage subPackage/> <#macro renderAttribute attribute entity depth> <#assign nextDepth = depth + ["x"]/> <#assign dataType=attribute.type> <#list depth as lvl>  ${attribute.label?html}<#if attribute.isIdAttribute()> (id attribute)<#if attribute.isLabelAttribute()> (label attribute)<#if attribute.lookupAttributeIndex??> (lookup attribute) <#if attribute.defaultValue?has_content>${attribute.defaultValue?html} ${dataType?html}<#if dataType == "CATEGORICAL" || dataType == "CATEGORICAL_MREF" || dataType == "MREF" || dataType == "XREF"> (${attribute.refEntityType.label?html}) <#assign constraints = []> <#if attribute.isNillable()><#assign constraints = constraints + [ "nullable" ] /> <#if attribute.isReadOnly()><#assign constraints = constraints + [ "read-only" ] /> <#if attribute.isUnique()><#assign constraints = constraints + [ "unique" ] /> <#if !attribute.isVisible()><#assign constraints = constraints + [ "hidden" ] /> <#if attribute.isAuto()><#assign constraints = constraints + [ "auto" ] /> <#if attribute.isAggregatable()><#assign constraints = constraints + [ "aggregates" ] /> <#if attribute.range?has_content> <#assign range = "range ["> <#if attribute.range.min?has_content> <#assign range = range + "from " + attribute.range.min> <#if attribute.range.max?has_content> <#assign range = range + " to " + attribute.range.max> <#assign range = range + "]"> <#assign constraints = constraints + [ range ] /> <#list constraints as constraint>${constraint?html}<#if constraint_has_next>, <#if attribute.description?has_content>${attribute.description?html} <#if attribute.type == "COMPOUND"> <#list attribute.children as attributePart> <@renderAttribute attributePart entity nextDepth/> <#assign nextDepth = depth/> <#macro createPackageListItem package>
  • ${package.id?html}
  • <#if package.children?has_content>
    • <#list package.children as subPackage> <@createPackageListItem subPackage/>




  • © 2015 - 2024 Weber Informatics LLC | Privacy Policy