axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r469701 - /webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Date Tue, 31 Oct 2006 23:18:20 GMT
Author: dims
Date: Tue Oct 31 15:18:18 2006
New Revision: 469701

URL: http://svn.apache.org/viewvc?view=rev&rev=469701
Log:
deserialize to OMElement's correctly


Modified:
    webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl

Modified: webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl?view=diff&rev=469701&r1=469700&r2=469701
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
(original)
+++ webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Tue Oct 31 15:18:18 2006
@@ -2159,6 +2159,13 @@
                                              object.set<xsl:value-of select="$javaName"/>(
                                                   org.apache.axis2.databinding.utils.ConverterUtil.convertToQName(content,namespaceuri));
                                             </xsl:when>
+                                            <xsl:when test="$propertyType='org.apache.axiom.om.OMElement'">
+                                                org.apache.axiom.om.OMFactory fac = org.apache.axiom.om.OMAbstractFactory.getOMFactory();
+                                                org.apache.axiom.om.OMNamespace omNs = fac.createOMNamespace("<xsl:value-of
select="$namespace"/>", "");
+                                                org.apache.axiom.om.OMElement _value<xsl:value-of
select="$javaName"/> = fac.createOMElement("<xsl:value-of select="$propertyName"/>",
omNs);
+                                                _value<xsl:value-of select="$javaName"/>.addChild(fac.createOMText(_value<xsl:value-of
select="$javaName"/>, content));
+                                                object.set<xsl:value-of select="$javaName"/>(_value<xsl:value-of
select="$javaName"/>);
+                                            </xsl:when>
                                             <xsl:otherwise>
                                               object.set<xsl:value-of select="$javaName"/>(
                                         org.apache.axis2.databinding.utils.ConverterUtil.convertTo<xsl:value-of
select="$shortTypeName"/>(content));
@@ -3257,6 +3264,13 @@
                                              }
                                              object.set<xsl:value-of select="$javaName"/>(
                                                   org.apache.axis2.databinding.utils.ConverterUtil.convertToQName(content,namespaceuri));
+                                        </xsl:when>
+                                        <xsl:when test="$propertyType='org.apache.axiom.om.OMElement'">
+                                            org.apache.axiom.om.OMFactory fac = org.apache.axiom.om.OMAbstractFactory.getOMFactory();
+                                            org.apache.axiom.om.OMNamespace omNs = fac.createOMNamespace("<xsl:value-of
select="$namespace"/>", "");
+                                            org.apache.axiom.om.OMElement _value<xsl:value-of
select="$javaName"/> = fac.createOMElement("<xsl:value-of select="$propertyName"/>",
omNs);
+                                            _value<xsl:value-of select="$javaName"/>.addChild(fac.createOMText(_value<xsl:value-of
select="$javaName"/>, content));
+                                            object.set<xsl:value-of select="$javaName"/>(_value<xsl:value-of
select="$javaName"/>);
                                         </xsl:when>
                                         <xsl:otherwise>
                                               object.set<xsl:value-of select="$javaName"/>(



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message