geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r168032 - /geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightTypeInfoBuilder.java
Date Wed, 04 May 2005 00:50:08 GMT
Author: djencks
Date: Tue May  3 17:50:08 2005
New Revision: 168032

URL: http://svn.apache.org/viewcvs?rev=168032&view=rev
Log:
dont use a QName where a string is needed

Modified:
    geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightTypeInfoBuilder.java

Modified: geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightTypeInfoBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightTypeInfoBuilder.java?rev=168032&r1=168031&r2=168032&view=diff
==============================================================================
--- geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightTypeInfoBuilder.java
(original)
+++ geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightTypeInfoBuilder.java
Tue May  3 17:50:08 2005
@@ -142,18 +142,19 @@
         typeInfo.setFields(fields);
         for (Iterator iter = nameToType.entrySet().iterator(); iter.hasNext();) {
             Map.Entry entry = (Map.Entry) iter.next();
-            QName fieldName = (QName) entry.getKey();
+            QName fieldQName = (QName) entry.getKey();
+            String fieldName = fieldQName.getLocalPart();
             SchemaParticle particle = (SchemaParticle) entry.getValue();
 
             ElementDesc elementDesc = new ElementDesc();
-            elementDesc.setFieldName(fieldName.getLocalPart());
+            elementDesc.setFieldName(fieldName);
 
             Class javaType = (Class) nameToClass.get(fieldName);
             if (null == javaType) {
                 throw new DeploymentException("Field " + fieldName + " is not defined by
class " + javaClass.getName());
             }
             elementDesc.setNillable(particle.isNillable());
-            elementDesc.setXmlName(fieldName);
+            elementDesc.setXmlName(fieldQName);
             elementDesc.setXmlType(particle.getType().getName());
 
             if (javaType.isArray()) {



Mime
View raw message