From aefaae42dfaed8fd79feb232547d357ab07baecd Mon Sep 17 00:00:00 2001 From: tknall Date: Tue, 17 Jun 2008 14:03:43 +0000 Subject: More logging... git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@294 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../wag/egov/egiz/sig/SignatureTypeDefinition.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/main/java/at/knowcenter/wag') 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; @@ -35,6 +39,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 */ @@ -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(); } -- cgit v1.2.3