diff options
author | Finn Bock <bckfnn@apache.org> | 2004-10-28 10:00:25 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2004-10-28 10:00:25 +0000 |
commit | b0e76bca6ec366023f5f98d8e07aa77dbfabafe1 (patch) | |
tree | ffd62fd750c33c6083daad85feb38a5dbd709de8 /src/java/org/apache/fop/fo/properties/GenericShorthandParser.java | |
parent | 13fdba00ab86701f8e0b4057ecc5bc36375c8ee0 (diff) | |
download | xmlgraphics-fop-b0e76bca6ec366023f5f98d8e07aa77dbfabafe1.tar.gz xmlgraphics-fop-b0e76bca6ec366023f5f98d8e07aa77dbfabafe1.zip |
New exception hierarchy rooted in SAXException and throw clauses on
property parsing and retrieval.
PR: 31899
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198106 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/properties/GenericShorthandParser.java')
-rw-r--r-- | src/java/org/apache/fop/fo/properties/GenericShorthandParser.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/properties/GenericShorthandParser.java b/src/java/org/apache/fop/fo/properties/GenericShorthandParser.java index c8b92f642..47146e257 100644 --- a/src/java/org/apache/fop/fo/properties/GenericShorthandParser.java +++ b/src/java/org/apache/fop/fo/properties/GenericShorthandParser.java @@ -19,7 +19,9 @@ package org.apache.fop.fo.properties; import java.util.Enumeration; + import org.apache.fop.fo.PropertyList; +import org.apache.fop.fo.expr.PropertyException; public class GenericShorthandParser implements ShorthandParser { @@ -46,7 +48,9 @@ public class GenericShorthandParser implements ShorthandParser { public Property getValueForProperty(int propId, Property property, PropertyMaker maker, - PropertyList propertyList) { + PropertyList propertyList) + throws PropertyException + { Property prop = null; // Check for keyword "inherit" if (property.getList().size() == 1) { @@ -70,7 +74,9 @@ public class GenericShorthandParser implements ShorthandParser { protected Property convertValueForProperty(int propId, Property property, PropertyMaker maker, - PropertyList propertyList) { + PropertyList propertyList) + throws PropertyException + { Property prop = null; // Try each of the stored values in turn Enumeration eprop = property.getList().elements(); |