Package org.mapstruct.ap.internal.writer
Class ModelIncludeDirective
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.ModelIncludeDirective
-
- All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel
,freemarker.template.TemplateModel
public class ModelIncludeDirective extends Object implements freemarker.template.TemplateDirectiveModel
ATemplateDirectiveModel
which allows to recursively write a graph ofWritable
s, with each element using its own template. Elements are imported into the parent template by using this directive like so:<@includeModel object=myProperty/>
.- Author:
- Gunnar Morling
-
-
Constructor Summary
Constructors Constructor Description ModelIncludeDirective(freemarker.template.Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body)
-
-
-
Method Detail
-
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
-
-