aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/properties/GenericShorthandParser.java
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-10-28 10:00:25 +0000
committerFinn Bock <bckfnn@apache.org>2004-10-28 10:00:25 +0000
commitb0e76bca6ec366023f5f98d8e07aa77dbfabafe1 (patch)
treeffd62fd750c33c6083daad85feb38a5dbd709de8 /src/java/org/apache/fop/fo/properties/GenericShorthandParser.java
parent13fdba00ab86701f8e0b4057ecc5bc36375c8ee0 (diff)
downloadxmlgraphics-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.java10
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();