00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WODEN_TYPES_ELEMENT_H
00019 #define WODEN_TYPES_ELEMENT_H
00020
00038 #include <axis2_allocator.h>
00039 #include <axis2_env.h>
00040 #include <axis2_error.h>
00041 #include <axis2_string.h>
00042 #include <axis2_utils.h>
00043 #include <axis2_hash.h>
00044 #include <axis2_qname.h>
00045 #include <axis2_uri.h>
00046 #include <woden.h>
00047 #include <woden_documentable_element.h>
00048 #include <xml_schema.h>
00049
00050 #ifdef __cplusplus
00051 extern "C"
00052 {
00053 #endif
00054
00055 typedef struct woden_types_element woden_types_element_t;
00056 typedef struct woden_types_element_ops woden_types_element_ops_t;
00057 struct xml_schema;
00058
00064 struct woden_types_element_ops
00065 {
00070 axis2_status_t (AXIS2_CALL *
00071 free) (
00072 void *types_el,
00073 const axis2_env_t *env);
00074
00075 woden_obj_types_t (AXIS2_CALL *
00076 type) (void *types_el,
00077 const axis2_env_t *env);
00078
00085 axis2_status_t (AXIS2_CALL *
00086 set_type_system) (void *types_el,
00087 const axis2_env_t *env,
00088 axis2_char_t *type_system);
00089
00094 axis2_char_t *(AXIS2_CALL *
00095 get_type_system) (void *types_el,
00096 const axis2_env_t *env);
00097
00104 axis2_status_t (AXIS2_CALL *
00105 add_schema) (void *types_el,
00106 const axis2_env_t *env,
00107 void *schema);
00108
00112 axis2_status_t (AXIS2_CALL *
00113 remove_schema) (
00114 void *types_el,
00115 const axis2_env_t *env,
00116 struct xml_schema *schema);
00117
00124 axis2_array_list_t *(AXIS2_CALL *
00125 get_schemas) (
00126 void *types_el,
00127 const axis2_env_t *env);
00128
00141 axis2_array_list_t *(AXIS2_CALL *
00142 get_schemas_with_namespace) (
00143 void *types_el,
00144 const axis2_env_t *env,
00145 axis2_uri_t *namespc);
00146
00153 axis2_array_list_t *(AXIS2_CALL *
00154 get_inlined_schemas) (
00155 void *types_el,
00156 const axis2_env_t *env);
00157
00164 axis2_array_list_t *(AXIS2_CALL *
00165 get_imported_schemas) (
00166 void *types_el,
00167 const axis2_env_t *env);
00168 };
00169
00170 struct woden_types_element
00171 {
00172 woden_documentable_element_t documentable_element;
00173 woden_types_element_ops_t *ops;
00174 };
00175
00176
00177 axis2_status_t AXIS2_CALL
00178 woden_types_element_resolve_methods(
00179 woden_types_element_t *types_element,
00180 const axis2_env_t *env,
00181 axis2_hash_t *methods);
00182
00183
00184 #define WODEN_TYPES_ELEMENT_FREE(types_el, env) \
00185 (((woden_types_element_t *) types_el)->ops->\
00186 free (types_el, env))
00187
00188 #define WODEN_TYPES_ELEMENT_TYPE(types_el, env) \
00189 (((woden_types_element_t *) types_el)->ops->\
00190 type (types_el, env))
00191
00192 #define WODEN_TYPES_ELEMENT_SET_TYPE_SYSTEM(types_el, env, type_system) \
00193 (((woden_types_element_t *) types_el)->ops->\
00194 set_type_system(types_el, env, type_system))
00195
00196 #define WODEN_TYPES_ELEMENT_GET_TYPE_SYSTEM(types_el, env) \
00197 (((woden_types_element_t *) types_el)->ops->\
00198 get_type_system(types_el, env))
00199
00200 #define WODEN_TYPES_ELEMENT_ADD_SCHEMA(types_el, env, schema) \
00201 (((woden_types_element_t *) types_el)->ops->\
00202 add_schema(types_el, env, schema))
00203
00204 #define WODEN_TYPES_ELEMENT_REMOVE_SCHEMA(types_el, env, schema) \
00205 (((woden_types_element_t *) types_el)->ops->\
00206 remove_schema(types_el, env, schema))
00207
00208 #define WODEN_TYPES_ELEMENT_GET_SCHEMAS(types_el, env) \
00209 (((woden_types_element_t *) types_el)->ops->\
00210 get_schemas(types_el, env))
00211
00212 #define WODEN_TYPES_ELEMENT_GET_SCHEMAS_WITH_NAMESPACE(types_el, env, \
00213 namespc) \
00214 (((woden_types_element_t *) types_el)->ops->\
00215 get_schemas_with_namespace(types_el, env, namespc))
00216
00217 #define WODEN_TYPES_ELEMENT_GET_INLINED_SCHEMAS(types_el, env) \
00218 (((woden_types_element_t *) types_el)->ops->\
00219 get_inlined_schemas(types_el, env))
00220
00221 #define WODEN_TYPES_ELEMENT_GET_IMPORTED_SCHEMAS(types_el, env) \
00222 (((woden_types_element_t *) types_el)->ops->\
00223 get_imported_schemas(types_el, env))
00224
00226 #ifdef __cplusplus
00227 }
00228 #endif
00229 #endif