diff options
author | Jeremias Maerki <jeremias@apache.org> | 2003-11-07 21:23:58 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2003-11-07 21:23:58 +0000 |
commit | 3e03b129dc1a53fd16552ea9ebeac7957ba41b2e (patch) | |
tree | 69a8445638f45069d93544073f78af298a4e910c /examples/plan | |
parent | 6b09ab0ad694fc65e9f34cd79c5773a37d66ffd9 (diff) | |
download | xmlgraphics-fop-3e03b129dc1a53fd16552ea9ebeac7957ba41b2e.tar.gz xmlgraphics-fop-3e03b129dc1a53fd16552ea9ebeac7957ba41b2e.zip |
Put namespace URI in public constant
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196985 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'examples/plan')
-rw-r--r-- | examples/plan/src/org/apache/fop/plan/PlanElement.java | 2 | ||||
-rw-r--r-- | examples/plan/src/org/apache/fop/plan/PlanElementMapping.java | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/examples/plan/src/org/apache/fop/plan/PlanElement.java b/examples/plan/src/org/apache/fop/plan/PlanElement.java index 93e27a8c0..9c517ef30 100644 --- a/examples/plan/src/org/apache/fop/plan/PlanElement.java +++ b/examples/plan/src/org/apache/fop/plan/PlanElement.java @@ -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"; } diff --git a/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java b/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java index 724871edd..55f75e921 100644 --- a/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java +++ b/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java @@ -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()); } } |