Package | Description |
---|---|
com.pdfunit.validators |
Classes implementing validations on specific topics of PDF.
|
Modifier and Type | Method and Description |
---|---|
BookmarkValidator |
BookmarkValidator.hasBookmarks()
This method does what the name suggests.
|
BookmarkValidator |
DocumentValidator.hasBookmarks()
This method verifies that a PDF document has one ore more bookmarks.
|
BookmarkValidator |
BookmarkValidator.matchingXML(java.io.File xmlFile)
This method compares the bookmarks internally with the file given by the parameter.
|
BookmarkValidator |
BookmarkValidator.matchingXML(java.lang.String filenameXML)
This method compares the bookmarks internally with the file given by the parameter.
|
BookmarkValidator |
BookmarkValidator.matchingXPath(XPathExpression xpath)
This method extracts the bookmarks internally and runs the XPath expression
against it.
|
protected BookmarkValidator |
BookmarkValidator.matchingXPath(XPathExpression xpath,
IPDFUnitMessage errorMessage)
This method evaluates whether a given xpath expression matches to the bookmark data
which are taken from the current document.
|
BookmarkValidator |
BookmarkDetailsValidator.withLabel(java.lang.String expectedLabel)
Validating an existing bookmark label.
|
BookmarkValidator |
BookmarkDetailsValidator.withLabelLinkingToPage(java.lang.String expectedLabel,
int toPage)
This method verifies that a bookmark label (given by the first parameter) exists,
which points to the page (given by the second parameter).
|
BookmarkValidator |
BookmarkDetailsValidator.withLinkToName(java.lang.String expectedName)
This method uses xpath internally to look for bookmarks with a link
to the given name.
|
BookmarkValidator |
BookmarkDetailsValidator.withLinkToPage(int toPage)
The method verifies that a bookmark exists, which points to the page, given
by the parameter.
|
BookmarkValidator |
BookmarkDetailsValidator.withLinkToURI(java.lang.String expectedURI)
This method uses xpath internally to look for bookmarks with
the given uri.
|
BookmarkValidator |
BookmarkDetailsValidator.withoutDeadLink()
This method verifies that no bookmark points to nothing (dead link).
|
Constructor and Description |
---|
BookmarkDetailsValidator(com.pdfunit.internal.spi.IDocument testDocument,
BookmarkValidator backReference) |
Copyright (C) PDFUnit.com. See here for license.