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 ATemplateDirectiveModelwhich allows to recursively write a graph ofWritables, 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 SummaryConstructors Constructor Description ModelIncludeDirective(freemarker.template.Configuration configuration)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body)
 
- 
- 
- 
Method Detail- 
executepublic void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException- Specified by:
- executein interface- freemarker.template.TemplateDirectiveModel
- Throws:
- freemarker.template.TemplateException
- IOException
 
 
- 
 
-