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