abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r519843 - /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
Date Mon, 19 Mar 2007 04:57:08 GMT
Author: jmsnell
Date: Sun Mar 18 21:57:07 2007
New Revision: 519843

URL: http://svn.apache.org/viewvc?view=rev&rev=519843
Log:
The params were switched

Modified:
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java?view=diff&rev=519843&r1=519842&r2=519843
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
Sun Mar 18 21:57:07 2007
@@ -103,7 +103,7 @@
     QName qname = extension.getQName();
     String prefix = qname.getPrefix();
     if (prefix != null) {
-      declareNS(prefix, qname.getNamespaceURI());
+      declareNS(qname.getNamespaceURI(), prefix);
     }
     addChild((OMElement)extension);
   }
@@ -113,7 +113,7 @@
     FOMFactory fomfactory = (FOMFactory) factory;
     String prefix = qname.getPrefix();
     if (prefix != null) {
-      declareNS(prefix, qname.getNamespaceURI());
+      declareNS(qname.getNamespaceURI(),prefix);
     }
     return (T)fomfactory.newExtensionElement(qname, this);
   }
@@ -121,7 +121,7 @@
   @SuppressWarnings("unchecked")
   public <T extends Element>T addExtension(String namespace, String localpart, String
prefix) {
     if (prefix != null) {
-      declareNS(prefix, namespace);
+      declareNS(namespace, prefix);
     }
     return (T)addExtension(new QName(namespace, localpart, prefix));
   }
@@ -132,7 +132,7 @@
     el.setText(value);
     String prefix = qname.getPrefix();
     if (prefix != null) {
-      declareNS(prefix, qname.getNamespaceURI());
+      declareNS(qname.getNamespaceURI(),prefix);
     }
     return el;
   }
@@ -143,7 +143,7 @@
     String prefix, 
     String value) {
       if (prefix != null) {
-        declareNS(prefix, namespace);
+        declareNS(namespace,prefix);
       }
       return addSimpleExtension(
         new QName(



Mime
View raw message