From 55e7cd035979a4cdd101f1b2a0c21caaa285101e Mon Sep 17 00:00:00 2001 From: Karen Lease Date: Fri, 21 Sep 2001 21:42:08 +0000 Subject: Add support for mapping multiple keywords to the same constant in enumeration/value. Remove commented out stuff. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194476 13f79535-47bb-0310-9956-ffa450edef68 --- src/codegen/properties.xsl | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/src/codegen/properties.xsl b/src/codegen/properties.xsl index 95893abd6..06c37eee7 100644 --- a/src/codegen/properties.xsl +++ b/src/codegen/properties.xsl @@ -9,7 +9,7 @@ -Do + @@ -44,7 +44,9 @@ public Property checkEnumValues(String value) { - if (value.equals("")) { return s_prop; } + + + return super.checkEnumValues(value); } @@ -62,12 +64,6 @@ } protected String checkValueKeywords(String keyword) { - String value = (String)s_htKeywords.get(keyword); if (value == null) { return super.checkValueKeywords(keyword); @@ -442,17 +438,6 @@ public class extends - public Property checkEnumValues(String value) { - - if (value.equals("")) { return s_prop; } - - return super.checkEnumValues(value); - } - ---> @@ -535,8 +520,6 @@ public class extends "); if (listprop != null) { // Get a parser for the shorthand to set the individual properties - ShorthandParser shparser = new (listprop); p = shparser.getValueForProperty(getPropName(), this, propertyList); } @@ -593,5 +576,18 @@ public class extends + + + + if (value.equals("")) { return s_prop; } + + + + + -- cgit v1.2.3