axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r479084 - in /webservices/axis2/trunk/java/modules: codegen/src/org/apache/axis2/wsdl/template/java/TestObjectCreationTemplate.xsl jaxbri/src/org/apache/axis2/jaxbri/template/JaxbRIDatabindingTemplate.xsl
Date Sat, 25 Nov 2006 05:24:17 GMT
Author: amilas
Date: Fri Nov 24 21:24:16 2006
New Revision: 479084

URL: http://svn.apache.org/viewvc?view=rev&rev=479084
Log:
Added the test template support to jaxbri and fix a variable name in JaxbRIDatabindingTemplate.xsl

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/TestObjectCreationTemplate.xsl
    webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/template/JaxbRIDatabindingTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/TestObjectCreationTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/TestObjectCreationTemplate.xsl?view=diff&rev=479084&r1=479083&r2=479084
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/TestObjectCreationTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/TestObjectCreationTemplate.xsl
Fri Nov 24 21:24:16 2006
@@ -152,6 +152,14 @@
 
     </xsl:template>
     <!-- #################################################################################
 -->
+    <!-- ############################   Jaxbri template   ###################################
 -->
+    <xsl:template match="databinders[@dbtype='jaxbri']">
+        //Create an object and provide it as the test object
+        public Object getTestObject(java.lang.Class type) throws Exception{
+           return type.newInstance();
+        }
+    </xsl:template>
+    <!-- #################################################################################
 -->
     <!-- ############################   none template!!!   ###############################
 -->
     <xsl:template match="databinders[@dbtype='none']">
         //Create an OMElement and provide it as the test object

Modified: webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/template/JaxbRIDatabindingTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/template/JaxbRIDatabindingTemplate.xsl?view=diff&rev=479084&r1=479083&r2=479084
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/template/JaxbRIDatabindingTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/template/JaxbRIDatabindingTemplate.xsl
Fri Nov 24 21:24:16 2006
@@ -55,11 +55,11 @@
                         JaxbRIDataSource source = new JaxbRIDataSource( <xsl:value-of
select="@type"/>.class,
                                                                         param,
                                                                         marshaller,
-                                                                        "<xsl:value-of
select='current()/qname/@nsuri'/>",
-                                                                        "<xsl:value-of
select='current()/qname/@localname'/>");
-                        org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace("<xsl:value-of
select='current()/qname/@nsuri'/>",
+                                                                        "<xsl:value-of
select="qname/@nsuri"/>",
+                                                                        "<xsl:value-of
select="qname/@localname"/>");
+                        org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace("<xsl:value-of
select="qame/@nsuri"/>",
                                                                            null);
-                        return factory.createOMElement(source, "<xsl:value-of select='current()/qname/text()'/>",
namespace);
+                        return factory.createOMElement(source, "<xsl:value-of select="qname/@localname"/>"/>",
namespace);
                     } catch (javax.xml.bind.JAXBException bex){
                         throw new RuntimeException(bex);
                     }



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