jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject jena git commit: JENA-907: Rename to getXMLLocalName and getXMLNameSpace
Date Fri, 01 May 2015 15:46:56 GMT
Repository: jena
Updated Branches:
  refs/heads/master 6d3a74ff0 -> 103776ed7


JENA-907: Rename to getXMLLocalName and getXMLNameSpace


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/103776ed
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/103776ed
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/103776ed

Branch: refs/heads/master
Commit: 103776ed71efb5f6ca963260637274ea3356cea8
Parents: 6d3a74f
Author: Andy Seaborne <andy@apache.org>
Authored: Fri May 1 16:15:01 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Fri May 1 16:15:01 2015 +0100

----------------------------------------------------------------------
 .../apache/jena/rdfxml/xmloutput/impl/Unparser.java   | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/103776ed/jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/Unparser.java
----------------------------------------------------------------------
diff --git a/jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/Unparser.java b/jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/Unparser.java
index 2f35939..409bbd9 100644
--- a/jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/Unparser.java
+++ b/jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/Unparser.java
@@ -901,7 +901,7 @@ class Unparser {
             print(" ");
             printRdfAt("ID");
             print("=");
-            print(quote(getLocalName(r)));
+            print(quote(getXMLLocalName(r)));
             return true;
 
         }
@@ -956,7 +956,7 @@ class Unparser {
             print(" ");
             printRdfAt("ID");
             print("=");
-            print(quote(getLocalName(res)));
+            print(quote(getXMLLocalName(res)));
             haveReified.add(res);
         }
     }
@@ -1180,7 +1180,7 @@ class Unparser {
         }
     }
 
-    private String getNameSpace(Resource r) {
+    private String getXMLNameSpace(Resource r) {
         if (r.isAnon()) {
             logger.error("Internal error - Unparser.getNameSpace; giving up");
             throw new BrokenException("Internal error: getNameSpace(bNode)");
@@ -1204,8 +1204,8 @@ class Unparser {
     }
 
     private boolean isLocalReference(Resource r) {
-        return (!r.isAnon()) && getNameSpace(r).equals(localName + "#")
-                && XMLChar.isValidNCName(getLocalName(r));
+        return (!r.isAnon()) && getXMLNameSpace(r).equals(localName + "#")
+                && XMLChar.isValidNCName(getXMLLocalName(r));
     }
 
     /*
@@ -1217,7 +1217,7 @@ class Unparser {
      * return getSuffix(more) + new Character((char) ('a' + suffixId % 26)); } }
      */
 
-    private String getLocalName(Resource r) {
+    private String getXMLLocalName(Resource r) {
         if (r.isAnon()) {
             logger.error("Internal error - giving up - Unparser.getLocalName");
             throw new BrokenException("Internal error: getLocalName(bNode)");
@@ -1343,7 +1343,7 @@ class Unparser {
 
             if (l.getLanguage().equals("")) {
                 // j.cook.up bug fix
-                if (prettyWriter.isDefaultNamespace(getNameSpace(p)))
+                if (prettyWriter.isDefaultNamespace(getXMLNameSpace(p)))
                     return false;
 
                 String str = l.getString();


Mime
View raw message