diff options
author | pdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2010-11-29 14:22:47 +0000 |
---|---|---|
committer | pdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2010-11-29 14:22:47 +0000 |
commit | 9763138b9051d815e53bb9ed8cfe69c8f85e70b5 (patch) | |
tree | 58a12e5fb95de34f72f661120072c62f5b1a94e8 /src/main/java/at/gv | |
parent | f490f5d9141cb66a32985d2c1e0de2db88b04c6a (diff) | |
download | pdf-as-3-9763138b9051d815e53bb9ed8cfe69c8f85e70b5.tar.gz pdf-as-3-9763138b9051d815e53bb9ed8cfe69c8f85e70b5.tar.bz2 pdf-as-3-9763138b9051d815e53bb9ed8cfe69c8f85e70b5.zip |
added hasbeencorrected flag
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@627 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/gv')
-rw-r--r-- | src/main/java/at/gv/egiz/pdfas/impl/api/analyze/AnalyzeResultImpl.java | 22 |
1 files changed, 20 insertions, 2 deletions
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
+ * <code>correct_document_on_verify_if_necessary</code>). 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;
+ }
}
|