woden_wsdl10_msg_ref.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef WODEN_WSDL10_MSG_REF_H
00018 #define WODEN_WSDL10_MSG_REF_H
00019 
00026 #include <woden.h>
00027 #include <woden_wsdl10_msg_ref_element.h>
00028 #include <woden_nested_configurable.h>
00029 #include <axis2_qname.h>
00030 
00036 typedef union woden_wsdl10_msg_ref_base woden_wsdl10_msg_ref_base_t;
00037 typedef struct woden_wsdl10_msg_ref woden_wsdl10_msg_ref_t;
00038 typedef struct woden_wsdl10_msg_ref_ops woden_wsdl10_msg_ref_ops_t;
00039 
00040 
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045 
00046 struct woden_wsdl10_msg_ref_ops
00047 {
00052     axis2_status_t (AXIS2_CALL *
00053     free) (void *msg_ref,
00054             const axis2_env_t *env);
00055 
00056     axis2_hash_t *(AXIS2_CALL *
00057     super_objs) (void *msg_ref,
00058             const axis2_env_t *env);
00059 
00060     woden_obj_types_t (AXIS2_CALL *
00061     type) (void *msg_ref,
00062             const axis2_env_t *env);
00066     struct woden_nested_configurable *(AXIS2_CALL *
00067     get_base_impl) (
00068             void *msg_ref,
00069             const axis2_env_t *env);
00070 
00071     axis2_qname_t *(AXIS2_CALL *
00072     get_qname) (
00073             void *interface_op,
00074             const axis2_env_t *env);
00075 
00076     void *(AXIS2_CALL *
00077     to_element) (
00078             void *interface_op,
00079             const axis2_env_t *env);
00080 
00081 };
00082 
00083 union woden_wsdl10_msg_ref_base
00084 {
00085     woden_nested_configurable_t nested_configurable;
00086     woden_wsdl10_msg_ref_element_t msg_ref_element;
00087 };
00088 
00089 struct woden_wsdl10_msg_ref
00090 {
00091     woden_wsdl10_msg_ref_base_t base;
00092     woden_wsdl10_msg_ref_ops_t *ops;
00093 };
00094 
00095 AXIS2_EXTERN woden_wsdl10_msg_ref_t * AXIS2_CALL
00096 woden_wsdl10_msg_ref_create(
00097         const axis2_env_t *env);
00098 
00099 
00100 /***************************Woden C Internal Methods***************************/
00101 AXIS2_EXTERN woden_wsdl10_msg_ref_t * AXIS2_CALL
00102 woden_wsdl10_msg_ref_to_msg_ref_element(
00103         void *msg_ref,
00104         const axis2_env_t *env);
00105 
00106 AXIS2_EXTERN woden_wsdl10_msg_ref_t * AXIS2_CALL
00107 woden_wsdl10_msg_ref_to_nested_configurable(
00108         void *msg_ref,
00109         const axis2_env_t *env);
00110 
00111 AXIS2_EXTERN woden_wsdl10_msg_ref_t * AXIS2_CALL
00112 woden_wsdl10_msg_ref_to_configurable(
00113         void *msg_ref,
00114         const axis2_env_t *env);
00115 
00116 AXIS2_EXTERN woden_wsdl10_msg_ref_t * AXIS2_CALL
00117 woden_wsdl10_msg_ref_to_nested_element(
00118         void *msg_ref,
00119         const axis2_env_t *env);
00120 
00121 AXIS2_EXTERN woden_wsdl10_msg_ref_t * AXIS2_CALL
00122 woden_wsdl10_msg_ref_to_configurable_element(
00123         void *msg_ref,
00124         const axis2_env_t *env);
00125 
00126 AXIS2_EXTERN woden_wsdl10_msg_ref_t * AXIS2_CALL
00127 woden_wsdl10_msg_ref_to_documentable_element(
00128         void *msg_ref,
00129         const axis2_env_t *env);
00130 
00131 AXIS2_EXTERN woden_wsdl10_msg_ref_t * AXIS2_CALL
00132 woden_wsdl10_msg_ref_to_documentable(
00133         void *msg_ref,
00134         const axis2_env_t *env);
00135 
00136 AXIS2_EXTERN woden_wsdl10_msg_ref_t * AXIS2_CALL
00137 woden_wsdl10_msg_ref_to_attr_extensible(
00138         void *msg_ref,
00139         const axis2_env_t *env);
00140 
00141 AXIS2_EXTERN woden_wsdl10_msg_ref_t * AXIS2_CALL
00142 woden_wsdl10_msg_ref_to_element_extensible(
00143         void *msg_ref,
00144         const axis2_env_t *env);
00145 
00146 
00147 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00148 woden_wsdl10_msg_ref_resolve_methods(
00149         woden_wsdl10_msg_ref_t *msg_ref,
00150         const axis2_env_t *env,
00151         woden_wsdl10_msg_ref_t *msg_ref_impl,
00152         axis2_hash_t *methods);
00153 /************************End of Woden C Internal Methods***********************/
00154 
00155 #define WODEN_WSDL10_MSG_REF_FREE(msg_ref, env) \
00156       (((woden_wsdl10_msg_ref_t *) msg_ref)->ops->\
00157        free(msg_ref, env))
00158 
00159 #define WODEN_WSDL10_MSG_REF_SUPER_OBJS(msg_ref, env) \
00160       (((woden_wsdl10_msg_ref_t *) msg_ref)->ops->\
00161        super_objs(msg_ref, env))
00162 
00163 #define WODEN_WSDL10_MSG_REF_TYPE(msg_ref, env) \
00164       (((woden_wsdl10_msg_ref_t *) msg_ref)->ops->\
00165        type(msg_ref, env))
00166 
00167 #define WODEN_WSDL10_MSG_REF_GET_BASE_IMPL(msg_ref, env) \
00168       (((woden_wsdl10_msg_ref_t *) msg_ref)->ops->\
00169        get_base_impl(msg_ref, env))
00170 
00171 #define WODEN_WSDL10_MSG_REF_GET_QNAME(msg_ref, env) \
00172       (((woden_wsdl10_msg_ref_t *) msg_ref)->ops->\
00173          get_qname(msg_ref, env))
00174 
00175 #define WODEN_WSDL10_MSG_REF_TO_ELEMENT(msg_ref, env) \
00176       (((woden_wsdl10_msg_ref_t *) msg_ref)->ops->\
00177          to_element(msg_ref, env))
00178 
00180 #ifdef __cplusplus
00181 }
00182 #endif
00183 #endif /* WODEN_WSDL10_MSG_REF_H */

Generated on Thu Aug 31 17:32:37 2006 for Axis2/C by  doxygen 1.4.6