Class PDFAIdentificationValidation
java.lang.Object
org.apache.pdfbox.preflight.metadata.PDFAIdentificationValidation
Class which check if PDF/A Identification Schema contains good information
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
checkPartNumber
(List<ValidationResult.ValidationError> ve, int value) protected ValidationResult.ValidationError
unexpectedPrefixFoundError
(String prefFound, String prefExpected, String schema) Return a validationError formatted when a schema has not the expected prefixvalidatePDFAIdentifer
(XMPMetadata metadata) Check if PDFAIdentification is valid
-
Constructor Details
-
PDFAIdentificationValidation
public PDFAIdentificationValidation()
-
-
Method Details
-
validatePDFAIdentifer
public List<ValidationResult.ValidationError> validatePDFAIdentifer(XMPMetadata metadata) throws ValidationException Check if PDFAIdentification is valid- Parameters:
metadata
- the XMP MetaData.- Returns:
- the list of validation errors.
- Throws:
ValidationException
-
unexpectedPrefixFoundError
protected ValidationResult.ValidationError unexpectedPrefixFoundError(String prefFound, String prefExpected, String schema) Return a validationError formatted when a schema has not the expected prefix- Parameters:
prefFound
-prefExpected
-schema
-- Returns:
- the validation error.
-
checkConformanceLevel
-
checkPartNumber
-