aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2008-06-17 14:03:43 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2008-06-17 14:03:43 +0000
commitaefaae42dfaed8fd79feb232547d357ab07baecd (patch)
tree3cb23402f212ae5de32cca1413fba5840a0588bf /src/main/java/at/knowcenter/wag
parentc45c60eecc2f4445ae552a870aa095039644420c (diff)
downloadpdf-as-3-aefaae42dfaed8fd79feb232547d357ab07baecd.tar.gz
pdf-as-3-aefaae42dfaed8fd79feb232547d357ab07baecd.tar.bz2
pdf-as-3-aefaae42dfaed8fd79feb232547d357ab07baecd.zip
More logging...
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@294 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/knowcenter/wag')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureTypeDefinition.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureTypeDefinition.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureTypeDefinition.java
index 30ec211..1c936e4 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureTypeDefinition.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/SignatureTypeDefinition.java
@@ -20,10 +20,14 @@ package at.knowcenter.wag.egov.egiz.sig;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
+import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Vector;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
import at.knowcenter.wag.egov.egiz.cfg.SettingsReader;
import at.knowcenter.wag.egov.egiz.exceptions.SignatureException;
@@ -36,6 +40,11 @@ public class SignatureTypeDefinition implements Serializable
private static final long serialVersionUID = 1327407307346061147L;
/**
+ * The log.
+ */
+ private static final Log logger_ = LogFactory.getLog(SignatureTypeDefinition.class);
+
+ /**
* The type of this definition
*/
private String type_ = null;
@@ -151,6 +160,20 @@ public class SignatureTypeDefinition implements Serializable
*/
public boolean isTextExtractable()
{
+ if (logger_.isDebugEnabled()) {
+ Iterator it = this.invisible_field_definitions.iterator();
+ StringBuffer buffer = new StringBuffer();
+ while (it.hasNext()) {
+ SignatureFieldDefinition sfd = (SignatureFieldDefinition) it.next();
+ buffer.append(sfd.field_name);
+ if (it.hasNext()) {
+ buffer.append(", ");
+ }
+ }
+ if (buffer.length() != 0) {
+ logger_.debug("Invisible field definitions for profile \"" + this.type_ + "\" = " + buffer.toString());
+ }
+ }
return this.invisible_field_definitions.isEmpty();
}