@DoNotObfuscate
public final class MultiDocumentValidator
extends java.lang.Object
DocumentValidator
Constructor and Description |
---|
MultiDocumentValidator(java.util.Vector<DocumentValidator> validatorCollection)
This constructor is the entry to all tests belonging to a set of PDF documents.
|
Modifier and Type | Method and Description |
---|---|
MultiDocumentCompliesWithValidator |
compliesWith() |
MultiDocumentValidator |
containsImage(java.io.File imageFile,
PagesToUse pagesToUse)
Deprecated.
|
MultiDocumentValidator |
containsImage(java.io.InputStream imageStream,
PagesToUse pagesToUse)
Deprecated.
|
MultiDocumentValidator |
containsImage(java.lang.String imageFileName,
PagesToUse pagesToUse)
Deprecated.
|
MultiDocumentValidator |
containsOneImageOf(java.awt.image.BufferedImage[] allPossibleImages) |
MultiDocumentValidator |
containsOneImageOf(java.awt.image.BufferedImage[] allPossibleImages,
PagesToUse pagesToUse)
Deprecated.
|
java.util.Vector<DocumentValidator> |
getValdiatorCollection() |
MultiDocumentPropertyValidator |
hasAuthor()
This method checks that each document of the given set of PDF documents
has an author.
|
MultiDocumentBookmarkDetailsValidator |
hasBookmark()
This method verifies that each given PDF document has one or more bookmarks.
|
MultiDocumentBookmarkValidator |
hasBookmarks()
This method verifies that each given PDF document has one ore more bookmarks.
|
MultiDocumentValidator |
hasEncryptionLength(int expectedEncryptionLength)
This method verifies that each document of the given set of
PDF documents is encrypted with the expected key length.
|
MultiDocumentSingleFieldValidator |
hasField(java.lang.String fieldname)
This method verifies that each document of the given set of
PDF documents has a field with the expected name.
|
MultiDocumentAllFieldsValidator |
hasFields()
This method checks that each given PDF has fields.
|
MultiDocumentFontNameValidator |
hasFont()
This method prepares the validation for one font in each given PDF document.
|
MultiDocumentFontValidator |
hasFonts()
This method verifies that each given PDF document has fonts.
|
MultiDocumentFormatValidator |
hasFormat(DocumentFormat expectedFormat)
This method checks that each document of the given set of PDF documents has
the expected page format.
|
MultiDocumentValidator |
hasFormat(DocumentFormat expectedFormat,
PagesToUse pagesToUse)
Deprecated.
|
MultiDocumentImageValidator |
hasImage() |
void |
hasImage(PagesToUse pagesToUse)
Deprecated.
|
void |
hasImage(PagesToUse pagesToUse,
PageRegion region)
Deprecated.
|
MultiDocumentJavaScriptValidator |
hasJavaScript()
This method verifies that each given PDF document has embedded JavaScript.
|
MultiDocumentPropertyValidator |
hasKeywords()
This method checks that each document of the given set of PDF documents
has a keywords.
|
MultiDocumentValidator |
hasLanguageInfo(java.util.Locale expectedLocale)
This method verifies that each document of the given set of
PDF documents has the expected locale.
|
MultiDocumentValidator |
hasLanguageInfo(java.lang.String expectedLocale)
This method verifies that each document of the given set of
PDF documents has the expected locale.
|
MultiDocumentValidator |
hasNoAuthor()
This method verifies that each document of the given set of
PDF documents does not have an author information.
|
MultiDocumentValidator |
hasNoImage()
This method checks, that each document of the given set of PDF documents
do not have text on the given pages.
|
MultiDocumentValidator |
hasNoKeywords()
This method verifies that each document of the given set of
PDF documents does not have keywords.
|
MultiDocumentValidator |
hasNoLanguageInfo()
This method verifies that each document of the given set of
PDF documents does not contain a locale.
|
MultiDocumentValidator |
hasNoProperty(java.lang.String key)
This method verifies that each document of the given set of
PDF documents does not have a property with the given key.
|
MultiDocumentValidator |
hasNoSubject()
This method verifies that each document of the given set of
PDF documents does not have a subject.
|
MultiDocumentValidator |
hasNoText()
This method checks, that each document of the given set of PDF documents
do not have text on the given pages.
|
MultiDocumentValidator |
hasNoTitle()
This method verifies that each document of the given set of PDF documents does not have a title.
|
MultiDocumentValidator |
hasNoXFAData()
Validating that each document of the given set of PDF documents does not have XFA data.
|
MultiDocumentValidator |
hasNoXMPData()
Validating that each document of the given set of PDF documents does not have XMP data.
|
MultiDocumentValidator |
hasNumberOfBookmarks(int expectedNumber)
This method checks that each given PDF documents has the expected number
of bookmarks.
|
MultiDocumentValidator |
hasNumberOfDifferentImages(int expectedNumber) |
MultiDocumentValidator |
hasNumberOfFields(int expectedNumber)
This method verifies that each given PDF document has the expected number
of fields.
|
MultiDocumentValidator |
hasNumberOfFonts(int expectedNumber,
IdentifiedBy filter)
This method checks the number of fonts in each given PDF document.
|
MultiDocumentValidator |
hasNumberOfSignatures(int expectedNumber)
This method verifies that each document of the given set of
PDF documents has the expected number of signatures.
|
MultiDocumentValidator |
hasNumberOfVisibleImages(int expectedNumber) |
void |
hasOwnerPassword(java.lang.String expectedPassword)
This method checks that each given PDF document can be opened with the
password given by the parameter.
|
MultiDocumentPermissionValidator |
hasPermission()
This method prepares the validation of permissions of the current PDF documents.
|
MultiDocumentPropertyValidator |
hasProperty(java.lang.String key)
This method checks that each document of the given set of PDF documents
has the expected key.
|
MultiDocumentSignatureFieldValidator |
hasSignatureField(java.lang.String fieldName) |
MultiAllSignaturesValidator |
hasSignatureFields() |
MultiDocumentPropertyValidator |
hasSubject()
This method checks that each document of the given set of PDF documents
has a subject.
|
MultiDocumentTextValidator |
hasText() |
MultiDocumentTextValidator |
hasText(PagesToUse pagesToUse,
PageRegion region)
Deprecated.
|
MultiDocumentPropertyValidator |
hasTitle()
This method checks that each document of the given set of PDF documents has a title.
|
void |
hasUserPassword(java.lang.String expectedPassword)
This method checks that each given PDF document can be opened with the
password given by the parameter.
|
MultiDocumentVersionValidator |
hasVersion()
This method checks that each documents of the given set of PDF documents
has a version.
|
MultiDocumentXFAValidator |
hasXFAData()
Validating that each document of the given set of PDF documents has XFA data.
|
MultiDocumentXMPValidator |
hasXMPData()
Validating that each document of the given set of PDF documents has XMP data.
|
MultiDocumentZugferdValidator |
hasZugferdData() |
MultiDocumentValidator |
isCertified()
This method verifies that each document of the given set of
PDF documents is certified.
|
MultiDocumentValidator |
isCertifiedFor(CertificationLevel expectedCertificationLevel)
This method verifies that each document of the given set of
PDF documents is certified for the expected level.
|
MultiDocumentValidator |
isLinearizedForFastWebView() |
MultiDocumentValidator |
isSigned()
This method verifies that each document of the given set of
PDF documents is signed.
|
MultiDocumentValidator |
isSignedBy(java.lang.String expectedSignatory) |
MultiDocumentTaggingValidator |
isTagged() |
MultiDocumentValidator |
passedFilter(FilenameFilter filenameFilter)
This methods excludes all files from the following test, whose names matches
the regular expression inside the given filename filter.
|
MultiDocumentValidator |
restrictedTo(PageRegion region)
This method sets a region filter for the following validation process.
|
MultiDocumentValidator |
restrictedTo(PagesToUse pagesToUse)
This method sets a page filter for the following validation process.
|
public MultiDocumentValidator(java.util.Vector<DocumentValidator> validatorCollection)
public java.util.Vector<DocumentValidator> getValdiatorCollection()
public MultiDocumentCompliesWithValidator compliesWith()
@Deprecated @Guarded public MultiDocumentValidator containsImage(java.lang.String imageFileName, PagesToUse pagesToUse)
This method is deprecated because the style of the fluent API changed.
Instead of AssertThat.eachDocument(filenames).containsImage(imageName, pagesToUse)
use AssertThat.eachDocument(filenames).restrictedTo(pagesToUse).hasImage().matching(imageName)
.
@Deprecated @Guarded public MultiDocumentValidator containsImage(java.io.File imageFile, PagesToUse pagesToUse)
This method is deprecated because the style of the fluent API changed.
Instead of AssertThat.eachDocument(filenames).containsImage(imageFile, pagesToUse)
use AssertThat.eachDocument(filenames).restrictedTo(pagesToUse).hasImage().matching(imageFile)
.
@Deprecated @Guarded public MultiDocumentValidator containsImage(java.io.InputStream imageStream, PagesToUse pagesToUse)
This method is deprecated because the style of the fluent API changed.
Instead of AssertThat.eachDocument(filenames).containsImage(imageStream, pagesToUse)
use AssertThat.eachDocument(filenames).restrictedTo(pagesToUse).hasImage().matching(imageStream)
.
@Guarded public MultiDocumentValidator containsOneImageOf(java.awt.image.BufferedImage[] allPossibleImages)
@Deprecated @Guarded public MultiDocumentValidator containsOneImageOf(java.awt.image.BufferedImage[] allPossibleImages, PagesToUse pagesToUse)
This method is deprecated because the style of the fluent API changed.
Instead of AssertThat.eachDocument(filenames).containsOneImageOf(images, pagesToUse)
use AssertThat.eachDocument(filenames).restrictedTo(pagesToUse).hasImage().matchingOneOf(images)
.
@Guarded public MultiDocumentValidator passedFilter(FilenameFilter filenameFilter)
public MultiDocumentPropertyValidator hasAuthor()
public MultiDocumentBookmarkDetailsValidator hasBookmark()
public MultiDocumentBookmarkValidator hasBookmarks()
@Guarded public MultiDocumentValidator hasEncryptionLength(int expectedEncryptionLength)
@Guarded public MultiDocumentSingleFieldValidator hasField(java.lang.String fieldname)
public MultiDocumentAllFieldsValidator hasFields()
When the form does not contain any field, an instance of PDFUnitValidationException will be thrown.
public MultiDocumentFontNameValidator hasFont()
public MultiDocumentFontValidator hasFonts()
@Guarded public MultiDocumentFormatValidator hasFormat(DocumentFormat expectedFormat)
@Deprecated @Guarded public MultiDocumentValidator hasFormat(DocumentFormat expectedFormat, PagesToUse pagesToUse)
This method is deprecated because the style of the fluent API changed.
Instead of AssertThat.eachDocument(filenames).hasFormat(format, pagesToUse)
use AssertThat.eachDocument(filenames).restrictedTo(pagesToUse).hasFormat(format)
.
public MultiDocumentJavaScriptValidator hasJavaScript()
To check whether a JavaScript function belongs to an action, see
JavaScriptActionValidator
JavaScriptActionValidator
public MultiDocumentImageValidator hasImage()
@Deprecated @Guarded public void hasImage(PagesToUse pagesToUse)
This method is deprecated because the style of the fluent API changed.
Instead of AssertThat.eachDocument(filenames).hasImage(pagesToUse)
use AssertThat.eachDocument(filenames).restrictedTo(pagesToUse).hasImage()
.
@Deprecated @Guarded public void hasImage(PagesToUse pagesToUse, PageRegion region)
This method is deprecated because the style of the fluent API changed.
Instead of AssertThat.eachDocument(filenames).hasImage(pagesToUse, region)
use AssertThat.eachDocument(filenames).restrictedTo(pagesToUse).restrictedTo(region).hasImage()
.
public MultiDocumentValidator hasNoImage()
An exceptions is thrown, when text was found.
public MultiDocumentPropertyValidator hasKeywords()
@Guarded public MultiDocumentValidator hasLanguageInfo(java.lang.String expectedLocale)
@Guarded public MultiDocumentValidator hasLanguageInfo(java.util.Locale expectedLocale)
public MultiDocumentValidator hasNoAuthor()
public MultiDocumentValidator hasNoKeywords()
public MultiDocumentValidator hasNoLanguageInfo()
@Guarded public MultiDocumentValidator hasNoProperty(java.lang.String key)
public MultiDocumentValidator hasNoSubject()
public MultiDocumentValidator hasNoText()
An exceptions is thrown, when text was found.
public MultiDocumentValidator hasNoTitle()
public MultiDocumentValidator hasNoXFAData()
public MultiDocumentValidator hasNoXMPData()
It makes sense to return void, because there are no data to analyze further.
@Guarded public MultiDocumentValidator hasNumberOfBookmarks(int expectedNumber)
@Guarded public MultiDocumentValidator hasNumberOfDifferentImages(int expectedNumber)
@Guarded public MultiDocumentValidator hasNumberOfFields(int expectedNumber)
@Guarded public MultiDocumentValidator hasNumberOfFonts(int expectedNumber, IdentifiedBy filter)
@Guarded public MultiDocumentValidator hasNumberOfSignatures(int expectedNumber)
@Guarded public MultiDocumentValidator hasNumberOfVisibleImages(int expectedNumber)
@Guarded public void hasOwnerPassword(java.lang.String expectedPassword)
public MultiDocumentPermissionValidator hasPermission()
@Guarded public MultiDocumentPropertyValidator hasProperty(java.lang.String key)
@Guarded public MultiDocumentSignatureFieldValidator hasSignatureField(java.lang.String fieldName)
public MultiAllSignaturesValidator hasSignatureFields()
public MultiDocumentPropertyValidator hasSubject()
public MultiDocumentTextValidator hasText()
@Deprecated @Guarded public MultiDocumentTextValidator hasText(PagesToUse pagesToUse, PageRegion region)
This method is deprecated because the style of the fluent API changed.
Instead of AssertThat.eachDocument(filenames).hasText(pagesToUse, region)
use AssertThat.eachDocument(filenames).restrictedTo(pagesToUse).restrictedTo(region).hasText()
.
public MultiDocumentPropertyValidator hasTitle()
@Guarded public void hasUserPassword(java.lang.String expectedPassword)
public MultiDocumentVersionValidator hasVersion()
public MultiDocumentXFAValidator hasXFAData()
public MultiDocumentXMPValidator hasXMPData()
public MultiDocumentZugferdValidator hasZugferdData()
public MultiDocumentValidator isCertified()
@Guarded public MultiDocumentValidator isCertifiedFor(CertificationLevel expectedCertificationLevel)
public MultiDocumentValidator isLinearizedForFastWebView()
public MultiDocumentValidator isSigned()
@Guarded public MultiDocumentValidator isSignedBy(java.lang.String expectedSignatory)
public MultiDocumentTaggingValidator isTagged()
@Guarded public MultiDocumentValidator restrictedTo(PagesToUse pagesToUse)
@Guarded public MultiDocumentValidator restrictedTo(PageRegion region)
Copyright (C) PDFUnit.com. See here for license.