woden_wsdl10_msg_ref_element.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_ELEMENT_H
00018 #define WODEN_WSDL10_MSG_REF_ELEMENT_H
00019 
00027 #include <axis2_allocator.h>
00028 #include <axis2_env.h>
00029 #include <axis2_error.h>
00030 #include <axis2_string.h>
00031 #include <axis2_utils.h>
00032 #include <axis2_hash.h>
00033 #include <axis2_qname.h>
00034 #include <axis2_uri.h>
00035 #include <axis2_array_list.h>
00036 #include <woden.h>
00037 #include <woden_documentable_element.h>
00038 #include <woden_configurable_element.h>
00039 #include <woden_nested_element.h>
00040 
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045 
00046 typedef struct woden_wsdl10_msg_ref_element woden_wsdl10_msg_ref_element_t;
00047 typedef struct woden_wsdl10_msg_ref_element_ops woden_wsdl10_msg_ref_element_ops_t;
00048 typedef union woden_wsdl10_msg_ref_element_base woden_wsdl10_msg_ref_element_base_t;
00049 
00055 struct woden_wsdl10_msg_ref_element_ops
00056 {
00061     axis2_status_t (AXIS2_CALL *
00062     free) (
00063             void *msg_ref_element,
00064             const axis2_env_t *env);
00065  
00066     woden_obj_types_t (AXIS2_CALL *
00067     type) (
00068             void *msg_ref_element,
00069             const axis2_env_t *env);
00070     
00071     axis2_status_t (AXIS2_CALL *
00072     set_part) (
00073             void *iface_fault_ele,
00074             const axis2_env_t *env,
00075             void *part);
00076 
00077     void *(AXIS2_CALL *
00078     get_part) (
00079             void *iface_fault_ele,
00080             const axis2_env_t *env);
00081  
00082     axis2_char_t *(AXIS2_CALL *
00083     get_msg_content_model) (
00084             void *iface_fault_ele,
00085             const axis2_env_t *env);
00086  
00087     axis2_status_t (AXIS2_CALL *
00088     set_qname) (
00089             void *iface_fault_ele,
00090             const axis2_env_t *env,
00091             axis2_qname_t *element);
00092 
00093     axis2_qname_t *(AXIS2_CALL *
00094     get_qname) (
00095             void *iface_fault_ele,
00096             const axis2_env_t *env);
00097     
00098 };
00099 
00100 union woden_wsdl10_msg_ref_element_base
00101 {
00102     woden_documentable_element_t documentable_element;
00103     woden_configurable_element_t configurable_element;
00104     woden_nested_element_t nested_element;
00105 };
00106 
00107 struct woden_wsdl10_msg_ref_element
00108 {
00109     woden_wsdl10_msg_ref_element_base_t base;
00110     woden_wsdl10_msg_ref_element_ops_t *ops;
00111 };
00112 
00113 AXIS2_EXTERN woden_wsdl10_msg_ref_element_t * AXIS2_CALL
00114 woden_wsdl10_msg_ref_element_create(
00115         const axis2_env_t *env);
00116 
00117 /************************Woden C Internal Methods******************************/
00118 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00119 woden_wsdl10_msg_ref_element_resolve_methods(
00120         woden_wsdl10_msg_ref_element_t *msg_ref_element,
00121         const axis2_env_t *env,
00122         axis2_hash_t *methods);
00123 /************************End of Woden C Internal Methods***********************/
00124 
00125 #define WODEN_WSDL10_MSG_REF_ELEMENT_FREE(msg_ref_element, env) \
00126       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00127          free (msg_ref_element, env))
00128 
00129 #define WODEN_WSDL10_MSG_REF_ELEMENT_TYPE(msg_ref_element, env) \
00130       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00131          type (msg_ref_element, env))
00132 
00133 #define WODEN_WSDL10_MSG_REF_ELEMENT_SET_PART(msg_ref_element, env, part) \
00134       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00135          set_part (msg_ref_element, env, part))
00136 
00137 #define WODEN_WSDL10_MSG_REF_ELEMENT_GET_PART(msg_ref_element, env) \
00138       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00139         get_part  (msg_ref_element, env))
00140 
00141 #define WODEN_WSDL10_MSG_REF_ELEMENT_GET_MSG_CONTENT_MODEL(msg_ref_element, env) \
00142       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00143         get_msg_content_model  (msg_ref_element, env))
00144 
00145 #define WODEN_WSDL10_MSG_REF_ELEMENT_SET_QNAME(msg_ref_element, env, element) \
00146       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00147         set_qname  (msg_ref_element, env, element))
00148 
00149 #define WODEN_WSDL10_MSG_REF_ELEMENT_GET_QNAME(msg_ref_element, env) \
00150       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00151         get_qname  (msg_ref_element, env))
00152 
00153 
00155 #ifdef __cplusplus
00156 }
00157 #endif
00158 #endif /* WODEN_WSDL10_MSG_REF_ELEMENT_H */

Generated on Thu Oct 26 21:00:12 2006 for Axis2/C by  doxygen 1.4.7