Package cdc.impex.templates
Interface TemplateGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface of classes that can generate template files from
SheetTemplates.- Author:
- Damien Carbonne
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidgenerate(File file, SheetTemplateInstance... templateInstances) Generate a template file.voidgenerate(File file, List<SheetTemplateInstance> templateInstances) Generate a template file.static voidgenerate(File file, List<String> templateNames, ImpExCatalog catalog, Function<SheetTemplate, SheetTemplateInstance> instancier, ImpExFactoryFeatures features)
-
Method Details
-
generate
Generate a template file.- Parameters:
file- The file that must contain templates.templateInstances- TheSheetTemplateInstances for which something must be generated.- Throws:
IOException- When an IO error occurs.
-
generate
Generate a template file.- Parameters:
file- The file that must contain templates.templateInstances- TheSheetTemplates for which something must be generated.- Throws:
IOException- When an IO error occurs.
-
generate
static void generate(File file, List<String> templateNames, ImpExCatalog catalog, Function<SheetTemplate, SheetTemplateInstance> instancier, ImpExFactoryFeatures features) throws IOException- Throws:
IOException
-