axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r434427 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Date Thu, 24 Aug 2006 16:45:25 GMT
Author: dims
Date: Thu Aug 24 09:45:25 2006
New Revision: 434427

URL: http://svn.apache.org/viewvc?rev=434427&view=rev
Log:
oops! remove hard coded stuff"

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

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl?rev=434427&r1=434426&r2=434427&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Thu Aug 24 09:45:25 2006
@@ -1457,19 +1457,19 @@
                                             java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_BINARY)))
                                     {
                                         //MTOM aware reader - get the datahandler directly
and put it in the object
-                                        object.setBase64Binary(
+                                        object.set<xsl:value-of select="$javaName"/>(
                                                 (javax.activation.DataHandler) reader.getProperty(org.apache.axiom.om.OMConstants.DATA_HANDLER));
                                     } else {
                                         if (reader.hasText()) {
                                             //Do the usual conversion
                                             java.lang.String content = reader.getElementText();
-                                            object.setBase64Binary(
+                                            object.set<xsl:value-of select="$javaName"/>(
                                                     org.apache.axis2.databinding.utils.ConverterUtil.convertToBase64Binary(content));
                                         } else
                                         if (reader.getName().equals(new javax.xml.namespace.QName(org.apache.axiom.om.impl.MTOMConstants.XOP_NAMESPACE_URI,
org.apache.axiom.om.impl.MTOMConstants.XOP_INCLUDE)))
                                         {
                                             String id = org.apache.axiom.om.util.ElementHelper.getContentID(reader,
"UTF-8");
-                                            object.setBase64Binary(((org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder)
((org.apache.axiom.om.impl.llom.OMStAXWrapper) reader).getBuilder()).getDataHandler(id));
+                                            object.set<xsl:value-of select="$javaName"/>(((org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder)
((org.apache.axiom.om.impl.llom.OMStAXWrapper) reader).getBuilder()).getDataHandler(id));
                                         } else {
                                             throw new org.apache.axiom.om.OMException("Can't
find datahandler");
                                         }
@@ -2438,19 +2438,19 @@
                                             java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_BINARY)))
                                     {
                                         //MTOM aware reader - get the datahandler directly
and put it in the object
-                                        object.setBase64Binary(
+                                        object.set<xsl:value-of select="$javaName"/>(
                                                 (javax.activation.DataHandler) reader.getProperty(org.apache.axiom.om.OMConstants.DATA_HANDLER));
                                     } else {
                                         if (reader.hasText()) {
                                             //Do the usual conversion
                                             java.lang.String content = reader.getElementText();
-                                            object.setBase64Binary(
+                                            object.set<xsl:value-of select="$javaName"/>(
                                                     org.apache.axis2.databinding.utils.ConverterUtil.convertToBase64Binary(content));
                                         } else
                                         if (reader.getName().equals(new javax.xml.namespace.QName(org.apache.axiom.om.impl.MTOMConstants.XOP_NAMESPACE_URI,
org.apache.axiom.om.impl.MTOMConstants.XOP_INCLUDE)))
                                         {
                                             String id = org.apache.axiom.om.util.ElementHelper.getContentID(reader,
"UTF-8");
-                                            object.setBase64Binary(((org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder)
((org.apache.axiom.om.impl.llom.OMStAXWrapper) reader).getBuilder()).getDataHandler(id));
+                                            object.set<xsl:value-of select="$javaName"/>(((org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder)
((org.apache.axiom.om.impl.llom.OMStAXWrapper) reader).getBuilder()).getDataHandler(id));
                                         } else {
                                             throw new org.apache.axiom.om.OMException("Can't
find datahandler");
                                         }



---------------------------------------------------------------------
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