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