Class HtmlReportHandler
- java.lang.Object
-
- org.fcrepo.migration.validator.report.HtmlReportHandler
-
- All Implemented Interfaces:
ReportHandler
public class HtmlReportHandler extends Object implements ReportHandler
This class is responsible for writing the HTML to disk for a given validation report- Since:
- 2020-12-16
- Author:
- awoods
-
-
Constructor Summary
Constructors Constructor Description HtmlReportHandler(Path outputDir)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)This method write the HTML report for a single objectStringrepositoryLevelReport(ObjectValidationResults objectValidationResults)A hook for processing a repository level validation reportStringvalidationSummary(ValidationResultsSummary validationSummary)This method writes the HTML summary of the entire validation run
-
-
-
Constructor Detail
-
HtmlReportHandler
public HtmlReportHandler(Path outputDir)
Constructor- Parameters:
outputDir- to which the HTML files are written
-
-
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)
This method write the HTML report for a single object- Specified by:
objectLevelReportin interfaceReportHandler- Parameters:
objectValidationResults- An individual object validation report- Returns:
- filename of HTML object 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
-
validationSummary
public String validationSummary(ValidationResultsSummary validationSummary)
This method writes the HTML summary of the entire validation run- Specified by:
validationSummaryin interfaceReportHandler- Parameters:
validationSummary- of this validation run- Returns:
- filename of full report
-
endReport
public void endReport()
Description copied from interface:ReportHandlerA hook indicating the end of a result processing run- Specified by:
endReportin interfaceReportHandler
-
-