]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Forgot to upload the new PCLElementMapping. Used so the PCL extension attributes...
authorJeremias Maerki <jeremias@apache.org>
Thu, 18 May 2006 15:42:39 +0000 (15:42 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 18 May 2006 15:42:39 +0000 (15:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@407572 13f79535-47bb-0310-9956-ffa450edef68

src/sandbox/org/apache/fop/render/pcl/extensions/PCLElementMapping.java [new file with mode: 0644]

diff --git a/src/sandbox/org/apache/fop/render/pcl/extensions/PCLElementMapping.java b/src/sandbox/org/apache/fop/render/pcl/extensions/PCLElementMapping.java
new file mode 100644 (file)
index 0000000..b25ab93
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* $Id: AFPElementMapping.java 397875 2006-04-28 11:58:33Z manuel $ */
+
+package org.apache.fop.render.pcl.extensions;
+
+import java.util.HashMap;
+
+import org.apache.fop.fo.ElementMapping;
+
+/**
+ * PCL-specific extensions for Apache FOP.
+ */
+public class PCLElementMapping extends ElementMapping {
+
+    /** The namespace used for PCL extensions */
+    public static final String NAMESPACE = "http://xmlgraphics.apache.org/fop/extensions/pcl";
+
+    /** The usual namespace prefix used for PCL extensions */
+    public static final String NAMESPACE_PREFIX = "pcl";
+
+    /** Main constructor */
+    public PCLElementMapping() {
+        this.namespaceURI = NAMESPACE;
+    }
+
+    /** @see org.apache.fop.fo.ElementMapping#initialize() */
+    protected void initialize() {
+
+        if (foObjs == null) {
+            foObjs = new HashMap();
+            //No extension elements, yet, only attributes
+        }
+
+    }
+
+}