00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WODEN_SOAP_MODULE_ELEMENT_H
00019 #define WODEN_SOAP_MODULE_ELEMENT_H
00020
00029 #include <axis2_allocator.h>
00030 #include <axis2_env.h>
00031 #include <axis2_error.h>
00032 #include <axis2_string.h>
00033 #include <axis2_utils.h>
00034 #include <axis2_hash.h>
00035 #include <axis2_qname.h>
00036 #include <axis2_uri.h>
00037 #include <axis2_array_list.h>
00038 #include <woden.h>
00039 #include <woden_ext_element.h>
00040 #include <woden_attr_extensible.h>
00041 #include <woden_element_extensible.h>
00042
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047
00048 typedef struct woden_soap_module_element woden_soap_module_element_t;
00049 typedef struct woden_soap_module_element_ops woden_soap_module_element_ops_t;
00050 typedef union woden_soap_module_element_base woden_soap_module_element_base_t;
00051
00057 struct woden_soap_module_element_ops
00058 {
00063 axis2_status_t (AXIS2_CALL *
00064 free) (
00065 void *soap_module_element,
00066 const axis2_env_t *env);
00067
00068 woden_obj_types_t (AXIS2_CALL *
00069 type) (
00070 void *soap_module_element,
00071 const axis2_env_t *env);
00072
00073 axis2_status_t (AXIS2_CALL *
00074 set_ref) (
00075 void *soap_module_element,
00076 const axis2_env_t *env,
00077 axis2_uri_t *uri);
00078
00079 axis2_uri_t *(AXIS2_CALL *
00080 get_ref) (
00081 void *soap_module_element,
00082 const axis2_env_t *env);
00083
00084 axis2_status_t (AXIS2_CALL *
00085 set_parent_element) (
00086 void *soap_module_element,
00087 const axis2_env_t *env,
00088 void *wsdl_el);
00089
00090 void *(AXIS2_CALL *
00091 get_parent_element) (
00092 void *soap_module_element,
00093 const axis2_env_t *env);
00094
00095 axis2_status_t (AXIS2_CALL *
00096 add_documentation_element) (
00097 void *soap_module_element,
00098 const axis2_env_t *env,
00099 void *doc_el);
00100
00101 axis2_array_list_t *(AXIS2_CALL *
00102 get_documentation_elements) (
00103 void *soap_module_element,
00104 const axis2_env_t *env);
00105
00106 };
00107
00108 union woden_soap_module_element_base
00109 {
00110 woden_ext_element_t ext_element;
00111 woden_attr_extensible_t attr_extensible;
00112 woden_element_extensible_t element_extensible;
00113 };
00114
00115 struct woden_soap_module_element
00116 {
00117 woden_soap_module_element_base_t base;
00118 woden_soap_module_element_ops_t *ops;
00119 };
00120
00121 AXIS2_EXTERN woden_soap_module_element_t * AXIS2_CALL
00122 woden_soap_module_element_create(
00123 const axis2_env_t *env);
00124
00125
00126 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00127 woden_soap_module_element_resolve_methods(
00128 woden_soap_module_element_t *soap_module_element,
00129 const axis2_env_t *env,
00130 axis2_hash_t *methods);
00131
00132
00133 #define WODEN_SOAP_MODULE_ELEMENT_FREE(soap_module_element, env) \
00134 (((woden_soap_module_element_t *) soap_module_element)->ops->\
00135 free (soap_module_element, env))
00136
00137 #define WODEN_SOAP_MODULE_ELEMENT_TYPE(soap_module_element, env) \
00138 (((woden_soap_module_element_t *) soap_module_element)->ops->\
00139 type (soap_module_element, env))
00140
00141 #define WODEN_SOAP_MODULE_ELEMENT_SET_REF(soap_module_element, env, uri) \
00142 (((woden_soap_module_element_t *) soap_module_element)->ops->\
00143 set_ref (soap_module_element, env, uri))
00144
00145 #define WODEN_SOAP_MODULE_ELEMENT_GET_REF(soap_module_element, env) \
00146 (((woden_soap_module_element_t *) soap_module_element)->ops->\
00147 get_ref (soap_module_element, env))
00148
00149 #define WODEN_SOAP_MODULE_ELEMENT_SET_PARENT_ELEMENT(soap_module_element, env, wsdl_el) \
00150 (((woden_soap_module_element_t *) soap_module_element)->ops->\
00151 set_parent_element (soap_module_element, env, wsdl_el))
00152
00153 #define WODEN_SOAP_MODULE_ELEMENT_GET_PARENT_ELEMENT(soap_module_element, env) \
00154 (((woden_soap_module_element_t *) soap_module_element)->ops->\
00155 get_parent_element (soap_module_element, env))
00156
00157 #define WODEN_SOAP_MODULE_ELEMENT_ADD_DOCUMENTATION_ELEMENT(soap_module_element, env, doc_el) \
00158 (((woden_soap_module_element_t *) soap_module_element)->ops->\
00159 add_documentation_element (soap_module_element, env, doc_el))
00160
00161 #define WODEN_SOAP_MODULE_ELEMENT_GET_DOCUMENTATION_ELEMENTS(soap_module_element, env) \
00162 (((woden_soap_module_element_t *) soap_module_element)->ops->\
00163 get_documentation_elements (soap_module_element, env))
00164
00166 #ifdef __cplusplus
00167 }
00168 #endif
00169 #endif