diff options
author | Keiron Liddle <keiron@apache.org> | 2001-08-20 11:19:24 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-08-20 11:19:24 +0000 |
commit | 4daeb7896ffdcf2a1c3303d6b41103d05f1a9014 (patch) | |
tree | eead5682967b118e1e8b19bdb59d6d7c6e8f1e08 /src/org/apache/fop/fo/Property.java | |
parent | c1c2792e38fe0a0567b4bcf1c3f782e757fa846e (diff) | |
download | xmlgraphics-fop-4daeb7896ffdcf2a1c3303d6b41103d05f1a9014.tar.gz xmlgraphics-fop-4daeb7896ffdcf2a1c3303d6b41103d05f1a9014.zip |
changed to logkit for logging only half done
fixed getContentHandler in driver
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194430 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/Property.java')
-rw-r--r-- | src/org/apache/fop/fo/Property.java | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/src/org/apache/fop/fo/Property.java b/src/org/apache/fop/fo/Property.java index d56d67ceb..aa623395e 100644 --- a/src/org/apache/fop/fo/Property.java +++ b/src/org/apache/fop/fo/Property.java @@ -7,7 +7,6 @@ package org.apache.fop.fo; -import org.apache.fop.messaging.MessageHandler; import org.apache.fop.datatypes.*; import org.apache.fop.fo.expr.Numeric; import org.apache.fop.fo.expr.PropertyParser; @@ -16,6 +15,8 @@ import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.apps.FOPException; import java.util.Vector; +import org.apache.log.Logger; + public class Property { public static class Maker { @@ -131,8 +132,8 @@ public class Property { return setSubprop(baseProp, partName, p); } } else { - MessageHandler.errorln("WARNING: compound property component " - + partName + " unknown."); + //MessageHandler.errorln("WARNING: compound property component " + // + partName + " unknown."); } return baseProp; } @@ -187,9 +188,9 @@ public class Property { } return pret; } catch (org.apache.fop.fo.expr.PropertyException propEx) { - MessageHandler.errorln("Error in " + propName - + " property value '" + value + "': " - + propEx); + //MessageHandler.errorln("Error in " + propName + // + " property value '" + value + "': " + // + propEx); throw new FOPException("Property error"); } } @@ -223,11 +224,11 @@ public class Property { } } catch (FOPException e) { - MessageHandler.errorln("convertShorthandProperty caught FOPException " - + e); + //MessageHandler.errorln("convertShorthandProperty caught FOPException " + // + e); } catch (org.apache.fop.fo.expr.PropertyException propEx) { - MessageHandler.errorln("convertShorthandProperty caught PropertyException " - + propEx); + //MessageHandler.errorln("convertShorthandProperty caught PropertyException " + // + propEx); } if (pret != null) { /* @@ -332,9 +333,9 @@ public class Property { return make(propertyList, specVal, propertyList.getParentFObj()); } catch (FOPException e) { - MessageHandler.errorln("Error computing property value for " - + propName + " from " - + specVal); + //MessageHandler.errorln("Error computing property value for " + // + propName + " from " + // + specVal); return null; } } @@ -359,6 +360,12 @@ public class Property { */ private String specVal; + protected Logger log; + + public void setLogger(Logger logger) { + log = logger; + } + /** * Set the original value specified for the property attribute. * @param specVal The specified value. |