00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef WODEN_INCLUDE_ELEMENT_H
00018 #define WODEN_INCLUDE_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 <woden.h>
00038 #include <woden_documentable_element.h>
00039 #include <woden_nested_element.h>
00040
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045
00046 typedef struct woden_include_element woden_include_element_t;
00047 typedef struct woden_include_element_ops woden_include_element_ops_t;
00048 typedef union woden_include_element_base woden_include_element_base_t;
00049
00055 struct woden_include_element_ops
00056 {
00061 axis2_status_t (AXIS2_CALL *
00062 free) (
00063 void *include_el,
00064 const axis2_env_t *env);
00065
00066 woden_obj_types_t (AXIS2_CALL *
00067 type) (void *include_el,
00068 const axis2_env_t *env);
00069
00070 axis2_status_t (AXIS2_CALL *
00071 set_location) (void *include_el,
00072 const axis2_env_t *env,
00073 axis2_uri_t *loc_uri);
00074
00075 axis2_uri_t *(AXIS2_CALL *
00076 get_location) (void *include_el,
00077 const axis2_env_t *env);
00078
00079 axis2_status_t (AXIS2_CALL *
00080 set_desc_element) (void *include_el,
00081 const axis2_env_t *env,
00082 void *desc);
00083
00084 void *(AXIS2_CALL *
00085 get_desc_element) (void *include_el,
00086 const axis2_env_t *env);
00087
00088 };
00089
00090
00091 struct woden_include_element
00092 {
00093 woden_documentable_element_t documentable_element;
00094 woden_include_element_ops_t *ops;
00095 };
00096
00097
00098 axis2_status_t AXIS2_CALL
00099 woden_include_element_resolve_methods(
00100 woden_include_element_t *include_element,
00101 const axis2_env_t *env,
00102 axis2_hash_t *methods);
00103
00104
00105 #define WODEN_INCLUDE_ELEMENT_FREE(include_el, env) \
00106 (((woden_include_element_t *) include_el)->ops->\
00107 free (include_el, env))
00108
00109 #define WODEN_INCLUDE_ELEMENT_TYPE(include_el, env) \
00110 (((woden_include_element_t *) include_el)->ops->\
00111 type (include_el, env))
00112
00113 #define WODEN_INCLUDE_ELEMENT_SET_LOCATION(include_el, env, loc_uri) \
00114 (((woden_include_element_t *) include_el)->ops->\
00115 set_location(include_el, env, loc_uri))
00116
00117 #define WODEN_INCLUDE_ELEMENT_GET_LOCATION(include_el, env) \
00118 (((woden_include_element_t *) include_el)->ops->\
00119 get_location(include_el, env))
00120
00121 #define WODEN_INCLUDE_ELEMENT_SET_DESC_ELEMENT(include_el, env, desc) \
00122 (((woden_include_element_t *) include_el)->ops->\
00123 set_desc_element(include_el, env, desc))
00124
00125 #define WODEN_INCLUDE_ELEMENT_GET_DESC_ELEMENT(include_el, env) \
00126 (((woden_include_element_t *) include_el)->ops->\
00127 get_desc_element(include_el, env))
00128
00130 #ifdef __cplusplus
00131 }
00132 #endif
00133 #endif