aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/PropertyListBuilder.java
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2001-01-02 21:35:44 +0000
committerKaren Lease <klease@apache.org>2001-01-02 21:35:44 +0000
commit61d372a192e1a5e92437d100f8ec38124e8bc6fd (patch)
tree82c9a58716e95643f74be29d839b80b4877dd23c /src/org/apache/fop/fo/PropertyListBuilder.java
parent3e1bbd3722e489d4c3c86288f414db6eb1270f76 (diff)
downloadxmlgraphics-fop-61d372a192e1a5e92437d100f8ec38124e8bc6fd.tar.gz
xmlgraphics-fop-61d372a192e1a5e92437d100f8ec38124e8bc6fd.zip
Modify compound property handling; add support for corresponding properties and mixed property types
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193940 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/PropertyListBuilder.java')
-rw-r--r--src/org/apache/fop/fo/PropertyListBuilder.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/PropertyListBuilder.java b/src/org/apache/fop/fo/PropertyListBuilder.java
index e8f1ed214..c4da11f1b 100644
--- a/src/org/apache/fop/fo/PropertyListBuilder.java
+++ b/src/org/apache/fop/fo/PropertyListBuilder.java
@@ -90,7 +90,12 @@ public class PropertyListBuilder {
Property p = null;
Property.Maker propertyMaker = findMaker(space, element, propertyName);
if (propertyMaker != null) {
+ try {
p = propertyMaker.compute(propertyList);
+ } catch (FOPException e) {
+ MessageHandler.errorln("ERROR: exception occurred while computing" +
+ " value of property '" + propertyName +"': " + e.getMessage());
+ }
} else {
MessageHandler.errorln("WARNING: property " + propertyName + " ignored");
}
@@ -209,6 +214,19 @@ public class PropertyListBuilder {
}
else return null;
}
+
+
+ public boolean isCorrespondingForced(PropertyList propertyList, String space,
+ String element, String propertyName) {
+ Property.Maker propertyMaker = findMaker(space, element, propertyName);
+ if (propertyMaker != null) {
+ return propertyMaker.isCorrespondingForced(propertyList);
+ } else {
+ MessageHandler.errorln("WARNING: no Maker for " + propertyName);
+ }
+ return false;
+ }
+
public Property makeProperty(PropertyList propertyList, String space, String element, String propertyName) throws FOPException {