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

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

The newest version!
<#macro renderTags tags>
	<#if tags?has_content>
		<#list tags as tag>
			<#if tag.object.iri?has_content>
				${tag.object.label?html}
			<#else>
				${tag.object.label?html}
			
		
	


<#macro renderPackage package>
    
    

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

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

Packages

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

Entities

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

${entity.label?html}<#if entity.extends?has_content> extends ${entity.extends.label?html}<#if entity.abstract> (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.subPackages?has_content> <#list package.subPackages as subPackage> <@renderPackage subPackage/> <#macro renderAttribute attribute entity depth> <#assign nextDepth = depth + ["x"]/> <#assign dataType=attribute.dataType.enumType> <#list depth as lvl> ${attribute.label?html}<#if entity.idAttribute?? && entity.idAttribute.name == attribute.name> (id attribute)<#if entity.labelAttribute?? && entity.labelAttribute.name == attribute.name> (label attribute)<#list entity.lookupAttributes as lookupAttribute><#if lookupAttribute.name == attribute.name> (lookup attribute)<#break> <#if attribute.defaultValue?has_content>${attribute.defaultValue?html} ${dataType?html}<#if dataType == "CATEGORICAL" || dataType == "CATEGORICAL_MREF" || dataType == "MREF" || dataType == "XREF"> (${attribute.refEntity.label?html}) <#assign constraints = []> <#if attribute.nillable><#assign constraints = constraints + [ "nillable" ] /> <#if attribute.readonly><#assign constraints = constraints + [ "read-only" ] /> <#if attribute.unique><#assign constraints = constraints + [ "unique" ] /> <#if !attribute.visible><#assign constraints = constraints + [ "hidden" ] /> <#if attribute.auto><#assign constraints = constraints + [ "auto" ] /> <#if attribute.aggregateable><#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.dataType.enumType == "COMPOUND"> <#list attribute.attributeParts as attributePart> <@renderAttribute attributePart entity nextDepth/> <#assign nextDepth = depth/> <#macro createPackageListItem package>
  • ${package.name?html}
  • <#if package.subPackages?has_content>
    • <#list package.subPackages as subPackage> <@createPackageListItem subPackage/>




  • © 2015 - 2025 Weber Informatics LLC | Privacy Policy