Class CsvReportHandler
- java.lang.Object
-
- org.fcrepo.migration.validator.report.CsvReportHandler
-
- All Implemented Interfaces:
ReportHandler
public class CsvReportHandler extends Object implements ReportHandler
Report handler for csv output- Author:
- mikejritter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCsvReportHandler.ValidationResultMixinMixin for csv specific changes
-
Constructor Summary
Constructors Constructor Description CsvReportHandler(Path outputDir, ReportType reportType)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginReport()A hook indicating the start of a result processing runvoidendReport()A hook indicating the end of a result processing runStringobjectLevelReport(ObjectValidationResults objectValidationResults)A hook for processing an object level validation reportStringrepositoryLevelReport(ObjectValidationResults objectValidationResults)A hook for processing a repository level validation reportStringvalidationSummary(ValidationResultsSummary validationSummary)A hook for processing a validation run's summary info.
-
-
-
Constructor Detail
-
CsvReportHandler
public CsvReportHandler(Path outputDir, ReportType reportType)
Constructor- Parameters:
outputDir- the directory to write csv outputsreportType- the report type to generate, only csv or tsv
-
-
Method Detail
-
beginReport
public void beginReport()
Description copied from interface:ReportHandlerA hook indicating the start of a result processing run- Specified by:
beginReportin interfaceReportHandler
-
objectLevelReport
public String objectLevelReport(ObjectValidationResults objectValidationResults)
Description copied from interface:ReportHandlerA hook for processing an object level validation report- Specified by:
objectLevelReportin interfaceReportHandler- Parameters:
objectValidationResults- An individual object validation report- Returns:
- filename of object report
-
validationSummary
public String validationSummary(ValidationResultsSummary validationSummary)
Description copied from interface:ReportHandlerA hook for processing a validation run's summary info.- Specified by:
validationSummaryin interfaceReportHandler- Parameters:
validationSummary- to be processed- Returns:
- filename of full report
-
repositoryLevelReport
public String repositoryLevelReport(ObjectValidationResults objectValidationResults)
Description copied from interface:ReportHandlerA hook for processing a repository level validation report- Specified by:
repositoryLevelReportin interfaceReportHandler- Parameters:
objectValidationResults- An individual validation report- Returns:
- filename of repository report
-
endReport
public void endReport()
Description copied from interface:ReportHandlerA hook indicating the end of a result processing run- Specified by:
endReportin interfaceReportHandler
-
-