aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/gv/egiz/pdfas/impl/api/analyze/AnalyzeResultImpl.java22
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;
+ }
}