| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ValidationResult. | Returns: the generated validation errorthe concerned property target, String the XMP schema which can't be found schema)Return a formatted validation error when a specific metadata schema can't be found |
| protected ValidationResult. | Returns: the generated validation errorthe concerned property target, String comments about the XMP property details)Return a formatted validation error when a specific XMP property can't be found |
| protected void | analyzeAuthorProperty(PDDocumentInformation
Document Information Dictionary dico, DublinCoreSchema Dublin Core Schema dc, List<ValidationResult.The list of validation errors veAnalyze if Author(s) embedded in Document Information dictionary and in XMP properties are synchronized |
| protected void | analyzeCreationDateProperty(PDDocumentInformation
Document Information Dictionary dico, XMPBasicSchema XMP Basic Schema xmp, List<ValidationResult.The list of validation errors veAnalyze if the CreationDate embedded in Document Information dictionary and in XMP properties are synchronized |
| protected void | analyzeCreatorToolProperty(PDDocumentInformation
Document Information Dictionary dico, XMPBasicSchema XMP Basic Schema xmp, List<ValidationResult.The list of validation errors veAnalyze if the creator tool embedded in Document Information dictionary and in XMP properties are synchronized |
| protected void | analyzeKeywordsProperty(PDDocumentInformation
Document Information Dictionary dico, AdobePDFSchema PDF Schema pdf, List<ValidationResult.The list of validation errors veAnalyze if Keyword(s) embedded in Document Information dictionary and in XMP properties are synchronized |
| protected void | analyzeModifyDateProperty(PDDocumentInformation
Document Information Dictionary dico, XMPBasicSchema XMP Basic Schema xmp, List<ValidationResult.The list of validation errors veAnalyze if the ModifyDate embedded in Document Information dictionary and in XMP properties are synchronized |
| protected void | analyzeProducerProperty(PDDocumentInformation
Document Information Dictionary dico, AdobePDFSchema PDF Schema pdf, List<ValidationResult.The list of validation errors veAnalyze if Producer embedded in Document Information dictionary and in XMP properties are synchronized |
| protected void | analyzeSubjectProperty(PDDocumentInformation
Document Information Dictionary dico, DublinCoreSchema Dublin Core Schema dc, List<ValidationResult.The list of validation errors veAnalyze if Subject(s) embedded in Document Information dictionary and in XMP properties are synchronized |
| protected void | analyzeTitleProperty(PDDocumentInformation
the Document Information Dictionary. dico, DublinCoreSchema the Dublin Core Schema. dc, List<ValidationResult.the list of validation errors. veAnalyze if Title embedded in Document Information dictionary and in XMP properties are synchronized |
| protected ValidationResult. | Returns: the generated validation errorthe concerned property target, String comments about the XMP property details)Return a formatted validation error when a specific XMP property has the wrong type. |
| private boolean | Returns: the validation resultVerify if the date string has time zone information. |
| private boolean | Returns: true if the date format is assumed to be valid, false if not.the date item that is to be checked. item)Verifies that a date item is a COSString and has the format "D:YYYYMMDDHHmmSSOHH'mm'", where D:YYYY is mandatory and the next fields optional, but only if all of their preceding fields are also present. |
| private String | Returns: the stripped stringto be stripped string)A given string from the DocumentInformation dictionary may have some trailing Nul values which have to be stripped. |
| protected ValidationException | Returns: the generated exceptionthe name of the schema target, Throwable the raised IOException cause)Return an exception formatted on IOException when accessing on metadata schema |
| protected ValidationResult. | Returns: the generated validation error.Return a validationError formatted when a schema has not the expected prefix |
| protected ValidationResult. | Returns: the generated validation errorthe concerned property target)Return a formatted validation error when metadata are not synchronized |
| public List | Returns: List of validation errorsthe PDF Document document, XMPMetadata the XMP MetaData metadata)Check if document information entries and XMP information are synchronized |
| SynchronizedMetaDataValidation | back to summary |
|---|---|
| public SynchronizedMetaDataValidation() | |
| absentSchemaMetaDataError | back to summary |
|---|---|
| protected ValidationResult. Return a formatted validation error when a specific metadata schema can't be found
| |
| absentXMPPropertyError | back to summary |
|---|---|
| protected ValidationResult. Return a formatted validation error when a specific XMP property can't be found
| |
| analyzeAuthorProperty | back to summary |
|---|---|
| protected void analyzeAuthorProperty(PDDocumentInformation dico, DublinCoreSchema dc, List<ValidationResult. Analyze if Author(s) embedded in Document Information dictionary and in XMP properties are synchronized
| |
| analyzeCreationDateProperty | back to summary |
|---|---|
| protected void analyzeCreationDateProperty(PDDocumentInformation dico, XMPBasicSchema xmp, List<ValidationResult. Analyze if the CreationDate embedded in Document Information dictionary and in XMP properties are synchronized
| |
| analyzeCreatorToolProperty | back to summary |
|---|---|
| protected void analyzeCreatorToolProperty(PDDocumentInformation dico, XMPBasicSchema xmp, List<ValidationResult. Analyze if the creator tool embedded in Document Information dictionary and in XMP properties are synchronized
| |
| analyzeKeywordsProperty | back to summary |
|---|---|
| protected void analyzeKeywordsProperty(PDDocumentInformation dico, AdobePDFSchema pdf, List<ValidationResult. Analyze if Keyword(s) embedded in Document Information dictionary and in XMP properties are synchronized
| |
| analyzeModifyDateProperty | back to summary |
|---|---|
| protected void analyzeModifyDateProperty(PDDocumentInformation dico, XMPBasicSchema xmp, List<ValidationResult. Analyze if the ModifyDate embedded in Document Information dictionary and in XMP properties are synchronized
| |
| analyzeProducerProperty | back to summary |
|---|---|
| protected void analyzeProducerProperty(PDDocumentInformation dico, AdobePDFSchema pdf, List<ValidationResult. Analyze if Producer embedded in Document Information dictionary and in XMP properties are synchronized
| |
| analyzeSubjectProperty | back to summary |
|---|---|
| protected void analyzeSubjectProperty(PDDocumentInformation dico, DublinCoreSchema dc, List<ValidationResult. Analyze if Subject(s) embedded in Document Information dictionary and in XMP properties are synchronized
| |
| analyzeTitleProperty | back to summary |
|---|---|
| protected void analyzeTitleProperty(PDDocumentInformation dico, DublinCoreSchema dc, List<ValidationResult. Analyze if Title embedded in Document Information dictionary and in XMP properties are synchronized
| |
| badFieldXMPPropertyError | back to summary |
|---|---|
| protected ValidationResult. Return a formatted validation error when a specific XMP property has the wrong type.
| |
| hasTimeZone | back to summary |
|---|---|
| private boolean hasTimeZone(Object date) Verify if the date string has time zone information. This method doesn't do a complete parsing as this is a helper AFTER a date has proven to be valid
| |
| isValidPDFDateFormat | back to summary |
|---|---|
| private boolean isValidPDFDateFormat(COSBase item) Verifies that a date item is a COSString and has the format "D:YYYYMMDDHHmmSSOHH'mm'", where D:YYYY is mandatory and the next fields optional, but only if all of their preceding fields are also present. This needs to be done because the other date utilities are too lenient.
| |
| removeTrailingNul | back to summary |
|---|---|
| private String removeTrailingNul(String string) A given string from the DocumentInformation dictionary may have some trailing Nul values which have to be stripped. | |
| schemaAccessException | back to summary |
|---|---|
| protected ValidationException schemaAccessException(String target, Throwable cause) Return an exception formatted on IOException when accessing on metadata schema
| |
| unexpectedPrefixFoundError | back to summary |
|---|---|
| protected ValidationResult. Return a validationError formatted when a schema has not the expected prefix
| |
| unsynchronizedMetaDataError | back to summary |
|---|---|
| protected ValidationResult. Return a formatted validation error when metadata are not synchronized
| |
| validateMetadataSynchronization | back to summary |
|---|---|
| public List Check if document information entries and XMP information are synchronized
| |