woden_wsdl10_msg_ref_element.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef WODEN_WSDL10_MSG_REF_ELEMENT_H
00019 #define WODEN_WSDL10_MSG_REF_ELEMENT_H
00020 
00028 #include <axis2_allocator.h>
00029 #include <axis2_env.h>
00030 #include <axis2_error.h>
00031 #include <axis2_string.h>
00032 #include <axis2_utils.h>
00033 #include <axis2_hash.h>
00034 #include <axis2_qname.h>
00035 #include <axis2_uri.h>
00036 #include <axis2_array_list.h>
00037 #include <woden.h>
00038 #include <woden_documentable_element.h>
00039 #include <woden_configurable_element.h>
00040 #include <woden_nested_element.h>
00041 
00042 #ifdef __cplusplus
00043 extern "C"
00044 {
00045 #endif
00046 
00047 typedef struct woden_wsdl10_msg_ref_element woden_wsdl10_msg_ref_element_t;
00048 typedef struct woden_wsdl10_msg_ref_element_ops woden_wsdl10_msg_ref_element_ops_t;
00049 typedef union woden_wsdl10_msg_ref_element_base woden_wsdl10_msg_ref_element_base_t;
00050 
00056 struct woden_wsdl10_msg_ref_element_ops
00057 {
00062     axis2_status_t (AXIS2_CALL *
00063     free) (
00064             void *msg_ref_element,
00065             const axis2_env_t *env);
00066  
00067     woden_obj_types_t (AXIS2_CALL *
00068     type) (
00069             void *msg_ref_element,
00070             const axis2_env_t *env);
00071     
00072     axis2_status_t (AXIS2_CALL *
00073     set_part) (
00074             void *iface_fault_ele,
00075             const axis2_env_t *env,
00076             void *part);
00077 
00078     void *(AXIS2_CALL *
00079     get_part) (
00080             void *iface_fault_ele,
00081             const axis2_env_t *env);
00082  
00083     axis2_char_t *(AXIS2_CALL *
00084     get_msg_content_model) (
00085             void *iface_fault_ele,
00086             const axis2_env_t *env);
00087  
00088     axis2_status_t (AXIS2_CALL *
00089     set_qname) (
00090             void *iface_fault_ele,
00091             const axis2_env_t *env,
00092             axis2_qname_t *element);
00093 
00094     axis2_qname_t *(AXIS2_CALL *
00095     get_qname) (
00096             void *iface_fault_ele,
00097             const axis2_env_t *env);
00098     
00099 };
00100 
00101 union woden_wsdl10_msg_ref_element_base
00102 {
00103     woden_documentable_element_t documentable_element;
00104     woden_configurable_element_t configurable_element;
00105     woden_nested_element_t nested_element;
00106 };
00107 
00108 struct woden_wsdl10_msg_ref_element
00109 {
00110     woden_wsdl10_msg_ref_element_base_t base;
00111     woden_wsdl10_msg_ref_element_ops_t *ops;
00112 };
00113 
00114 AXIS2_EXTERN woden_wsdl10_msg_ref_element_t * AXIS2_CALL
00115 woden_wsdl10_msg_ref_element_create(
00116         const axis2_env_t *env);
00117 
00118 /************************Woden C Internal Methods******************************/
00119 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00120 woden_wsdl10_msg_ref_element_resolve_methods(
00121         woden_wsdl10_msg_ref_element_t *msg_ref_element,
00122         const axis2_env_t *env,
00123         axis2_hash_t *methods);
00124 /************************End of Woden C Internal Methods***********************/
00125 
00126 #define WODEN_WSDL10_MSG_REF_ELEMENT_FREE(msg_ref_element, env) \
00127       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00128          free (msg_ref_element, env))
00129 
00130 #define WODEN_WSDL10_MSG_REF_ELEMENT_TYPE(msg_ref_element, env) \
00131       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00132          type (msg_ref_element, env))
00133 
00134 #define WODEN_WSDL10_MSG_REF_ELEMENT_SET_PART(msg_ref_element, env, part) \
00135       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00136          set_part (msg_ref_element, env, part))
00137 
00138 #define WODEN_WSDL10_MSG_REF_ELEMENT_GET_PART(msg_ref_element, env) \
00139       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00140         get_part  (msg_ref_element, env))
00141 
00142 #define WODEN_WSDL10_MSG_REF_ELEMENT_GET_MSG_CONTENT_MODEL(msg_ref_element, env) \
00143       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00144         get_msg_content_model  (msg_ref_element, env))
00145 
00146 #define WODEN_WSDL10_MSG_REF_ELEMENT_SET_QNAME(msg_ref_element, env, element) \
00147       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00148         set_qname  (msg_ref_element, env, element))
00149 
00150 #define WODEN_WSDL10_MSG_REF_ELEMENT_GET_QNAME(msg_ref_element, env) \
00151       (((woden_wsdl10_msg_ref_element_t *) msg_ref_element)->ops->\
00152         get_qname  (msg_ref_element, env))
00153 
00154 
00156 #ifdef __cplusplus
00157 }
00158 #endif
00159 #endif /* WODEN_WSDL10_MSG_REF_ELEMENT_H */

Generated on Wed Dec 20 20:14:11 2006 for Axis2/C by  doxygen 1.5.1