]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Tweak: use generic boolean Maker.
authorAndreas L. Delmelle <adelmelle@apache.org>
Fri, 20 Jul 2007 16:51:51 +0000 (16:51 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Fri, 20 Jul 2007 16:51:51 +0000 (16:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@558047 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FOPropertyMapping.java

index 7eea2dd93f0d1d8b7006335fa9a6ce0f8ca12289..50cf8c4a9d21f087759373b9258605b086c5ecf6 100644 (file)
@@ -1076,9 +1076,8 @@ public final class FOPropertyMapping implements Constants {
 
         // hyphenate
         m  = new EnumProperty.Maker(PR_HYPHENATE);
+        m.useGeneric(genericBoolean);
         m.setInherited(true);
-        m.addEnum("true", getEnumProperty(EN_TRUE, "TRUE"));
-        m.addEnum("false", getEnumProperty(EN_FALSE, "FALSE"));
         m.setDefault("false");
         addPropertyMaker("hyphenate", m);
 
@@ -1695,9 +1694,8 @@ public final class FOPropertyMapping implements Constants {
 
         // treat-as-word-space
         m  = new EnumProperty.Maker(PR_TREAT_AS_WORD_SPACE);
+        m.useGeneric(genericBoolean);
         m.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO"));
-        m.addEnum("true", getEnumProperty(EN_TRUE, "TRUE"));
-        m.addEnum("false", getEnumProperty(EN_FALSE, "FALSE"));
         m.setInherited(false);
         m.setDefault("auto");
         addPropertyMaker("treat-as-word-space", m);
@@ -2238,9 +2236,8 @@ public final class FOPropertyMapping implements Constants {
 
         // precedence
         m  = new EnumProperty.Maker(PR_PRECEDENCE);
+        m.useGeneric(genericBoolean);
         m.setInherited(false);
-        m.addEnum("true", getEnumProperty(EN_TRUE, "TRUE"));
-        m.addEnum("false", getEnumProperty(EN_FALSE, "FALSE"));
         m.setDefault("false");
         addPropertyMaker("precedence", m);