Package cdc.impex.api.exports
Class VerboseWorkbookExporter
- java.lang.Object
-
- cdc.impex.api.exports.VerboseWorkbookExporter
-
- All Implemented Interfaces:
SheetExporter,WorkbookExporter
public class VerboseWorkbookExporter extends Object implements WorkbookExporter
-
-
Field Summary
Fields Modifier and Type Field Description protected WorkbookExporterdelegate-
Fields inherited from interface cdc.impex.api.exports.WorkbookExporter
QUIET_VOID, VERBOSE_VOID
-
-
Constructor Summary
Constructors Constructor Description VerboseWorkbookExporter(WorkbookExporter delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginExtraction(cdc.issues.api.IssuesHandler<? super ExportIssue> issuesHandler)Invoked to begin an extraction.voidbeginSheetExtraction(SheetTemplate template, cdc.issues.api.IssuesHandler<? super ExportIssue> issuesHandler)Invoked to begin a sheet extraction.voidendExtraction(cdc.issues.api.IssuesHandler<? super ExportIssue> issuesHandler)Invoked to end an extraction.voidendSheetExtraction(SheetTemplate template, cdc.issues.api.IssuesHandler<? super ExportIssue> issuesHandler)Invoked to end a sheet extraction.voidextractRow(ExportRow row, cdc.issues.api.IssuesHandler<? super ExportIssue> issuesHandler)Invoked to extract the current row in current sheet.intgetNumberOfRemainingRows()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cdc.impex.api.exports.SheetExporter
hasMore
-
-
-
-
Field Detail
-
delegate
protected final WorkbookExporter delegate
-
-
Constructor Detail
-
VerboseWorkbookExporter
public VerboseWorkbookExporter(WorkbookExporter delegate)
-
-
Method Detail
-
beginExtraction
public void beginExtraction(cdc.issues.api.IssuesHandler<? super ExportIssue> issuesHandler)
Description copied from interface:WorkbookExporterInvoked to begin an extraction.- Specified by:
beginExtractionin interfaceWorkbookExporter- Parameters:
issuesHandler- The issues handler that should be used by the application to generate new issues.
-
beginSheetExtraction
public void beginSheetExtraction(SheetTemplate template, cdc.issues.api.IssuesHandler<? super ExportIssue> issuesHandler)
Description copied from interface:SheetExporterInvoked to begin a sheet extraction.- Specified by:
beginSheetExtractionin interfaceSheetExporter- Parameters:
template- The sheet template associated to this extraction.issuesHandler- The issues handler that should be used by the application to generate new issues.
-
getNumberOfRemainingRows
public int getNumberOfRemainingRows()
- Specified by:
getNumberOfRemainingRowsin interfaceSheetExporter- Returns:
- The remaining number of rows to extract in current row.
It can be an approximation when
> 0.
WARNING: This must be 0 when there are no more rows to export.
WARNING: This must be a negative number when the number is unknown.
-
extractRow
public void extractRow(ExportRow row, cdc.issues.api.IssuesHandler<? super ExportIssue> issuesHandler)
Description copied from interface:SheetExporterInvoked to extract the current row in current sheet.- Specified by:
extractRowin interfaceSheetExporter- Parameters:
row- The row that will contain extracted data.issuesHandler- The issues handler that should be used by the application to generate new issues.
-
endSheetExtraction
public void endSheetExtraction(SheetTemplate template, cdc.issues.api.IssuesHandler<? super ExportIssue> issuesHandler)
Description copied from interface:SheetExporterInvoked to end a sheet extraction.- Specified by:
endSheetExtractionin interfaceSheetExporter- Parameters:
template- The sheet template associated to this extraction.issuesHandler- The issues handler that should be used by the application to generate new issues.
-
endExtraction
public void endExtraction(cdc.issues.api.IssuesHandler<? super ExportIssue> issuesHandler)
Description copied from interface:WorkbookExporterInvoked to end an extraction.- Specified by:
endExtractionin interfaceWorkbookExporter- Parameters:
issuesHandler- The issues handler that should be used by the application to generate new issues.
-
-