public final class Reports extends Object
| Modifier and Type | Method and Description |
|---|---|
static BatchSummary |
createBatchSummary(Components.Timer timer,
ValidationBatchSummary validationSummary,
FeaturesBatchSummary featureSummary,
MetadataRepairBatchSummary repairSummary,
int totalJobs,
int failedToParse,
int encrypted) |
static ValidationReport |
createValidationReport(ValidationDetails details,
String profileName,
String statement,
boolean isCompliant)
Creates a new
ValidationReport instance from the passed
parameters |
static MetadataFixerReport |
fromValues(MetadataFixerResult fixerResult) |
static MetadataFixerReport |
fromValues(String status,
int fixCount,
List<String> fixes,
List<String> errors) |
static ValidationDetails |
fromValues(ValidationResult result,
boolean logPassedChecks,
int maxFailedChecks)
Creates a new
ValidationDetails instance from the passed
parameters |
static ValidationReport |
validationReportFromXml(String xmlSource)
Deserialise a
ValidationReport from an XML string |
public static final BatchSummary createBatchSummary(Components.Timer timer, ValidationBatchSummary validationSummary, FeaturesBatchSummary featureSummary, MetadataRepairBatchSummary repairSummary, int totalJobs, int failedToParse, int encrypted)
timer - a Components.Timer instance
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 runBatchSummary instance created using the passed
valuespublic static final ValidationReport createValidationReport(ValidationDetails details, String profileName, String statement, boolean isCompliant)
ValidationReport instance from the passed
parametersdetails - the ValidationDetails instance to add to the reportprofileName - the name of the ValidationProfile used 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 rulesValidationReport instancepublic static final ValidationReport validationReportFromXml(String xmlSource) throws JAXBException
ValidationReport from an XML stringxmlSource - a String value which is the XML representation of the
ValidationReportValidationReport instance deserialised from the
source stringJAXBException - when the passed String is not a valid
ValidationReport representationpublic static final ValidationDetails fromValues(ValidationResult result, boolean logPassedChecks, int maxFailedChecks)
ValidationDetails instance from the passed
parametersresult - the ValidationResult produced by the validation tasklogPassedChecks - boolean indicating whether passed checks were loggedmaxFailedChecks - in that records the max failed checks limit appliedValidationDetails instancepublic static final MetadataFixerReport fromValues(String status, int fixCount, List<String> fixes, List<String> errors)
public static final MetadataFixerReport fromValues(MetadataFixerResult fixerResult)
Copyright © 2015–2021 The veraPDF Consortium. All rights reserved.