00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WODEN_WSDL_ELEMENT_H
00019 #define WODEN_WSDL_ELEMENT_H
00020
00030 #include <axis2_allocator.h>
00031 #include <axis2_env.h>
00032 #include <axis2_error.h>
00033 #include <axis2_string.h>
00034 #include <axis2_utils.h>
00035 #include <axis2_hash.h>
00036 #include <axis2_qname.h>
00037 #include <axis2_uri.h>
00038 #include <axis2_array_list.h>
00039 #include <woden.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_wsdl_element woden_wsdl_element_t;
00049 typedef struct woden_wsdl_element_ops woden_wsdl_element_ops_t;
00050 typedef union woden_wsdl_element_base woden_wsdl_element_base_t;
00051 struct woden_xml_attr;
00052 struct woden_ext_element;
00053
00059 struct woden_wsdl_element_ops
00060 {
00065 axis2_status_t (AXIS2_CALL *
00066 free) (
00067 void *wsdl_element,
00068 const axis2_env_t *env);
00069
00070 axis2_hash_t *(AXIS2_CALL *
00071 super_objs) (
00072 void *wsdl_element,
00073 const axis2_env_t *env);
00074
00075 woden_obj_types_t (AXIS2_CALL *
00076 type) (
00077 void *wsdl_element,
00078 const axis2_env_t *env);
00079
00080 void *(AXIS2_CALL *
00081 get_element_extensible) (
00082 void *wsdl_element,
00083 const axis2_env_t *env);
00084
00085 void *(AXIS2_CALL *
00086 get_attr_extensible) (
00087 void *wsdl_element,
00088 const axis2_env_t *env);
00089
00090
00091 };
00092
00093 union woden_wsdl_element_base
00094 {
00095 woden_attr_extensible_t attr_extensible;
00096 woden_element_extensible_t element_extensible;
00097 };
00098
00099 struct woden_wsdl_element
00100 {
00101 woden_wsdl_element_base_t base;
00102 woden_wsdl_element_ops_t *ops;
00103 };
00104
00105 AXIS2_EXTERN woden_wsdl_element_t * AXIS2_CALL
00106 woden_wsdl_element_create(
00107 const axis2_env_t *env);
00108
00109
00110 AXIS2_EXTERN woden_wsdl_element_t * AXIS2_CALL
00111 woden_wsdl_element_to_attr_extensible(
00112 void *wsdl_element,
00113 const axis2_env_t *env);
00114
00115 AXIS2_EXTERN woden_wsdl_element_t * AXIS2_CALL
00116 woden_wsdl_element_to_element_extensible(
00117 void *wsdl_element,
00118 const axis2_env_t *env);
00119
00120 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00121 woden_wsdl_element_resolve_methods(
00122 woden_wsdl_element_t *wsdl_element,
00123 const axis2_env_t *env,
00124 woden_wsdl_element_t *wsdl_element_impl,
00125 axis2_hash_t *methods);
00126
00127
00128 #define WODEN_WSDL_ELEMENT_FREE(wsdl_element, env) \
00129 (((woden_wsdl_element_t *) wsdl_element)->ops->\
00130 free (wsdl_element, env))
00131
00132 #define WODEN_WSDL_ELEMENT_SUPER_OBJS(wsdl_element, env) \
00133 (((woden_wsdl_element_t *) wsdl_element)->ops->\
00134 super_objs (wsdl_element, env))
00135
00136 #define WODEN_WSDL_ELEMENT_TYPE(wsdl_element, env) \
00137 (((woden_wsdl_element_t *) wsdl_element)->ops->\
00138 type (wsdl_element, env))
00139
00140 #define WODEN_WSDL_ELEMENT_GET_ELEMENT_EXTENSIBLE(wsdl_element, env) \
00141 (((woden_wsdl_element_t *) wsdl_element)->ops->\
00142 get_element_extensible (wsdl_element, env))
00143
00144 #define WODEN_WSDL_ELEMENT_GET_ATTR_EXTENSIBLE(wsdl_element, env) \
00145 (((woden_wsdl_element_t *) wsdl_element)->ops->\
00146 get_attr_extensible (wsdl_element, env))
00147
00149 #ifdef __cplusplus
00150 }
00151 #endif
00152 #endif