axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r394893 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Date Tue, 18 Apr 2006 10:01:19 GMT
Author: ajith
Date: Tue Apr 18 03:01:17 2006
New Revision: 394893

URL: http://svn.apache.org/viewcvs?rev=394893&view=rev
Log:
Fixing an issue which made the databound classes to have a wrong  parsing logic

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl?rev=394893&r1=394892&r2=394893&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Tue Apr 18 03:01:17 2006
@@ -544,6 +544,7 @@
                                                     <xsl:value-of select="$basePropertyType"/>.class,
                                                     <xsl:value-of select="$listName"/>));
                                         </xsl:when>
+                                        <!-- End of Array handling of ADB classes -->
                                         <xsl:when test="@default">
                                              boolean <xsl:value-of select="$loopBoolName"/>=false;
                                              javax.xml.namespace.QName <xsl:value-of select="$startQname"/>
= new javax.xml.namespace.QName(
@@ -588,7 +589,7 @@
                                                      <xsl:value-of select="$basePropertyType"/>.class,<xsl:value-of
select="$listName"/>));
 
                                         </xsl:when>
-                                        <!-- End of Array handling of ADB classes -->
+                                        <!-- End of Array handling of default class -
that is the OMElement -->
                                         <xsl:otherwise>
                                             <xsl:value-of select="$listName"/>.add(getElementTextProperly(reader));
                                             //loop until we find a start element that is
not part of this array
@@ -849,7 +850,9 @@
                                       <xsl:value-of select="$basePropertyType"/>.class,<xsl:value-of
select="$listName"/>));
 
                                    //move to the next event, probably past the last end_element
event
-                                   reader.next();
+                                   if (reader.getEventType()== javax.xml.stream.XMLStreamConstants.END_ELEMENT){
+                                      reader.next();
+                                   }
                                </xsl:when>
                                <xsl:when test="@default">
                                     <!-- Somebody put the magic number 5000 here. I wonder
who did that! -->



Mime
View raw message