00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WODEN_DOCUMENTATION_ELEMENT_H
00019 #define WODEN_DOCUMENTATION_ELEMENT_H
00020
00031 #include <axis2_allocator.h>
00032 #include <axis2_env.h>
00033 #include <axis2_error.h>
00034 #include <axis2_string.h>
00035 #include <axis2_utils.h>
00036 #include <axis2_hash.h>
00037 #include <axis2_qname.h>
00038 #include <woden_wsdl_element.h>
00039 #include <woden.h>
00040
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045
00046 typedef struct woden_documentation_element
00047 woden_documentation_element_t;
00048 typedef struct woden_documentation_element_ops
00049 woden_documentation_element_ops_t;
00050
00056 struct woden_documentation_element_ops
00057 {
00062 axis2_status_t (AXIS2_CALL *
00063 free) (
00064 void *doc_el,
00065 const axis2_env_t *env);
00066
00067 woden_obj_types_t (AXIS2_CALL *
00068 type) (
00069 void *doc_el,
00070 const axis2_env_t *env);
00071
00072 axis2_status_t (AXIS2_CALL *
00073 set_content) (void *doc_el,
00074 const axis2_env_t *env,
00075 void *doc_elem);
00076
00077 void *(AXIS2_CALL *
00078 get_content) (
00079 void *doc_el,
00080 const axis2_env_t *env);
00081
00082 };
00083
00084 struct woden_documentation_element
00085 {
00086 woden_wsdl_element_t wsdl_element;
00087 woden_documentation_element_ops_t *ops;
00088 };
00089
00090
00091 axis2_status_t AXIS2_CALL
00092 woden_documentation_element_resolve_methods(
00093 woden_documentation_element_t *documentation_element,
00094 const axis2_env_t *env,
00095 axis2_hash_t *methods);
00096
00097
00098 #define WODEN_DOCUMENTATION_ELEMENT_FREE(doc_el, env) \
00099 (((woden_documentation_element_t *) doc_el)->ops->\
00100 free (doc_el, env))
00101
00102 #define WODEN_DOCUMENTATION_ELEMENT_TYPE(doc_el, env) \
00103 (((woden_documentation_element_t *) doc_el)->ops->\
00104 type (doc_el, env))
00105
00106 #define WODEN_DOCUMENTATION_ELEMENT_SET_CONTENT(doc_el, env, doc_elem) \
00107 (((woden_documentation_element_t *) doc_el)->ops->\
00108 set_content(doc_el, env, doc_elem))
00109
00110 #define WODEN_DOCUMENTATION_ELEMENT_GET_CONTENT(doc_el, env) \
00111 (((woden_documentation_element_t *) doc_el)->ops->\
00112 get_content(doc_el, env))
00113
00114
00116 #ifdef __cplusplus
00117 }
00118 #endif
00119 #endif