00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WODEN_NESTED_ELEMENT_H
00019 #define WODEN_NESTED_ELEMENT_H
00020
00036 #include <axis2_allocator.h>
00037 #include <axis2_env.h>
00038 #include <axis2_error.h>
00039 #include <axis2_string.h>
00040 #include <axis2_utils.h>
00041 #include <axis2_hash.h>
00042 #include <axis2_qname.h>
00043 #include <woden.h>
00044 #include <woden_wsdl_element.h>
00045
00046 #ifdef __cplusplus
00047 extern "C"
00048 {
00049 #endif
00050
00051 typedef struct woden_nested_element woden_nested_element_t;
00052 typedef struct woden_nested_element_ops woden_nested_element_ops_t;
00053 struct woden_wsdl_element;
00054
00060 struct woden_nested_element_ops
00061 {
00066 axis2_status_t (AXIS2_CALL *
00067 free) (
00068 void *nested_el,
00069 const axis2_env_t *env);
00070
00071 woden_obj_types_t (AXIS2_CALL *
00072 type) (
00073 void *nested_el,
00074 const axis2_env_t *env);
00075
00076 axis2_status_t (AXIS2_CALL *
00077 set_parent_element) (
00078 void *nested_el,
00079 const axis2_env_t *env,
00080 struct woden_wsdl_element *parent);
00081
00082 void *(AXIS2_CALL *
00083 get_parent_element) (
00084 void *nested_el,
00085 const axis2_env_t *env);
00086
00087 };
00088
00089 struct woden_nested_element
00090 {
00091 woden_wsdl_element_t wsdl_element;
00092 woden_nested_element_ops_t *ops;
00093 };
00094
00095
00096 axis2_status_t AXIS2_CALL
00097 woden_nested_element_resolve_methods(
00098 woden_nested_element_t *nested_element,
00099 const axis2_env_t *env,
00100 axis2_hash_t *methods);
00101
00102
00103 #define WODEN_NESTED_ELEMENT_FREE(nested_el, env) \
00104 (((woden_nested_element_t *) nested_el)->ops->\
00105 free (nested_el, env))
00106
00107 #define WODEN_NESTED_ELEMENT_TYPE(nested_el, env) \
00108 (((woden_nested_element_t *) nested_el)->ops->\
00109 type (nested_el, env))
00110
00111 #define WODEN_NESTED_ELEMENT_SET_PARENT_ELEMENT(nested_el, env, parent) \
00112 (((woden_nested_element_t *) nested_el)->ops->\
00113 set_parent_element(nested_el, env, parent))
00114
00115 #define WODEN_NESTED_ELEMENT_GET_PARENT_ELEMENT(nested_el, env) \
00116 (((woden_nested_element_t *) nested_el)->ops->\
00117 get_parent_element(nested_el, env))
00118
00119
00121 #ifdef __cplusplus
00122 }
00123 #endif
00124 #endif