diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-05-02 14:43:29 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-05-02 14:43:29 +0000 |
commit | a82e1c79d17b176e4f3d5b1513c1043e4f09da79 (patch) | |
tree | 62b75a2ca40962b72fb53cd66b2fadc7e3b40930 /src | |
parent | 9641f2a32dca4bd7078f1fdbc2871292823ee423 (diff) | |
download | xmlgraphics-fop-a82e1c79d17b176e4f3d5b1513c1043e4f09da79.tar.gz xmlgraphics-fop-a82e1c79d17b176e4f3d5b1513c1043e4f09da79.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/fo/extensions/OldExtensionElementMapping.java | 19 |
1 files 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)); + } + } } |