Package org.verapdf.processor.reports
Class Reports
java.lang.Object
org.verapdf.processor.reports.Reports
- Version:
- 0.1 Created 10 Nov 2016:08:12:36
- Author:
- Carl Wilson carlwilson AT github
-
Method Summary
Modifier and TypeMethodDescriptionstatic final BatchSummarycreateBatchSummary(Components.Timer timer, ValidationBatchSummary validationSummary, FeaturesBatchSummary featureSummary, MetadataRepairBatchSummary repairSummary, int totalJobs, int failedToParse, int encrypted, int outOfMemory, int veraExceptions) static final ValidationReportcreateValidationReport(ValidationResult validationResult, boolean logPassed) static final ValidationReportcreateValidationReport(ValidationDetails details, String profileName, String statement, boolean isCompliant, String jobEndStatus) Creates a newValidationReportinstance from the passed parametersstatic final MetadataFixerReportstatic final MetadataFixerReportfromValues(MetadataFixerResult fixerResult) static final ValidationDetailsfromValues(ValidationResult result, boolean logPassedChecks) Creates a newValidationDetailsinstance from the passed parametersstatic final ValidationDetailsfromValues(ValidationResult result, boolean logPassedChecks, int maxFailedChecks) static final ValidationReportvalidationReportFromXml(String xmlSource) Deserialise aValidationReportfrom an XML string
-
Method Details
-
createBatchSummary
public static final BatchSummary createBatchSummary(Components.Timer timer, ValidationBatchSummary validationSummary, FeaturesBatchSummary featureSummary, MetadataRepairBatchSummary repairSummary, int totalJobs, int failedToParse, int encrypted, int outOfMemory, int veraExceptions) - Parameters:
timer- aComponents.Timerinstance which is stopped to measure the duration of the batch processjobs- the number of jobs in the batchfailedJobs- the number o failed jobs in the batchvalid- the number of valid PDF/A documents in the batchinValid- the number of invalid PDF/A documents in the batchvalidExcep- the number of validation jobs that threw exceptionsfeatures- the number of feature extraction jobs run- Returns:
- a new
BatchSummaryinstance created using the passed values
-
createValidationReport
public static final ValidationReport createValidationReport(ValidationDetails details, String profileName, String statement, boolean isCompliant, String jobEndStatus) Creates a newValidationReportinstance from the passed parameters- Parameters:
details- theValidationDetailsinstance to add to the reportprofileName- the name of theValidationProfileused to validation the PDF/Astatement- a String statement, should indicate whether the file was valid or invalidisCompliant- boolean value, set true if PDF/A document complied with the validation profile rules- Returns:
- a new
ValidationReportinstance
-
createValidationReport
public static final ValidationReport createValidationReport(ValidationResult validationResult, boolean logPassed) -
validationReportFromXml
public static final ValidationReport validationReportFromXml(String xmlSource) throws jakarta.xml.bind.JAXBException Deserialise aValidationReportfrom an XML string- Parameters:
xmlSource- a String value which is the XML representation of theValidationReport- Returns:
- a new
ValidationReportinstance deserialised from the source string - Throws:
jakarta.xml.bind.JAXBException- when the passed String is not a validValidationReportrepresentation
-
fromValues
Creates a newValidationDetailsinstance from the passed parameters- Parameters:
result- theValidationResultproduced by the validation tasklogPassedChecks- boolean indicating whether passed checks were logged- Returns:
- a new
ValidationDetailsinstance
-
fromValues
-
fromValues
public static final ValidationDetails fromValues(ValidationResult result, boolean logPassedChecks, int maxFailedChecks) -
fromValues
-