Top Description Constructors Methods
org.apache.pdfbox.preflight.metadata

public Class PDFAIdentificationValidation

extends Object
Class Inheritance
Static Imports
org.apache.pdfbox.preflight.PreflightConstants.ERROR_METADATA_INVALID_PDFA_CONFORMANCE, .PreflightConstants.ERROR_METADATA_INVALID_PDFA_VERSION_ID, .PreflightConstants.ERROR_METADATA_PDFA_ID_MISSING, .PreflightConstants.ERROR_METADATA_WRONG_NS_PREFIX

Class which check if PDF/A Identification Schema contains good information
Author
Germain Costenobel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
protected ValidationResult.ValidationError

Returns:

the validation error.
unexpectedPrefixFoundError
(String prefFound, String prefExpected, String schema)

Return a validationError formatted when a schema has not the expected prefix

public List<ValidationResult.ValidationError>

Returns:

the list of validation errors.
validatePDFAIdentifer
(XMPMetadata
the XMP MetaData.
metadata
)

Check if PDFAIdentification is valid

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PDFAIdentificationValidationback to summary
public PDFAIdentificationValidation()

Method Detail

checkConformanceLevelback to summary
protected void checkConformanceLevel(List<ValidationResult.ValidationError> ve, String value)
checkPartNumberback to summary
protected void checkPartNumber(List<ValidationResult.ValidationError> ve, int value)
unexpectedPrefixFoundErrorback to summary
protected ValidationResult.ValidationError unexpectedPrefixFoundError(String prefFound, String prefExpected, String schema)

Return a validationError formatted when a schema has not the expected prefix

Returns:ValidationResult.ValidationError

the validation error.

validatePDFAIdentiferback to summary
public List<ValidationResult.ValidationError> validatePDFAIdentifer(XMPMetadata metadata) throws ValidationException

Check if PDFAIdentification is valid

Parameters
metadata:XMPMetadata

the XMP MetaData.

Returns:List<ValidationResult.ValidationError>

the list of validation errors.