Package cdc.impex.exports
Interface WorkbookExporter
-
- All Superinterfaces:
SheetExporter
- All Known Implementing Classes:
CheckedWorkbookExporter,VerboseWorkbookExporter
public interface WorkbookExporter extends SheetExporter
Interface implemented by classes that can extract workbook data to export.- Author:
- Damien Carbonne
-
-
Field Summary
Fields Modifier and Type Field Description static WorkbookExporterQUIET_VOIDstatic WorkbookExporterVERBOSE_VOID
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default voidbeginExport(cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler)Invoked to notify the beginning of export.default voidendExport(cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler)Invoked to notify the end of export.static WorkbookExporterfromDelegates(WorkbookExporter def, Function<String,SheetExporter> function)Creates a delegating workbook exporter.static WorkbookExporterfromDelegates(WorkbookExporter def, Map<String,SheetExporter> map)Creates a delegating workbook exporter.static WorkbookExporterfromDelegates(Function<String,SheetExporter> function)static WorkbookExporterfromDelegates(Map<String,SheetExporter> map)-
Methods inherited from interface cdc.impex.exports.SheetExporter
beginSheetExport, endSheetExport, exportRow, getNumberOfRemainingRows, hasMore
-
-
-
-
Field Detail
-
QUIET_VOID
static final WorkbookExporter QUIET_VOID
-
VERBOSE_VOID
static final WorkbookExporter VERBOSE_VOID
-
-
Method Detail
-
beginExport
default void beginExport(cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler)
Invoked to notify the beginning of export.- Parameters:
issuesHandler- The issues handler that should be used by the application to generate new issues.
-
endExport
default void endExport(cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler)
Invoked to notify the end of export.- Parameters:
issuesHandler- The issues handler that should be used by the application to generate new issues.
-
fromDelegates
static WorkbookExporter fromDelegates(WorkbookExporter def, Function<String,SheetExporter> function)
Creates a delegating workbook exporter.When the export of a sheet starts, an appropriate sheet exporter is selected, if possible, among
delegates. If no appropriate sheet exporter is found, the default workbook exporter is used. The default will usually ignore things.- Parameters:
def- The default workbook exporter.
It can beQUIET_VOID,VERBOSE_VOID, or any other valid WorkbookExporter.function- The function that maps template names to the associated sheet exporters.- Returns:
- A new WorkbookExporter that delegates export if possible, or use the default workbook exporter otherwise.
-
fromDelegates
static WorkbookExporter fromDelegates(Function<String,SheetExporter> function)
-
fromDelegates
static WorkbookExporter fromDelegates(WorkbookExporter def, Map<String,SheetExporter> map)
Creates a delegating workbook exporter.- Parameters:
def- The default workbook exporter.
It can beQUIET_VOID,VERBOSE_VOID, or any other valid WorkbookExporter.map- The map from template names to the associated sheet exporters.- Returns:
- A new WorkbookExporter that delegates export if possible, or use the default workbook exporter otherwise.
-
fromDelegates
static WorkbookExporter fromDelegates(Map<String,SheetExporter> map)
-
-