fj_doc_lib_autodoc.template.autodoc_macro.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fj-doc-lib-autodoc Show documentation
Show all versions of fj-doc-lib-autodoc Show documentation
API for generating documentation for Venus Project
<#macro handleMultiElementOccurs multiElement>
<#if multiElement.content.minOccurs?? || multiElement.content.maxOccurs??>[${multiElement.content.minOccurs}-${multiElement.content.maxOccurs}]#if>
#macro>
<#macro handleMultiElement multiElement separator>
<#if multiElement.xsdElements??>( <#list multiElement.xsdElements as element><#if element?index != 0>${separator} #if>${element.rawName} #list>)<@handleMultiElementOccurs multiElement=multiElement/> #if>
<#if multiElement.autodocChoices??><#list multiElement.autodocChoices as current><@handleMultiElement multiElement=current separator=' | '/>#list>#if>
<#if multiElement.autodocSequence??><#list multiElement.autodocSequence as current><@handleMultiElement multiElement=current separator=' , '/>#list>#if>
#macro>
<#macro handleTypeChildren autodocType>
<#if autodocType.choice??><@handleMultiElement multiElement=autodocType.choice separator=' | '/>#if>
<#if autodocType.sequence??><@handleMultiElement multiElement=autodocType.sequence separator=' , '/>#if>
#macro>