diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-11-11 13:27:34 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-11-11 13:27:34 +0000 |
commit | 97581a9081ec184b9755bdc07ce049df9419ca06 (patch) | |
tree | 712588651e150a91b31c9159a7b94621fcc9decc /src/java/org/apache/fop/fo/UnknownXMLObj.java | |
parent | 305c92099a465a9ce03be094cb3d9fb34721bb4b (diff) | |
download | xmlgraphics-fop-97581a9081ec184b9755bdc07ce049df9419ca06.tar.gz xmlgraphics-fop-97581a9081ec184b9755bdc07ce049df9419ca06.zip |
Made the FO tree a little more consistent by renaming getName() to getLocalName() and adding additional methods like: getNamespaceURI() and getNormalNamespacePrefix(). getName() now returns the fully qualified name combined from getLocalName() and getNormalNamespacePrefix(). For special cases you can call getName(String) to return a different namespace prefix.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/UnknownXMLObj.java')
-rw-r--r-- | src/java/org/apache/fop/fo/UnknownXMLObj.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/fo/UnknownXMLObj.java b/src/java/org/apache/fop/fo/UnknownXMLObj.java index c46d311dd..49e104a96 100644 --- a/src/java/org/apache/fop/fo/UnknownXMLObj.java +++ b/src/java/org/apache/fop/fo/UnknownXMLObj.java @@ -61,13 +61,16 @@ public class UnknownXMLObj extends XMLObj { this.namespace = space; } - /** - * @see XMLObj#getNameSpace - */ - public String getNameSpace() { + /** @see org.apache.fop.fo.FONode#getNamespaceURI() */ + public String getNamespaceURI() { return this.namespace; } + /** @see org.apache.fop.fo.FONode#getNormalNamespacePrefix() */ + public String getNormalNamespacePrefix() { + return null; //We don't know that in this case. + } + /** * @see org.apache.fop.fo.FONode#addChildNode(FONode) */ @@ -88,5 +91,6 @@ public class UnknownXMLObj extends XMLObj { } super.addCharacters(data, start, length, pList, locator); } + } |