@DoNotObfuscate
public final class BarcodeValidator
extends com.pdfunit.validators.AbstractPageValidator
Modifier | Constructor and Description |
---|---|
protected |
BarcodeValidator(java.util.Collection<com.pdfunit.internal.spi.IImage> extractedImagesAllPages,
ImageRegion imageRegion,
ImageValidator backreference) |
protected |
BarcodeValidator(java.util.Collection<com.pdfunit.internal.spi.IImage> extractedImagesAllPages,
ImageValidator backreference) |
Modifier and Type | Method and Description |
---|---|
BarcodeValidator |
containing(java.lang.String expectedText)
This method checks that the value of the given paramter is part of the extracted
text of each extracted images.
|
BarcodeValidator |
containing(java.lang.String expectedText,
WhitespaceProcessing whitespaceProcessing)
This method checks that the value of the given paramter is part of the extracted
text of an image.
|
BarcodeValidator |
endingWith(java.lang.String endString)
This method checks that the extracted text of an image ends with the value of the
given parameter.
|
BarcodeValidator |
equalsTo(java.lang.String expectedText)
This method checks that the extracted text of an image is the same as the value of the
given parameter.
|
BarcodeValidator |
equalsTo(java.lang.String expectedText,
WhitespaceProcessing whitespaceProcessing)
This method checks that the extracted text of an image is the same as the value of the
given parameter.
|
void |
matchingImage(java.io.File expectedImageFile)
This method compares an expected image (given by the file) with
previously extracted images of a PDF document.
|
void |
matchingImage(java.io.InputStream expectedImageStream)
This method compares an expected image (given by the stream) with
previously extracted images of a PDF document.
|
void |
matchingImage(java.lang.String expectedImageFilename)
This method compares an expected image (given by the file name) with
previously extracted images of a PDF document.
|
void |
matchingImage(java.net.URL expectedImageURL)
This method compares an expected image (given by the URL) with
previously extracted images of a PDF document.
|
BarcodeValidator |
matchingRegex(java.lang.String regex)
This method evaluates the extracted text of an image with the given regular expression.
|
BarcodeValidator |
startingWith(java.lang.String startString)
This method checks that the extracted text of an image starts with the value of the
given parameter.
|
createFullSizeRegionFromDocument, getEffectedPages, getPageScanFlag, setPagesToUse, setRegion
protected BarcodeValidator(java.util.Collection<com.pdfunit.internal.spi.IImage> extractedImagesAllPages, ImageValidator backreference)
protected BarcodeValidator(java.util.Collection<com.pdfunit.internal.spi.IImage> extractedImagesAllPages, ImageRegion imageRegion, ImageValidator backreference)
@Guarded public BarcodeValidator containing(java.lang.String expectedText)
@Guarded public BarcodeValidator containing(java.lang.String expectedText, WhitespaceProcessing whitespaceProcessing)
@Guarded public BarcodeValidator endingWith(java.lang.String endString)
@Guarded public BarcodeValidator equalsTo(java.lang.String expectedText)
@Guarded public BarcodeValidator equalsTo(java.lang.String expectedText, WhitespaceProcessing whitespaceProcessing)
@Guarded public void matchingImage(java.lang.String expectedImageFilename)
@Guarded public void matchingImage(java.io.File expectedImageFile)
@Guarded public void matchingImage(java.net.URL expectedImageURL)
@Guarded public void matchingImage(java.io.InputStream expectedImageStream)
@Guarded public BarcodeValidator matchingRegex(java.lang.String regex)
@Guarded public BarcodeValidator startingWith(java.lang.String startString)
Copyright (C) PDFUnit.com. See here for license.