geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject svn commit: r164798 - /geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightTypeInfoBuilder.java
Date Tue, 26 Apr 2005 14:37:10 GMT
Author: gdamour
Date: Tue Apr 26 07:37:09 2005
New Revision: 164798

URL: http://svn.apache.org/viewcvs?rev=164798&view=rev
Log:
Support mapping to anonymous element.

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

Modified: geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightTypeInfoBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightTypeInfoBuilder.java?rev=164798&r1=164797&r2=164798&view=diff
==============================================================================
--- geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightTypeInfoBuilder.java
(original)
+++ geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightTypeInfoBuilder.java
Tue Apr 26 07:37:09 2005
@@ -245,7 +245,19 @@
                 }
                 elementDesc.setNillable(particle.isNillable() || hasEncoded);
                 elementDesc.setXmlName(xmlName);
-                elementDesc.setXmlType(particle.getType().getName());
+                if (null != particle.getType().getName()) {
+                    elementDesc.setXmlType(particle.getType().getName());
+                } else {
+                    QName anonymousName;
+                    if (key.isAnonymous()) {
+                        anonymousName = new QName(key.getqName().getNamespaceURI(), key.getqName().getLocalPart()
+
+                                ">" + particle.getName().getLocalPart());
+                    } else {
+                        anonymousName = new QName(key.getqName().getNamespaceURI(),
+                                ">" + key.getqName().getLocalPart() + ">" + particle.getName().getLocalPart());
+                    }
+                    elementDesc.setXmlType(anonymousName);
+                }
 
                 if (javaType.isArray()) {
                     elementDesc.setMinOccurs(particle.getIntMinOccurs());



Mime
View raw message