From a82e1c79d17b176e4f3d5b1513c1043e4f09da79 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 2 May 2006 14:43:29 +0000 Subject: [PATCH] Simply subclassing did not work as expected. Made a copy now. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@398947 13f79535-47bb-0310-9956-ffa450edef68 --- .../OldExtensionElementMapping.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/fo/extensions/OldExtensionElementMapping.java b/src/java/org/apache/fop/fo/extensions/OldExtensionElementMapping.java index 40ff485e5..86611b3fc 100644 --- a/src/java/org/apache/fop/fo/extensions/OldExtensionElementMapping.java +++ b/src/java/org/apache/fop/fo/extensions/OldExtensionElementMapping.java @@ -18,10 +18,15 @@ 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)); + } + } } -- 2.39.5