diff options
author | Karen Lease <klease@apache.org> | 2001-01-02 21:35:44 +0000 |
---|---|---|
committer | Karen Lease <klease@apache.org> | 2001-01-02 21:35:44 +0000 |
commit | 61d372a192e1a5e92437d100f8ec38124e8bc6fd (patch) | |
tree | 82c9a58716e95643f74be29d839b80b4877dd23c /src/org/apache/fop/fo/EnumProperty.java | |
parent | 3e1bbd3722e489d4c3c86288f414db6eb1270f76 (diff) | |
download | xmlgraphics-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/EnumProperty.java')
-rw-r--r-- | src/org/apache/fop/fo/EnumProperty.java | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/src/org/apache/fop/fo/EnumProperty.java b/src/org/apache/fop/fo/EnumProperty.java index c8979d804..0a46c6e53 100644 --- a/src/org/apache/fop/fo/EnumProperty.java +++ b/src/org/apache/fop/fo/EnumProperty.java @@ -61,30 +61,20 @@ public class EnumProperty extends Property { super(propName); } - // set the Property from the String value - public Property make(PropertyList propertyList, String value, FObj fo) - throws FOPException - { - Property p = findConstant(value); - if (p == null) { - MessageHandler.errorln("WARNING: Unknown value for property '" + + + /** + * Called by subclass if no match found. + */ + public Property checkEnumValues(String value) { + MessageHandler.errorln("WARNING: Unknown enumerated value for property '" + getPropName() + "': " + value); - return make(propertyList); // return the default value - } - else { - return p; //makeProperty(v); - } + return null; } protected Property findConstant(String value) { return null; } - /*** - protected Property makeProperty(int v) { - return new EnumProperty(v); - } - ***/ } private int value; |