Class PDFAIdentificationValidation
- java.lang.Object
-
- org.apache.pdfbox.preflight.metadata.PDFAIdentificationValidation
-
public class PDFAIdentificationValidation extends java.lang.Object
Class which check if PDF/A Identification Schema contains good information
-
-
Constructor Summary
Constructors Constructor Description PDFAIdentificationValidation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkConformanceLevel(java.util.List<ValidationResult.ValidationError> ve, java.lang.String value)
protected void
checkPartNumber(java.util.List<ValidationResult.ValidationError> ve, int value)
protected ValidationResult.ValidationError
unexpectedPrefixFoundError(java.lang.String prefFound, java.lang.String prefExpected, java.lang.String schema)
Return a validationError formatted when a schema has not the expected prefixjava.util.List<ValidationResult.ValidationError>
validatePDFAIdentifer(XMPMetadata metadata)
Check if PDFAIdentification is valid
-
-
-
Method Detail
-
validatePDFAIdentifer
public java.util.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(java.lang.String prefFound, java.lang.String prefExpected, java.lang.String schema)
Return a validationError formatted when a schema has not the expected prefix- Parameters:
prefFound
-prefExpected
-schema
-- Returns:
- the validation error.
-
checkConformanceLevel
protected void checkConformanceLevel(java.util.List<ValidationResult.ValidationError> ve, java.lang.String value)
-
checkPartNumber
protected void checkPartNumber(java.util.List<ValidationResult.ValidationError> ve, int value)
-
-