Class DisplayQualificationStructureDirective
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.freemarker.qualificationstructure.DisplayQualificationStructureDirective
- All Implemented Interfaces:
Nice2TemplateDirective
,freemarker.template.TemplateDirectiveModel
,freemarker.template.TemplateModel
public class DisplayQualificationStructureDirective
extends Object
implements Nice2TemplateDirective
used to easily display qualification values from
QualificationStructureMethod
in the form of QualificationEntityModel
a QualificationEntityModel
must be passed as the structure
parameter
the body of the directive is executed for the given QualificationEntityModel
and its children
the QualificationEntityModel
is available under the variable qualification
steps through the entire tree by default, checking if the node was defined as visible in report
this can be adjusted with the following 3 parameters
startLevel
- the level to start at, previous levels will be ignored
endLevel
- the level to end at, all later levels will be ignored
ignoreVisibleFlag
- do not check if a node is defined as visible in report-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DisplayQualificationStructureDirective
public DisplayQualificationStructureDirective()
-
-
Method Details
-
execute
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException - Specified by:
execute
in interfacefreemarker.template.TemplateDirectiveModel
- Throws:
freemarker.template.TemplateException
IOException
-