ws-woden-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkapu...@apache.org
Subject svn commit: r326101 - /incubator/woden/java/src/org/apache/woden/internal/util/dom/DOMUtils.java
Date Tue, 18 Oct 2005 13:25:57 GMT
Author: jkaputin
Date: Tue Oct 18 06:25:51 2005
New Revision: 326101

URL: http://svn.apache.org/viewcvs?rev=326101&view=rev
Log:
in getQName, use the QName ctor that takes a prefix.

Modified:
    incubator/woden/java/src/org/apache/woden/internal/util/dom/DOMUtils.java

Modified: incubator/woden/java/src/org/apache/woden/internal/util/dom/DOMUtils.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/util/dom/DOMUtils.java?rev=326101&r1=326100&r2=326101&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/util/dom/DOMUtils.java (original)
+++ incubator/woden/java/src/org/apache/woden/internal/util/dom/DOMUtils.java Tue Oct 18 06:25:51
2005
@@ -36,6 +36,7 @@
   private static String NS_URI_XMLNS = "http://www.w3.org/2000/xmlns/";
 
   private static final String ATTR_XMLNS = "xmlns";
+  private static final String emptyString = "";
   
   /**
    * Returns a list of attributes of an element. Returns an 
@@ -307,10 +308,12 @@
     if (namespaceURI != null)
     {
       registerUniquePrefix(prefix, namespaceURI, desc);
-
-      //TODO pass prefix to QName ctor too, but what about if it was modified
-      //when registered because of name clash (pass original or modification)?
-      return new QName(namespaceURI, localPart);
+      
+      //TODO when passing prefix to QName ctor, what if it was modified by
+      //registerUniquePrefix because of a name clash (pass original or modification)?
+      return new QName(namespaceURI, 
+                       localPart, 
+                       prefix != null ? prefix : emptyString);
     }
     else
     {



---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Mime
View raw message