You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2006/06/01 06:02:15 UTC
svn commit: r410733 - in
/webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration:
axis2_woden_direction.h axis2_woden_msg_label.h
axis2_woden_soap_fault_code.h axis2_woden_soap_fault_subcodes.h
Author: damitha
Date: Wed May 31 21:02:14 2006
New Revision: 410733
URL: http://svn.apache.org/viewvc?rev=410733&view=rev
Log:
added new files
Added:
webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_soap_fault_code.h
webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_soap_fault_subcodes.h
Modified:
webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_direction.h
webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_msg_label.h
Modified: webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_direction.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_direction.h?rev=410733&r1=410732&r2=410733&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_direction.h (original)
+++ webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_direction.h Wed May 31 21:02:14 2006
@@ -34,15 +34,14 @@
* represented by the constant OUT
* </ul>
* This class uses the typesafe enum pattern. Applications should use the
- * constants defined in this class to specify or to
+ * public static final constants defined in this class to specify or to
* evaluate direction.
* <p>
* Examples:
* <pre>
- * AXIS2_WODEN_INTERFACE_MSG_REF_SET_DIRECTION(msg_ref, env, msg_ref->AXIS2_WODEN_IN);
- * if(msg_ref->AXIS2_WODEN_IN == AXIS2_WODEN_INTERFACE_MSG_REF_GET_DIRECTION(msg_ref, env))
- * ...
- *
+ * AXIS2_WODEN_INTERFACE_MSG_REF_SET_DIRECTION(intf_msg_ref, env, WODEN_IN);
+ * if(0 == AXIS2_STRCMP(WODEN_IN,AXIS2_WODEN_INTERFACE_GET_DIRECTION(
+ * intf_msg_ref, env)) ...
* </pre>
*
*/
@@ -81,63 +80,50 @@
void *direction,
const axis2_env_t *env);
- axis2_status_t (AXIS2_CALL *
- to_direction_free) (
+ void *(AXIS2_CALL *
+ get_direction_in) (
void *direction,
const axis2_env_t *env);
-
- axis2_hash_t *(AXIS2_CALL *
- super_objs) (
+
+ void *(AXIS2_CALL *
+ get_direction_out) (
void *direction,
const axis2_env_t *env);
-
- axis2_woden_obj_types_t (AXIS2_CALL *
- type) (
+
+ axis2_char_t *(AXIS2_CALL *
+ to_string) (
void *direction,
const axis2_env_t *env);
-
+
+
};
struct axis2_woden_direction
{
axis2_woden_direction_ops_t *ops;
- axis2_woden_direction_t *AXIS2_WODEN_IN;
- axis2_woden_direction_t *AXIS2_WODEN_OUT;
};
AXIS2_EXTERN axis2_woden_direction_t * AXIS2_CALL
axis2_woden_direction_create(
const axis2_env_t *env,
- axis2_char_t *f_value);
-
-/**
- * This is an Axis2 C internal method. This is used only from constructor
- * of the child class
- */
-AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_woden_direction_resolve_methods(
- axis2_woden_direction_t *direction,
- const axis2_env_t *env,
- axis2_woden_direction_t *direction_impl,
- axis2_hash_t *methods);
+ axis2_char_t *value);
#define AXIS2_WODEN_DIRECTION_FREE(direction, env) \
(((axis2_woden_direction_t *) direction)->ops->\
free (direction, env))
-#define AXIS2_WODEN_DIRECTION_TO_DIRECTION_FREE(direction, \
- env) \
+#define AXIS2_WODEN_DIRECTION_GET_DIRECTION_IN(direction, env) \
(((axis2_woden_direction_t *) direction)->ops->\
- to_direction_free (direction, env))
+ get_direction_in (direction, env))
-#define AXIS2_WODEN_DIRECTION_SUPER_OBJS(direction, env) \
+#define AXIS2_WODEN_DIRECTION_GET_DIRECTION_OUT(direction, env) \
(((axis2_woden_direction_t *) direction)->ops->\
- super_objs (direction, env))
+ get_direction_out (direction, env))
-#define AXIS2_WODEN_DIRECTION_TYPE(direction, env) \
+#define AXIS2_WODEN_DIRECTION_TO_STRING(direction, env) \
(((axis2_woden_direction_t *) direction)->ops->\
- type (direction, env))
+ to_string (direction, env))
/** @} */
Modified: webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_msg_label.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_msg_label.h?rev=410733&r1=410732&r2=410733&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_msg_label.h (original)
+++ webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_msg_label.h Wed May 31 21:02:14 2006
@@ -80,64 +80,71 @@
free) (
void *msg_label,
const axis2_env_t *env);
-
- axis2_status_t (AXIS2_CALL *
- to_msg_label_free) (
+
+ void *(AXIS2_CALL *
+ get_msg_label_in) (
void *msg_label,
const axis2_env_t *env);
-
- axis2_hash_t *(AXIS2_CALL *
- super_objs) (
+
+ void *(AXIS2_CALL *
+ get_msg_label_out) (
void *msg_label,
const axis2_env_t *env);
-
- axis2_woden_obj_types_t (AXIS2_CALL *
- type) (
+
+ axis2_char_t *(AXIS2_CALL *
+ to_string) (
void *msg_label,
const axis2_env_t *env);
-
+
+ axis2_bool_t (AXIS2_CALL *
+ is_valid) (
+ void *msg_label,
+ axis2_env_t **env);
+
+ axis2_bool_t (AXIS2_CALL *
+ equals) (
+ void *msg_label,
+ axis2_env_t **env,
+ axis2_woden_msg_label_t *other);
+
+
};
struct axis2_woden_msg_label
{
axis2_woden_msg_label_ops_t *ops;
- axis2_woden_msg_label_t *AXIS2_WODEN_IN;
- axis2_woden_msg_label_t *AXIS2_WODEN_OUT;
};
AXIS2_EXTERN axis2_woden_msg_label_t * AXIS2_CALL
axis2_woden_msg_label_create(
const axis2_env_t *env,
- axis2_char_t *f_value);
-
-/**
- * This is an Axis2 C internal method. This is used only from constructor
- * of the child class
- */
-AXIS2_EXTERN axis2_status_t AXIS2_CALL
-axis2_woden_msg_label_resolve_methods(
- axis2_woden_msg_label_t *msg_label,
- const axis2_env_t *env,
- axis2_woden_msg_label_t *msg_label_impl,
- axis2_hash_t *methods);
+ axis2_char_t *value,
+ axis2_bool_t valid);
#define AXIS2_WODEN_MSG_LABEL_FREE(msg_label, env) \
(((axis2_woden_msg_label_t *) msg_label)->ops->\
free (msg_label, env))
-#define AXIS2_WODEN_MSG_LABEL_TO_MSG_LABEL_FREE(msg_label, \
- env) \
+#define AXIS2_WODEN_MSG_LABEL_GET_MSG_LABEL_IN(msg_label, env) \
+ (((axis2_woden_msg_label_t *) msg_label)->ops->\
+ get_msg_label_in (msg_label, env))
+
+#define AXIS2_WODEN_MSG_LABEL_GET_MSG_LABEL_OUT(msg_label, env) \
+ (((axis2_woden_msg_label_t *) msg_label)->ops->\
+ get_msg_label_out (msg_label, env))
+
+#define AXIS2_WODEN_MSG_LABEL_TO_STRING(msg_label, env) \
(((axis2_woden_msg_label_t *) msg_label)->ops->\
- to_msg_label_free (msg_label, env))
+ to_string (msg_label, env))
-#define AXIS2_WODEN_MSG_LABEL_SUPER_OBJS(msg_label, env) \
+#define AXIS2_WODEN_MSG_LABEL_IS_VALID(msg_label, env) \
(((axis2_woden_msg_label_t *) msg_label)->ops->\
- super_objs (msg_label, env))
+ is_valid (msg_label, env))
-#define AXIS2_WODEN_MSG_LABEL_TYPE(msg_label, env) \
+#define AXIS2_WODEN_MSG_LABEL_EQUALS(msg_label, env, other) \
(((axis2_woden_msg_label_t *) msg_label)->ops->\
- type (msg_label, env))
+ equals (msg_label, env, other))
/** @} */
Added: webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_soap_fault_code.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_soap_fault_code.h?rev=410733&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_soap_fault_code.h (added)
+++ webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_soap_fault_code.h Wed May 31 21:02:14 2006
@@ -0,0 +1,132 @@
+/*
+ * Copyright 2004,2005 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.
+ */
+
+#ifndef AXIS2_WODEN_SOAP_FAULT_CODE_H
+#define AXIS2_WODEN_SOAP_FAULT_CODE_H
+
+/**
+ * @file axis2_woden_soap_fault_code.h
+ * @brief Axis2 Soap Fault Code Interface
+ * This class represents the {soap fault code} property that forms part of the
+ * SOAP extensions to the WSDL <code>axis2_woden_binding_fault</code> component.
+ * This property may contain either a QName representing the code or the xs:token #any.
+ * <p>
+ * This class will restrict the possible values to a QName reference or the string "#any".
+ * It provides methods to query whether the property contains a QName or a token and
+ * methods to retrieve the property value of the appropriate type.
+ *
+ *
+ */
+
+#include <axis2_allocator.h>
+#include <axis2_env.h>
+#include <axis2_error.h>
+#include <axis2_string.h>
+#include <axis2_const.h>
+#include <axis2_hash.h>
+#include <axis2_qname.h>
+#include <woden/axis2_woden.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+typedef struct axis2_woden_soap_fault_code axis2_woden_soap_fault_code_t;
+typedef struct axis2_woden_soap_fault_code_ops axis2_woden_soap_fault_code_ops_t;
+struct axis2_woden_ext_element;
+
+/** @defgroup axis2_woden_soap_fault_code Soap Fault Code
+ * @ingroup axis2_wsdl
+ * @{
+ */
+
+struct axis2_woden_soap_fault_code_ops
+{
+ /**
+ * Deallocate memory
+ * @return status code
+ */
+ axis2_status_t (AXIS2_CALL *
+ free) (
+ void *soap_fault_code,
+ axis2_env_t **env);
+
+ axis2_bool_t (AXIS2_CALL *
+ is_qname) (
+ void *soap_fault_code,
+ axis2_env_t **env);
+
+ axis2_bool_t (AXIS2_CALL *
+ is_token) (
+ void *soap_fault_code,
+ axis2_env_t **env);
+
+ axis2_qname_t *(AXIS2_CALL *
+ get_qname) (
+ void *soap_fault_code,
+ axis2_env_t **env);
+
+ axis2_char_t *(AXIS2_CALL *
+ get_token) (
+ void *soap_fault_code,
+ axis2_env_t **env);
+
+
+};
+
+struct axis2_woden_soap_fault_code
+{
+ axis2_woden_soap_fault_code_ops_t *ops;
+
+};
+
+AXIS2_DECLARE(axis2_woden_soap_fault_code_t *)
+axis2_woden_soap_fault_code_create(
+ axis2_env_t **env,
+ axis2_char_t *token,
+ axis2_qname_t *code_qn);
+
+AXIS2_DECLARE(void *)
+axis2_woden_soap_fault_code_get_soap_fault_code_any(
+ axis2_env_t **env);
+
+#define AXIS2_WODEN_SOAP_FAULT_CODE_FREE(soap_fault_code, env) \
+ (((axis2_woden_soap_fault_code_t *) soap_fault_code)->ops->\
+ free (soap_fault_code, env))
+
+#define AXIS2_WODEN_SOAP_FAULT_CODE_IS_QNAME(soap_fault_code, env) \
+ (((axis2_woden_soap_fault_code_t *) soap_fault_code)->ops->\
+ is_qname (soap_fault_code, env))
+
+#define AXIS2_WODEN_SOAP_FAULT_CODE_IS_TOKEN(soap_fault_code, env) \
+ (((axis2_woden_soap_fault_code_t *) soap_fault_code)->ops->\
+ is_token (soap_fault_code, env))
+
+#define AXIS2_WODEN_SOAP_FAULT_CODE_GET_QNAME(soap_fault_code, env) \
+ (((axis2_woden_soap_fault_code_t *) soap_fault_code)->ops->\
+ get_qname (soap_fault_code, env))
+
+#define AXIS2_WODEN_SOAP_FAULT_CODE_GET_TOKEN(soap_fault_code, env) \
+ (((axis2_woden_soap_fault_code_t *) soap_fault_code)->ops->\
+ get_token (soap_fault_code, env))
+
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_WODEN_SOAP_FAULT_CODE_H */
Added: webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_soap_fault_subcodes.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_soap_fault_subcodes.h?rev=410733&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_soap_fault_subcodes.h (added)
+++ webservices/axis2/trunk/c/woden/include/woden/wsdl20/enumeration/axis2_woden_soap_fault_subcodes.h Wed May 31 21:02:14 2006
@@ -0,0 +1,134 @@
+/*
+ * Copyright 2004,2005 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.
+ */
+
+#ifndef AXIS2_WODEN_SOAP_FAULT_SUBCODES_H
+#define AXIS2_WODEN_SOAP_FAULT_SUBCODES_H
+
+/**
+ * @file axis2_woden_soap_fault_subcodes.h
+ * @brief Axis2 Soap Fault Subcodes Interface
+ * This class represents the {soap fault subcodes} property that forms part of the
+ * SOAP extensions to the WSDL <code>woden_binding_fault</code> component.
+ * This property may contain either a list of QNames representing the subcodes or
+ * the xs:token #any.
+ * <p>
+ * This class will restrict the possible values to a collection of QNames or the string "#any".
+ * It provides methods to query whether the property contains QNames or a token and
+ * methods to retrieve the property value of the appropriate type.
+ *
+ *
+ */
+
+#include <axis2_allocator.h>
+#include <axis2_env.h>
+#include <axis2_error.h>
+#include <axis2_string.h>
+#include <axis2_const.h>
+#include <axis2_hash.h>
+#include <axis2_qname.h>
+#include <woden/axis2_woden.h>
+#include <axis2_array_list.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+typedef struct axis2_woden_soap_fault_subcodes axis2_woden_soap_fault_subcodes_t;
+typedef struct axis2_woden_soap_fault_subcodes_ops axis2_woden_soap_fault_subcodes_ops_t;
+struct axis2_woden_ext_element;
+
+/** @defgroup axis2_woden_soap_fault_subcodes Soap Fault Subcodes
+ * @ingroup axis2_wsdl
+ * @{
+ */
+
+struct axis2_woden_soap_fault_subcodes_ops
+{
+ /**
+ * Deallocate memory
+ * @return status subcodes
+ */
+ axis2_status_t (AXIS2_CALL *
+ free) (
+ void *soap_fault_subcodes,
+ axis2_env_t **env);
+
+ axis2_bool_t (AXIS2_CALL *
+ is_qnames) (
+ void *soap_fault_subcodes,
+ axis2_env_t **env);
+
+ axis2_bool_t (AXIS2_CALL *
+ is_token) (
+ void *soap_fault_subcodes,
+ axis2_env_t **env);
+
+ axis2_array_list_t *(AXIS2_CALL *
+ get_qnames) (
+ void *soap_fault_subcodes,
+ axis2_env_t **env);
+
+ axis2_char_t *(AXIS2_CALL *
+ get_token) (
+ void *soap_fault_subcodes,
+ axis2_env_t **env);
+
+
+};
+
+struct axis2_woden_soap_fault_subcodes
+{
+ axis2_woden_soap_fault_subcodes_ops_t *ops;
+
+};
+
+AXIS2_DECLARE(axis2_woden_soap_fault_subcodes_t *)
+axis2_woden_soap_fault_subcodes_create(
+ axis2_env_t **env,
+ axis2_char_t *token,
+ axis2_array_list_t *subcode_qns);
+
+AXIS2_DECLARE(void *)
+axis2_woden_soap_fault_subcodes_get_soap_fault_subcodes_any(
+ axis2_env_t **env);
+
+#define AXIS2_WODEN_SOAP_FAULT_SUBCODES_FREE(soap_fault_subcodes, env) \
+ (((axis2_woden_soap_fault_subcodes_t *) soap_fault_subcodes)->ops->\
+ free (soap_fault_subcodes, env))
+
+#define AXIS2_WODEN_SOAP_FAULT_SUBCODES_IS_QNAMES(soap_fault_subcodes, env) \
+ (((axis2_woden_soap_fault_subcodes_t *) soap_fault_subcodes)->ops->\
+ is_qnames (soap_fault_subcodes, env))
+
+#define AXIS2_WODEN_SOAP_FAULT_SUBCODES_IS_TOKEN(soap_fault_subcodes, env) \
+ (((axis2_woden_soap_fault_subcodes_t *) soap_fault_subcodes)->ops->\
+ is_token (soap_fault_subcodes, env))
+
+#define AXIS2_WODEN_SOAP_FAULT_SUBCODES_GET_QNAMES(soap_fault_subcodes, env) \
+ (((axis2_woden_soap_fault_subcodes_t *) soap_fault_subcodes)->ops->\
+ get_qnames (soap_fault_subcodes, env))
+
+#define AXIS2_WODEN_SOAP_FAULT_SUBCODES_GET_TOKEN(soap_fault_subcodes, env) \
+ (((axis2_woden_soap_fault_subcodes_t *) soap_fault_subcodes)->ops->\
+ get_token (soap_fault_subcodes, env))
+
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+#endif /* AXIS2_WODEN_SOAP_FAULT_SUBCODES_H */
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org