sandygao 2003/02/26 08:24:59
Modified: java/src/org/apache/xerces/impl/dv/xs QNameDV.java
Log:
Canonical for QName types: we use the rawname as the canonical for now.
Revision Changes Path
1.6 +3 -14 xml-xerces/java/src/org/apache/xerces/impl/dv/xs/QNameDV.java
Index: QNameDV.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/dv/xs/QNameDV.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- QNameDV.java 18 Nov 2002 23:10:10 -0000 1.5
+++ QNameDV.java 26 Feb 2003 16:24:59 -0000 1.6
@@ -2,7 +2,7 @@
* The Apache Software License, Version 1.1
*
*
- * Copyright (c) 2001, 2002 The Apache Software Foundation. All rights
+ * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -133,19 +133,8 @@
return false;
} // equals(Object):boolean
- // canonical representation of the data
- private String canonical;
public synchronized String toString() {
- // REVISIT: what's the canonical form for QName?
- if (canonical == null) {
- if (prefix == null) {
- canonical = localpart;
- }
- else {
- canonical = prefix + ':' + localpart;
- }
- }
- return canonical;
+ return rawname;
}
}
} // class QNameDVDV
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]