ws-woden-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkapu...@apache.org
Subject svn commit: r293338 - /incubator/woden/java/src/javax/xml/namespace/QName.java
Date Mon, 03 Oct 2005 13:25:13 GMT
Author: jkaputin
Date: Mon Oct  3 06:25:07 2005
New Revision: 293338

URL: http://svn.apache.org/viewcvs?rev=293338&view=rev
Log:
Reverting to the previous version of QName for M1
following some discussion about adding the prefix
property and serialization issues. Will revisit this
for M2.

Modified:
    incubator/woden/java/src/javax/xml/namespace/QName.java

Modified: incubator/woden/java/src/javax/xml/namespace/QName.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/javax/xml/namespace/QName.java?rev=293338&r1=293337&r2=293338&view=diff
==============================================================================
--- incubator/woden/java/src/javax/xml/namespace/QName.java (original)
+++ incubator/woden/java/src/javax/xml/namespace/QName.java Mon Oct  3 06:25:07 2005
@@ -15,9 +15,7 @@
  */
 package javax.xml.namespace;
 
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.Serializable;
+import java.io.*;
 
 /**
  * <code>QName</code> class represents the value of a qualified name
@@ -28,14 +26,10 @@
  * The localPart provides the local part of the qualified name. The
  * namespaceURI is a URI reference identifying the namespace.
  *
- * This QName class mostly copied from wsdl4j, which borrowed from Axis.
- * Updated to reflect the QName interface defined by J2EE 1.4.
- * 
- * TODO illegalArgEx in ctor if localpart is null or "" or if prefix is null.
- * 
+ * Note: Some of this impl code was taken from Axis.
+ *
  * @author axis-dev
  * @author Matthew J. Duftler (duftler@us.ibm.com)
- * @author jkaputin@apache.org
  */
 public class QName implements Serializable
 {
@@ -47,8 +41,8 @@
 
   // Field localPart.
   private String localPart;
-  
-  private String prefix;
+
+  private static final long serialVersionUID = -9120448754896609940L;
 
   /**
    * Constructor for the QName.
@@ -61,7 +55,6 @@
     this.localPart    = (localPart == null)
                         ? emptyString
                         : localPart.intern();
-    this.prefix       = emptyString;
   }
 
   /**
@@ -78,27 +71,6 @@
     this.localPart    = (localPart == null)
                         ? emptyString
                         : localPart.intern();
-    this.prefix       = emptyString;
-  }
-
-  /**
-   * Constructor for the QName.
-   *
-   * @param namespaceURI Namespace URI for the QName
-   * @param localPart Local part of the QName.
-   * @param prefix Prefix for the namespace.
-   */
-  public QName(String namespaceURI, String localPart, String prefix)
-  {
-    this.namespaceURI = (namespaceURI == null)
-                        ? emptyString
-                        : namespaceURI.intern();
-    this.localPart    = (localPart == null)
-                        ? emptyString
-                        : localPart.intern();
-    this.prefix       = (prefix == null)
-                        ? emptyString
-                        : prefix.intern();; 
   }
 
   /**
@@ -119,16 +91,6 @@
   public String getLocalPart()
   {
     return localPart;
-  }
-
-  /**
-   * Gets the Prefix for this QName
-   *
-   * @return prefix
-   */
-  public String getPrefix()
-  {
-    return prefix;
   }
 
   /**



---------------------------------------------------------------------
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