]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Put namespace URI in public constant
authorJeremias Maerki <jeremias@apache.org>
Fri, 7 Nov 2003 21:23:58 +0000 (21:23 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 7 Nov 2003 21:23:58 +0000 (21:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196985 13f79535-47bb-0310-9956-ffa450edef68

examples/plan/src/org/apache/fop/plan/PlanElement.java
examples/plan/src/org/apache/fop/plan/PlanElementMapping.java

index 93e27a8c001905fc8a599a321644b464c2fff523..9c517ef30353960662e6cd4ff75b6a69308adad0 100644 (file)
@@ -119,7 +119,7 @@ public class PlanElement extends PlanObj {
      */
     public String getDocumentNamespace() {
         if (svgDoc == null) {
-            return PlanElementMapping.URI;
+            return PlanElementMapping.NAMESPACE;
         }
         return "http://www.w3.org/2000/svg";
     }
index 724871eddc300adb2ef174815888b5af5c9d09da..55f75e921da3df1af50757164039ffdb803ab97d 100644 (file)
@@ -63,8 +63,11 @@ import java.util.HashMap;
  */
 public class PlanElementMapping extends ElementMapping {
 
+    /** Plan Namespace */
+    public static final String NAMESPACE = "http://xml.apache.org/fop/plan"; 
+
     public PlanElementMapping() {
-        URI = "http://xml.apache.org/fop/plan";
+        this.namespaceURI = NAMESPACE;
     }
 
     protected void initialize() {
@@ -73,7 +76,7 @@ public class PlanElementMapping extends ElementMapping {
             foObjs.put("plan", new PE());
             foObjs.put(DEFAULT, new PlanMaker());
 
-            XMLReader.setConverter(URI, new PlanConverter());
+            XMLReader.setConverter(this.namespaceURI, new PlanConverter());
         }
     }