public class CompareResult extends Object implements ResultCollector
CompareResultWithExpectedAndActual| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,ImageWithDimension> |
diffImages |
protected boolean |
hasDifferenceInExclusion |
protected boolean |
isEqual |
| Constructor and Description |
|---|
CompareResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
actualOnly() |
protected void |
addImagesToDocument(org.apache.pdfbox.pdmodel.PDDocument document) |
protected void |
addImagesToDocument(org.apache.pdfbox.pdmodel.PDDocument document,
Map<Integer,ImageWithDimension> images) |
void |
addPage(boolean hasDifferences,
boolean hasDifferenceInExclusion,
int pageIndex,
ImageWithDimension expectedImage,
ImageWithDimension actualImage,
ImageWithDimension diffImage) |
protected void |
addPageToDocument(org.apache.pdfbox.pdmodel.PDDocument document,
ImageWithDimension image) |
void |
expectedOnly() |
int |
getNumberOfPages() |
boolean |
hasDifferenceInExclusion() |
protected boolean |
hasImages() |
boolean |
hasOnlyActual() |
boolean |
hasOnlyExpected() |
boolean |
hasOnlyOneDoc() |
boolean |
isEqual() |
boolean |
isNotEqual() |
protected boolean |
keepImages() |
void |
noPagesFound() |
boolean |
writeTo(String filename)
Write the result Pdf to a file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoneprotected final Map<Integer,ImageWithDimension> diffImages
protected boolean isEqual
protected boolean hasDifferenceInExclusion
public boolean writeTo(String filename)
filename - without pdf-Extensionprotected boolean hasImages()
protected void addImagesToDocument(org.apache.pdfbox.pdmodel.PDDocument document)
throws IOException
IOExceptionprotected void addImagesToDocument(org.apache.pdfbox.pdmodel.PDDocument document,
Map<Integer,ImageWithDimension> images)
throws IOException
IOExceptionprotected void addPageToDocument(org.apache.pdfbox.pdmodel.PDDocument document,
ImageWithDimension image)
throws IOException
IOExceptionprotected boolean keepImages()
public void addPage(boolean hasDifferences,
boolean hasDifferenceInExclusion,
int pageIndex,
ImageWithDimension expectedImage,
ImageWithDimension actualImage,
ImageWithDimension diffImage)
addPage in interface ResultCollectorpublic void noPagesFound()
noPagesFound in interface ResultCollectorpublic boolean isEqual()
public boolean isNotEqual()
public boolean hasDifferenceInExclusion()
public boolean hasOnlyExpected()
public boolean hasOnlyActual()
public boolean hasOnlyOneDoc()
public int getNumberOfPages()
public void expectedOnly()
public void actualOnly()
Copyright © 2018 red6 enterprise software GmbH. All rights reserved.