00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WODEN_DOCUMENTABLE_ELEMENT_H
00019 #define WODEN_DOCUMENTABLE_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_array_list.h>
00037 #include <woden_wsdl_element.h>
00038 #include <woden.h>
00039
00040 #ifdef __cplusplus
00041 extern "C"
00042 {
00043 #endif
00044
00045 typedef struct woden_documentable_element
00046 woden_documentable_element_t;
00047 typedef struct woden_documentable_element_ops
00048 woden_documentable_element_ops_t;
00049 struct woden_documentation_element;
00050
00056 struct woden_documentable_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 add_documentation_element) (void *doc_el,
00074 const axis2_env_t *env,
00075 struct woden_documentation_element *doc_elem);
00076
00077 axis2_array_list_t *(AXIS2_CALL *
00078 get_documentation_elements) (void *doc_el,
00079 const axis2_env_t *env);
00080
00081 };
00082
00083 struct woden_documentable_element
00084 {
00085 woden_wsdl_element_t wsdl_element;
00086 woden_documentable_element_ops_t *ops;
00087 };
00088
00089
00090 axis2_status_t AXIS2_CALL
00091 woden_documentable_element_resolve_methods(
00092 woden_documentable_element_t *documentable_element,
00093 const axis2_env_t *env,
00094 axis2_hash_t *methods);
00095
00096
00097 #define WODEN_DOCUMENTABLE_ELEMENT_FREE(doc_el, env) \
00098 (((woden_documentable_element_t *) doc_el)->ops->\
00099 free (doc_el, env))
00100
00101 #define WODEN_DOCUMENTABLE_ELEMENT_TYPE(doc_el, env) \
00102 (((woden_documentable_element_t *) doc_el)->ops->\
00103 type (doc_el, env))
00104
00105 #define WODEN_DOCUMENTABLE_ELEMENT_ADD_DOCUMENTATION_ELEMENT(doc_el, env, doc_elem) \
00106 (((woden_documentable_element_t *) doc_el)->ops->\
00107 add_documentation_element(doc_el, env, doc_elem))
00108
00109 #define WODEN_DOCUMENTABLE_ELEMENT_GET_DOCUMENTATOIN_ELEMENTS(doc_el, env) \
00110 (((woden_documentable_element_t *) doc_el)->ops->\
00111 get_documentation_elements(doc_el, env))
00112
00113
00115 #ifdef __cplusplus
00116 }
00117 #endif
00118 #endif