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 };
00080
00081 union woden_wsdl_element_base
00082 {
00083 woden_attr_extensible_t attr_extensible;
00084 woden_element_extensible_t element_extensible;
00085 };
00086
00087 struct woden_wsdl_element
00088 {
00089 woden_wsdl_element_base_t base;
00090 woden_wsdl_element_ops_t *ops;
00091 };
00092
00093 AXIS2_EXTERN woden_wsdl_element_t * AXIS2_CALL
00094 woden_wsdl_element_create(
00095 const axis2_env_t *env);
00096
00097
00098 AXIS2_EXTERN woden_wsdl_element_t * AXIS2_CALL
00099 woden_wsdl_element_to_attr_extensible(
00100 void *wsdl_element,
00101 const axis2_env_t *env);
00102
00103 AXIS2_EXTERN woden_wsdl_element_t * AXIS2_CALL
00104 woden_wsdl_element_to_element_extensible(
00105 void *wsdl_element,
00106 const axis2_env_t *env);
00107
00108 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00109 woden_wsdl_element_resolve_methods(
00110 woden_wsdl_element_t *wsdl_element,
00111 const axis2_env_t *env,
00112 woden_wsdl_element_t *wsdl_element_impl,
00113 axis2_hash_t *methods);
00114
00115
00116 #define WODEN_WSDL_ELEMENT_FREE(wsdl_element, env) \
00117 (((woden_wsdl_element_t *) wsdl_element)->ops->\
00118 free (wsdl_element, env))
00119
00120 #define WODEN_WSDL_ELEMENT_SUPER_OBJS(wsdl_element, env) \
00121 (((woden_wsdl_element_t *) wsdl_element)->ops->\
00122 super_objs (wsdl_element, env))
00123
00124 #define WODEN_WSDL_ELEMENT_TYPE(wsdl_element, env) \
00125 (((woden_wsdl_element_t *) wsdl_element)->ops->\
00126 type (wsdl_element, env))
00127
00129 #ifdef __cplusplus
00130 }
00131 #endif
00132 #endif