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.
@FunctionalInterface public interface TemplateGenerator
Interface of classes that can generate template files fromSheetTemplates.- Author:
- Damien Carbonne
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidgenerate(File file, SheetTemplate... sheets)Generate a template file.voidgenerate(File file, List<SheetTemplate> sheets)Generate a template file.static voidgenerate(File file, List<String> templateNames, ImpExCatalog catalog, ImpExFactoryFeatures features)
-
-
-
Method Detail
-
generate
void generate(File file, List<SheetTemplate> sheets) throws IOException
Generate a template file.- Parameters:
file- The file that must contain templates.sheets- TheSheetTemplates for which something must be generated.- Throws:
IOException- When an IO error occurs.
-
generate
default void generate(File file, SheetTemplate... sheets) throws IOException
Generate a template file.- Parameters:
file- The file that must contain templates.sheets- 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, ImpExFactoryFeatures features) throws IOException
- Throws:
IOException
-
-