Package org.verapdf.pdfa.results
Interface ValidationResult
-
public interface ValidationResultCreated as the result of validating a PDF/A document against aValidationProfile. The class encapsulates the following information:- a boolean flag indicating whether the PDF/A document validated complied with ValidationProfile.
- the
PDFAFlavourof the profile used to validate the PDF/A document. - a Set of
TestAssertions representing the results of performing individual tests.
ValidationResultinstance is not guaranteed to carry all of the information generated during validation. While theisCompliant()value MUST reflect the result of validation, individual validator implementations are not obliged to record all, or any individualTestAssertions. Such implementations may choose to only record failed tests, or may be configured to abort validation after a so many failed tests.- Author:
- Carl Wilson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HashMap<RuleId,Integer>getFailedChecks()PDFAFlavourgetPDFAFlavour()ProfileDetailsgetProfileDetails()List<TestAssertion>getTestAssertions()intgetTotalAssertions()ValidationProfilegetValidationProfile()booleanisCompliant()
-
-
-
Method Detail
-
isCompliant
boolean isCompliant()
- Returns:
- true if the PDF/A document complies with the PDF/A specification / flavour it was validated against.
-
getPDFAFlavour
PDFAFlavour getPDFAFlavour()
- Returns:
- the
PDFAFlavourthat identifies the PDF/A specification part and conformance level enforced by the Validator that produced this result.
-
getProfileDetails
ProfileDetails getProfileDetails()
- Returns:
- the
ProfileDetailsidentifying the validation profile used
-
getTotalAssertions
int getTotalAssertions()
- Returns:
- the total number of valdiation checks performed
-
getTestAssertions
List<TestAssertion> getTestAssertions()
- Returns:
- the list of
TestAssertions made during PDF/A validation
-
getValidationProfile
ValidationProfile getValidationProfile()
- Returns:
- validation profile which has been used for generating validation result
-
-