woden_wsdl10_part_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_PART_ELEMENT_H
00019 #define WODEN_WSDL10_PART_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_part_element woden_wsdl10_part_element_t;
00048 typedef struct woden_wsdl10_part_element_ops woden_wsdl10_part_element_ops_t;
00049 typedef union woden_wsdl10_part_element_base woden_wsdl10_part_element_base_t;
00050 
00056 struct woden_wsdl10_part_element_ops
00057 {
00062     axis2_status_t (AXIS2_CALL *
00063     free) (
00064             void *part_element,
00065             const axis2_env_t *env);
00066  
00067     woden_obj_types_t (AXIS2_CALL *
00068     type) (
00069             void *part_element,
00070             const axis2_env_t *env);
00071     
00079     axis2_status_t (AXIS2_CALL *
00080     set_element_qname) (
00081             void *iface_fault_ele,
00082             const axis2_env_t *env,
00083             axis2_qname_t *element);
00084 
00085     axis2_qname_t *(AXIS2_CALL *
00086     get_element_qname) (
00087             void *iface_fault_ele,
00088             const axis2_env_t *env);
00089     
00100     void *(AXIS2_CALL *
00101     get_element) (
00102             void *iface_fault_ele,
00103             const axis2_env_t *env);
00104     
00105     axis2_status_t (AXIS2_CALL *
00106     set_qname) (
00107             void *iface_fault_ele,
00108             const axis2_env_t *env,
00109             axis2_qname_t *qname);
00110 
00111     axis2_qname_t *(AXIS2_CALL *
00112     get_qname) (
00113             void *iface_fault_ele,
00114             const axis2_env_t *env);
00115     
00116 
00117 };
00118 
00119 union woden_wsdl10_part_element_base
00120 {
00121     woden_documentable_element_t documentable_element;
00122     woden_configurable_element_t configurable_element;
00123     woden_nested_element_t nested_element;
00124 };
00125 
00126 struct woden_wsdl10_part_element
00127 {
00128     woden_wsdl10_part_element_base_t base;
00129     woden_wsdl10_part_element_ops_t *ops;
00130 };
00131 
00132 AXIS2_EXTERN woden_wsdl10_part_element_t * AXIS2_CALL
00133 woden_wsdl10_part_element_create(
00134         const axis2_env_t *env);
00135 
00136 /************************Woden C Internal Methods******************************/
00137 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00138 woden_wsdl10_part_element_resolve_methods(
00139         woden_wsdl10_part_element_t *part_element,
00140         const axis2_env_t *env,
00141         axis2_hash_t *methods);
00142 /************************End of Woden C Internal Methods***********************/
00143 
00144 #define WODEN_WSDL10_PART_ELEMENT_FREE(part_element, env) \
00145       (((woden_wsdl10_part_element_t *) part_element)->ops->\
00146          free (part_element, env))
00147 
00148 #define WODEN_WSDL10_PART_ELEMENT_TYPE(part_element, env) \
00149       (((woden_wsdl10_part_element_t *) part_element)->ops->\
00150          type (part_element, env))
00151 
00152 #define WODEN_WSDL10_PART_ELEMENT_SET_ELEMENT_QNAME(part_element, env, element) \
00153       (((woden_wsdl10_part_element_t *) part_element)->ops->\
00154         set_element_qname  (part_element, env, element))
00155 
00156 #define WODEN_WSDL10_PART_ELEMENT_GET_ELEMENT_QNAME(part_element, env) \
00157       (((woden_wsdl10_part_element_t *) part_element)->ops->\
00158         get_element_qname  (part_element, env))
00159 
00160 #define WODEN_WSDL10_PART_ELEMENT_GET_ELEMENT(part_element, env) \
00161       (((woden_wsdl10_part_element_t *) part_element)->ops->\
00162         get_element  (part_element, env))
00163 
00164 #define WODEN_WSDL10_PART_ELEMENT_SET_QNAME(part_element, env, qname) \
00165       (((woden_wsdl10_part_element_t *) part_element)->ops->\
00166          set_qname (part_element, env, qname))
00167 
00168 #define WODEN_WSDL10_PART_ELEMENT_GET_QNAME(part_element, env) \
00169       (((woden_wsdl10_part_element_t *) part_element)->ops->\
00170          get_qname (part_element, env))
00171 
00172 
00173 
00174 
00176 #ifdef __cplusplus
00177 }
00178 #endif
00179 #endif /* WODEN_WSDL10_PART_ELEMENT_H */

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