]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Simply subclassing did not work as expected. Made a copy now.
authorJeremias Maerki <jeremias@apache.org>
Tue, 2 May 2006 14:43:29 +0000 (14:43 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 2 May 2006 14:43:29 +0000 (14:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@398947 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/extensions/OldExtensionElementMapping.java

index 40ff485e54dba447a8eb6e959796b332f6e6329c..86611b3fc8a647dbb9ea2e35211d6a3e6cfda5b1 100644 (file)
 
 package org.apache.fop.fo.extensions;
 
+import java.util.HashMap;
+
+import org.apache.fop.fo.ElementMapping;
+import org.apache.fop.fo.UnknownXMLObj;
+
 /**
- * Element mapping for the old FOP extension namespace. It is simply mapped to the new namespace.
+ * Element mapping for the old FOP extension namespace.
  */
-public class OldExtensionElementMapping extends ExtensionElementMapping {
+public class OldExtensionElementMapping extends ElementMapping {
     
     /** The old FOP extension namespace URI (FOP 0.20.5 and earlier) */
     public static final String URI = "http://xml.apache.org/fop/extensions";
@@ -33,4 +38,14 @@ public class OldExtensionElementMapping extends ExtensionElementMapping {
         namespaceURI = URI;
     }
 
+    /**
+     * Initialize the data structures.
+     */
+    protected void initialize() {
+        if (foObjs == null) {
+            foObjs = new HashMap();
+            foObjs.put("outline", new UnknownXMLObj.Maker(URI));
+            foObjs.put("label", new UnknownXMLObj.Maker(URI));
+        }
+    }
 }