You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2006/12/20 13:23:42 UTC
svn commit: r489066 [3/24] - in
/webservices/axis2/branches/java/1_1/modules: adb-codegen/
adb-codegen/src/org/apache/axis2/schema/
adb-codegen/src/org/apache/axis2/schema/i18n/
adb-codegen/src/org/apache/axis2/schema/template/ adb-codegen/test-resourc...
Modified: webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBDatabindingTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBDatabindingTemplate.xsl?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBDatabindingTemplate.xsl (original)
+++ webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBDatabindingTemplate.xsl Wed Dec 20 04:23:24 2006
@@ -1,3 +1,20 @@
+<!--
+ !
+ ! Copyright 2006 The Apache Software Foundation.
+ !
+ ! Licensed under the Apache License, Version 2.0 (the "License");
+ ! you may not use this file except in compliance with the License.
+ ! You may obtain a copy of the License at
+ !
+ ! http://www.apache.org/licenses/LICENSE-2.0
+ !
+ ! Unless required by applicable law or agreed to in writing, software
+ ! distributed under the License is distributed on an "AS IS" BASIS,
+ ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ! See the License for the specific language governing permissions and
+ ! limitations under the License.
+ !-->
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:key name="paramsIn" match="//databinders/param[@direction='in']" use="@type"/>
Modified: webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateHeader.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateHeader.xsl?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateHeader.xsl (original)
+++ webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateHeader.xsl Wed Dec 20 04:23:24 2006
@@ -1,205 +1,222 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="text"/>
-
- <!-- cater for the multiple classes - wrappped mode -->
- <xsl:template match="/classs">
- <xsl:variable name="name"><xsl:value-of select="@name"/></xsl:variable>
- <xsl:variable name="axis2_name">axi2_<xsl:value-of select="@name"/></xsl:variable>
- <xsl:variable name="caps_axis2_name">AXIS2_<xsl:value-of select="@caps-name"/></xsl:variable>
- #ifndef <xsl:value-of select="$caps_axis2_name"/>_H
- #define <xsl:value-of select="$caps_axis2_name"/>_H
-
- /**
- * <xsl:value-of select="$axis2_name"/>.h
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis2 Java version: #axisVersion# #today#
- */
- <xsl:for-each select="property">
- <xsl:if test="@ours">
- <xsl:variable name="propertyType"><xsl:if test="@ours">axis2_</xsl:if><xsl:value-of select="@type"></xsl:value-of></xsl:variable>
- #include "<xsl:value-of select="$propertyType"/>.h"
- </xsl:if>
- </xsl:for-each>
-
- #include <stdio.h>
- #include <axiom.h>
- #include <axis2_util.h>
- #include <axiom_soap.h>
- #include <axis2_client.h>
-
- #ifdef __cplusplus
- extern "C"
- {
- #endif
-
- #define AXIS2_DEFAULT_DIGIT_LIMIT 128
-
- /**
- * <xsl:value-of select="$axis2_name"/> wrapped class classes ( structure for C )
- */
-
- <xsl:apply-templates/>
-
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif /* <xsl:value-of select="$caps_axis2_name"/>_H */
- </xsl:template>
-
- <!--cater for the multiple classes - unwrappped mode -->
- <xsl:template match="/">
- <xsl:apply-templates/>
- </xsl:template>
-
-
- <xsl:template match="class">
- <xsl:variable name="name"><xsl:value-of select="@name"/></xsl:variable>
- <xsl:variable name="axis2_name">axis2_<xsl:value-of select="@name"/></xsl:variable>
- <xsl:variable name="caps_axis2_name">AXIS2_<xsl:value-of select="@caps-name"/></xsl:variable>
-
- #ifndef <xsl:value-of select="$caps_axis2_name"/>_H
- #define <xsl:value-of select="$caps_axis2_name"/>_H
-
- /**
- * <xsl:value-of select="$axis2_name"/>.h
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis2 version: #axisVersion# #today#
- */
-
- <xsl:for-each select="property">
- <xsl:if test="@ours">
- <xsl:variable name="propertyType"><xsl:if test="@ours">axis2_</xsl:if><xsl:value-of select="@type"></xsl:value-of></xsl:variable>
- #include "<xsl:value-of select="$propertyType"/>.h"
- </xsl:if>
- </xsl:for-each>
- <!--include special headers-->
- <xsl:if test="property/@type='axis2_date_time_t*'">
- #include <axis2_date_time.h>
- </xsl:if>
- <xsl:if test="property/@type='axis2_base64_binary_t*'">
- #include <axis2_base64_binary.h>
- </xsl:if>
-
- #include <stdio.h>
- #include <axiom.h>
- #include <axis2_util.h>
- #include <axiom_soap.h>
- #include <axis2_client.h>
-
- #ifdef __cplusplus
- extern "C"
- {
- #endif
-
- #define AXIS2_DEFAULT_DIGIT_LIMIT 64
- /**
- * <xsl:value-of select="$axis2_name"/> class class
- */
- typedef struct <xsl:value-of select="$axis2_name"/><xsl:text> </xsl:text><xsl:value-of select="$axis2_name"/>_t;
- typedef struct <xsl:value-of select="$axis2_name"/>_ops<xsl:text> </xsl:text><xsl:value-of select="$axis2_name"/>_ops_t;
-
- struct <xsl:value-of select="$axis2_name"/>_ops
- {
- axis2_status_t (AXIS2_CALL*
- free )(
- <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
- const axis2_env_t *env);
-
- <xsl:if test="not(@type)">
- axis2_qname_t* (AXIS2_CALL*
- get_qname )(
- <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
- const axis2_env_t *env);
- </xsl:if>
-
- axiom_node_t* (AXIS2_CALL*
- parse_om )(
- <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
- const axis2_env_t *env,
- axiom_node_t* <xsl:value-of select="$name"/>_om_node);
-
- axis2_status_t (AXIS2_CALL*
- build_om )(
- <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
- const axis2_env_t *env, axiom_node_t* parent);
-
- <xsl:for-each select="property">
- <xsl:variable name="propertyType">
- <xsl:choose>
- <xsl:when test="@isarray">axis2_array_list_t*</xsl:when>
- <xsl:when test="not(@type)">axiom_node_t*</xsl:when> <!-- these are anonymous -->
- <xsl:when test="@ours">axis2_<xsl:value-of select="@type"/>_t*</xsl:when>
- <xsl:otherwise><xsl:value-of select="@type"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:variable name="propertyName"><xsl:value-of select="@name"></xsl:value-of></xsl:variable>
- <xsl:variable name="CName"><xsl:value-of select="@cname"></xsl:value-of></xsl:variable>
-
- /**
- * Auto generated getter method
- * @return <xsl:value-of select="$propertyName"/>
- */
- <xsl:value-of select="$propertyType"/> (AXIS2_CALL*
- get_<xsl:value-of select="$CName"/>)(
- <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
- const axis2_env_t *env);
-
- /**
- * Auto generated setter method
- * @param param <xsl:value-of select="$propertyName"/>
- */
- axis2_status_t (AXIS2_CALL*
- set_<xsl:value-of select="$CName"/>)(
- <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
- const axis2_env_t *env,
- <xsl:value-of select="$propertyType"/><xsl:text> </xsl:text> param_<xsl:value-of select="$CName"/>);
-
-
- </xsl:for-each>
- };
- struct <xsl:value-of select="$axis2_name"/>
- {
- <xsl:value-of select="$axis2_name"/>_ops_t* ops;
- };
-
- AXIS2_EXTERN <xsl:value-of select="$axis2_name"/>_t* AXIS2_CALL
- <xsl:value-of select="$axis2_name"/>_create(
- const axis2_env_t *env );
-
-
- #define <xsl:value-of select="$caps_axis2_name"/>_FREE(<xsl:value-of select="$name"/>, env) \
- ((<xsl:value-of select="$name"/>)->ops->free(<xsl:value-of select="$name"/>, env))
- <xsl:if test="not(@type)">
- #define <xsl:value-of select="$caps_axis2_name"/>_GET_QNAME(<xsl:value-of select="$name"/>, env) \
- ((<xsl:value-of select="$name"/>)->ops->get_qname(<xsl:value-of select="$name"/>, env))
- </xsl:if>
- #define <xsl:value-of select="$caps_axis2_name"/>_PARSE_OM(<xsl:value-of select="$name"/>, env, node) \
- ((<xsl:value-of select="$name"/>)->ops->parse_om(<xsl:value-of select="$name"/>, env, node))
- #define <xsl:value-of select="$caps_axis2_name"/>_BUILD_OM(<xsl:value-of select="$name"/>, env, parent) \
- ((<xsl:value-of select="$name"/>)->ops->build_om(<xsl:value-of select="$name"/>, env, parent))
-
- <xsl:for-each select="property">
- <xsl:variable name="propertyType"><xsl:value-of select="@type"></xsl:value-of></xsl:variable>
- <xsl:variable name="propertyName"><xsl:value-of select="@name"></xsl:value-of></xsl:variable>
- <xsl:variable name="capspropertyName"><xsl:value-of select="@caps-name"></xsl:value-of></xsl:variable>
- <xsl:variable name="CName"><xsl:value-of select="@cname"></xsl:value-of></xsl:variable>
- <xsl:variable name="capsCName"><xsl:value-of select="@caps-cname"></xsl:value-of></xsl:variable>
-
- #define <xsl:value-of select="$caps_axis2_name"/>_GET_<xsl:value-of select="$capsCName"/>(<xsl:value-of select="$name"/>, env) \
- ((<xsl:value-of select="$name"/>)->ops->get_<xsl:value-of select="$CName"/>(<xsl:value-of select="$name"/>, env))
-
- #define <xsl:value-of select="$caps_axis2_name"/>_SET_<xsl:value-of select="$capsCName"/>(<xsl:value-of select="$name"/>, env, param) \
- ((<xsl:value-of select="$name"/>)->ops->set_<xsl:value-of select="$CName"/>(<xsl:value-of select="$name"/>, env, param))
-
- </xsl:for-each>
- #ifdef __cplusplus
- }
- #endif
-
- #endif /* <xsl:value-of select="$caps_axis2_name"/>_H */
- </xsl:template>
-</xsl:stylesheet>
+<!--
+ !
+ ! Copyright 2006 The Apache Software Foundation.
+ !
+ ! Licensed under the Apache License, Version 2.0 (the "License");
+ ! you may not use this file except in compliance with the License.
+ ! You may obtain a copy of the License at
+ !
+ ! http://www.apache.org/licenses/LICENSE-2.0
+ !
+ ! Unless required by applicable law or agreed to in writing, software
+ ! distributed under the License is distributed on an "AS IS" BASIS,
+ ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ! See the License for the specific language governing permissions and
+ ! limitations under the License.
+ !-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="text"/>
+
+ <!-- cater for the multiple classes - wrappped mode -->
+ <xsl:template match="/classs">
+ <xsl:variable name="name"><xsl:value-of select="@name"/></xsl:variable>
+ <xsl:variable name="axis2_name">axi2_<xsl:value-of select="@name"/></xsl:variable>
+ <xsl:variable name="caps_axis2_name">AXIS2_<xsl:value-of select="@caps-name"/></xsl:variable>
+ #ifndef <xsl:value-of select="$caps_axis2_name"/>_H
+ #define <xsl:value-of select="$caps_axis2_name"/>_H
+
+ /**
+ * <xsl:value-of select="$axis2_name"/>.h
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 Java version: #axisVersion# #today#
+ */
+ <xsl:for-each select="property">
+ <xsl:if test="@ours">
+ <xsl:variable name="propertyType"><xsl:if test="@ours">axis2_</xsl:if><xsl:value-of select="@type"></xsl:value-of></xsl:variable>
+ #include "<xsl:value-of select="$propertyType"/>.h"
+ </xsl:if>
+ </xsl:for-each>
+
+ #include <stdio.h>
+ #include <axiom.h>
+ #include <axis2_util.h>
+ #include <axiom_soap.h>
+ #include <axis2_client.h>
+
+ #ifdef __cplusplus
+ extern "C"
+ {
+ #endif
+
+ #define AXIS2_DEFAULT_DIGIT_LIMIT 128
+
+ /**
+ * <xsl:value-of select="$axis2_name"/> wrapped class classes ( structure for C )
+ */
+
+ <xsl:apply-templates/>
+
+
+ #ifdef __cplusplus
+ }
+ #endif
+
+ #endif /* <xsl:value-of select="$caps_axis2_name"/>_H */
+ </xsl:template>
+
+ <!--cater for the multiple classes - unwrappped mode -->
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+
+ <xsl:template match="class">
+ <xsl:variable name="name"><xsl:value-of select="@name"/></xsl:variable>
+ <xsl:variable name="axis2_name">axis2_<xsl:value-of select="@name"/></xsl:variable>
+ <xsl:variable name="caps_axis2_name">AXIS2_<xsl:value-of select="@caps-name"/></xsl:variable>
+
+ #ifndef <xsl:value-of select="$caps_axis2_name"/>_H
+ #define <xsl:value-of select="$caps_axis2_name"/>_H
+
+ /**
+ * <xsl:value-of select="$axis2_name"/>.h
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: #axisVersion# #today#
+ */
+
+ <xsl:for-each select="property">
+ <xsl:if test="@ours">
+ <xsl:variable name="propertyType"><xsl:if test="@ours">axis2_</xsl:if><xsl:value-of select="@type"></xsl:value-of></xsl:variable>
+ #include "<xsl:value-of select="$propertyType"/>.h"
+ </xsl:if>
+ </xsl:for-each>
+ <!--include special headers-->
+ <xsl:if test="property/@type='axis2_date_time_t*'">
+ #include <axis2_date_time.h>
+ </xsl:if>
+ <xsl:if test="property/@type='axis2_base64_binary_t*'">
+ #include <axis2_base64_binary.h>
+ </xsl:if>
+
+ #include <stdio.h>
+ #include <axiom.h>
+ #include <axis2_util.h>
+ #include <axiom_soap.h>
+ #include <axis2_client.h>
+
+ #ifdef __cplusplus
+ extern "C"
+ {
+ #endif
+
+ #define AXIS2_DEFAULT_DIGIT_LIMIT 64
+ /**
+ * <xsl:value-of select="$axis2_name"/> class class
+ */
+ typedef struct <xsl:value-of select="$axis2_name"/><xsl:text> </xsl:text><xsl:value-of select="$axis2_name"/>_t;
+ typedef struct <xsl:value-of select="$axis2_name"/>_ops<xsl:text> </xsl:text><xsl:value-of select="$axis2_name"/>_ops_t;
+
+ struct <xsl:value-of select="$axis2_name"/>_ops
+ {
+ axis2_status_t (AXIS2_CALL*
+ free )(
+ <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
+ const axis2_env_t *env);
+
+ <xsl:if test="not(@type)">
+ axis2_qname_t* (AXIS2_CALL*
+ get_qname )(
+ <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
+ const axis2_env_t *env);
+ </xsl:if>
+
+ axiom_node_t* (AXIS2_CALL*
+ parse_om )(
+ <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
+ const axis2_env_t *env,
+ axiom_node_t* <xsl:value-of select="$name"/>_om_node);
+
+ axis2_status_t (AXIS2_CALL*
+ build_om )(
+ <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
+ const axis2_env_t *env, axiom_node_t* parent);
+
+ <xsl:for-each select="property">
+ <xsl:variable name="propertyType">
+ <xsl:choose>
+ <xsl:when test="@isarray">axis2_array_list_t*</xsl:when>
+ <xsl:when test="not(@type)">axiom_node_t*</xsl:when> <!-- these are anonymous -->
+ <xsl:when test="@ours">axis2_<xsl:value-of select="@type"/>_t*</xsl:when>
+ <xsl:otherwise><xsl:value-of select="@type"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="propertyName"><xsl:value-of select="@name"></xsl:value-of></xsl:variable>
+ <xsl:variable name="CName"><xsl:value-of select="@cname"></xsl:value-of></xsl:variable>
+
+ /**
+ * Auto generated getter method
+ * @return <xsl:value-of select="$propertyName"/>
+ */
+ <xsl:value-of select="$propertyType"/> (AXIS2_CALL*
+ get_<xsl:value-of select="$CName"/>)(
+ <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
+ const axis2_env_t *env);
+
+ /**
+ * Auto generated setter method
+ * @param param <xsl:value-of select="$propertyName"/>
+ */
+ axis2_status_t (AXIS2_CALL*
+ set_<xsl:value-of select="$CName"/>)(
+ <xsl:value-of select="$axis2_name"/>_t*<xsl:text> </xsl:text><xsl:value-of select="$name"/>,
+ const axis2_env_t *env,
+ <xsl:value-of select="$propertyType"/><xsl:text> </xsl:text> param_<xsl:value-of select="$CName"/>);
+
+
+ </xsl:for-each>
+ };
+ struct <xsl:value-of select="$axis2_name"/>
+ {
+ <xsl:value-of select="$axis2_name"/>_ops_t* ops;
+ };
+
+ AXIS2_EXTERN <xsl:value-of select="$axis2_name"/>_t* AXIS2_CALL
+ <xsl:value-of select="$axis2_name"/>_create(
+ const axis2_env_t *env );
+
+
+ #define <xsl:value-of select="$caps_axis2_name"/>_FREE(<xsl:value-of select="$name"/>, env) \
+ ((<xsl:value-of select="$name"/>)->ops->free(<xsl:value-of select="$name"/>, env))
+ <xsl:if test="not(@type)">
+ #define <xsl:value-of select="$caps_axis2_name"/>_GET_QNAME(<xsl:value-of select="$name"/>, env) \
+ ((<xsl:value-of select="$name"/>)->ops->get_qname(<xsl:value-of select="$name"/>, env))
+ </xsl:if>
+ #define <xsl:value-of select="$caps_axis2_name"/>_PARSE_OM(<xsl:value-of select="$name"/>, env, node) \
+ ((<xsl:value-of select="$name"/>)->ops->parse_om(<xsl:value-of select="$name"/>, env, node))
+ #define <xsl:value-of select="$caps_axis2_name"/>_BUILD_OM(<xsl:value-of select="$name"/>, env, parent) \
+ ((<xsl:value-of select="$name"/>)->ops->build_om(<xsl:value-of select="$name"/>, env, parent))
+
+ <xsl:for-each select="property">
+ <xsl:variable name="propertyType"><xsl:value-of select="@type"></xsl:value-of></xsl:variable>
+ <xsl:variable name="propertyName"><xsl:value-of select="@name"></xsl:value-of></xsl:variable>
+ <xsl:variable name="capspropertyName"><xsl:value-of select="@caps-name"></xsl:value-of></xsl:variable>
+ <xsl:variable name="CName"><xsl:value-of select="@cname"></xsl:value-of></xsl:variable>
+ <xsl:variable name="capsCName"><xsl:value-of select="@caps-cname"></xsl:value-of></xsl:variable>
+
+ #define <xsl:value-of select="$caps_axis2_name"/>_GET_<xsl:value-of select="$capsCName"/>(<xsl:value-of select="$name"/>, env) \
+ ((<xsl:value-of select="$name"/>)->ops->get_<xsl:value-of select="$CName"/>(<xsl:value-of select="$name"/>, env))
+
+ #define <xsl:value-of select="$caps_axis2_name"/>_SET_<xsl:value-of select="$capsCName"/>(<xsl:value-of select="$name"/>, env, param) \
+ ((<xsl:value-of select="$name"/>)->ops->set_<xsl:value-of select="$CName"/>(<xsl:value-of select="$name"/>, env, param))
+
+ </xsl:for-each>
+ #ifdef __cplusplus
+ }
+ #endif
+
+ #endif /* <xsl:value-of select="$caps_axis2_name"/>_H */
+ </xsl:template>
+</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org