From 9763138b9051d815e53bb9ed8cfe69c8f85e70b5 Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 29 Nov 2010 14:22:47 +0000 Subject: added hasbeencorrected flag git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@627 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../pdfas/impl/api/analyze/AnalyzeResultImpl.java | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/gv/egiz/pdfas/impl/api/analyze/AnalyzeResultImpl.java b/src/main/java/at/gv/egiz/pdfas/impl/api/analyze/AnalyzeResultImpl.java index 154d73d..8d0893c 100644 --- a/src/main/java/at/gv/egiz/pdfas/impl/api/analyze/AnalyzeResultImpl.java +++ b/src/main/java/at/gv/egiz/pdfas/impl/api/analyze/AnalyzeResultImpl.java @@ -25,6 +25,8 @@ public class AnalyzeResultImpl implements AnalyzeResult */ protected List noSignatures = null; + protected boolean hasBeenCorrected = false; + /** * Constructor. @@ -34,7 +36,7 @@ public class AnalyzeResultImpl implements AnalyzeResult * @param noSignatures * The found non-signature update blocks. */ - public AnalyzeResultImpl(List signatures, List noSignatures) + public AnalyzeResultImpl(List signatures, List noSignatures, boolean hasBeenCorrected) { if (signatures == null) { @@ -42,7 +44,8 @@ public class AnalyzeResultImpl implements AnalyzeResult } this.signatures = signatures; - this.noSignatures = noSignatures; + this.noSignatures = noSignatures; + this.hasBeenCorrected = hasBeenCorrected; } @@ -74,5 +77,20 @@ public class AnalyzeResultImpl implements AnalyzeResult return this.noSignatures; } + + /** + * Tells if the document has been corrected before verification. The correction maybe done + * after a first failing parse to repair a document (if enabled in the configuration + * correct_document_on_verify_if_necessary). The correction can only work for textual + * signatures. Binary signatures are lost anyhow. + * @return + */ + public boolean hasBeenCorrected() { + return hasBeenCorrected; + } + + public void setHasBeenCorrected(boolean hasBeenCorrected) { + this.hasBeenCorrected = hasBeenCorrected; + } } -- cgit v1.2.3