Package cdc.impex.imports
Interface WorkbookImporter
- All Superinterfaces:
SheetImporter
- All Known Implementing Classes:
CheckedWorkbookImporter,VerboseWorkbookImporter
This interface adds workbook level notifications to
SheetImporter.- Author:
- Damien Carbonne
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidbeginImport(String systemId, cdc.issues.IssuesHandler<cdc.issues.Issue> issuesHandler) Invoked to notify the beginning of import.default voidInvoked to notify the end of import.static WorkbookImporterfromDelegates(WorkbookImporter def, Function<String, SheetImporter> function) Creates a delegating workbook importer.static WorkbookImporterfromDelegates(WorkbookImporter def, Map<String, SheetImporter> map) Creates a delegating workbook importer.static WorkbookImporterfromDelegates(Function<String, SheetImporter> function) static WorkbookImporterfromDelegates(Map<String, SheetImporter> map) Methods inherited from interface cdc.impex.imports.SheetImporter
beginSheetImport, endSheetImport, importHeader, importRow
-
Field Details
-
QUIET_VOID
-
VERBOSE_VOID
-
-
Method Details
-
beginImport
Invoked to notify the beginning of import.- Parameters:
systemId- The system if of the imported data.issuesHandler- The issues handler that should be used by the application to generate new issues.
-
endImport
Invoked to notify the end of import.- Parameters:
systemId- The system if of the imported data.issuesHandler- The issues handler that should be used by the application to generate new issues.
-
fromDelegates
static WorkbookImporter fromDelegates(WorkbookImporter def, Function<String, SheetImporter> function) Creates a delegating workbook importer.When the import of a sheet starts, an appropriate sheet importer is selected, if possible, among
delegates. If no appropriate sheet importer is found, the default workbook importer is used. The default will usually ignore things.- Parameters:
def- The default workbook importer.
It can beQUIET_VOID,VERBOSE_VOID, or any other valid WorkbookImporter.function- The function that maps template names to the associated sheet importers.- Returns:
- A new WorkbookImporter that delegates import if possible, or use the default workbook importer otherwise.
-
fromDelegates
-
fromDelegates
Creates a delegating workbook importer.- Parameters:
def- The default workbook importer.
It can beQUIET_VOID,VERBOSE_VOID, or any other valid WorkbookImporter.map- The map from template names to the associated sheet importers.- Returns:
- A new WorkbookImporter that delegates import if possible, or use the default workbook importer otherwise.
-
fromDelegates
-