00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef XML_SCHEMA_IMPORT_H
00019 #define XML_SCHEMA_IMPORT_H
00020
00027 #include <xml_schema_external.h>
00028 #include <axis2_hash.h>
00029
00035 typedef struct xml_schema_import
00036 xml_schema_import_t;
00037 typedef struct xml_schema_import_ops
00038 xml_schema_import_ops_t;
00039
00040 struct xml_schema;
00041
00042 #ifdef __cplusplus
00043 extern "C"
00044 {
00045 #endif
00046
00047 struct xml_schema_import_ops
00048 {
00049 axis2_status_t (AXIS2_CALL *
00050 free) (void *import,
00051 const axis2_env_t *env);
00052
00053 xml_schema_external_t* (AXIS2_CALL *
00054 get_base_impl)(void *import,
00055 const axis2_env_t *env);
00056
00057
00058 axis2_hash_t* (AXIS2_CALL *
00059 super_objs)(void *import,
00060 const axis2_env_t *env);
00061
00062 xml_schema_types_t (AXIS2_CALL *
00063 get_type)(void *import,
00064 const axis2_env_t *env);
00065
00066 axis2_char_t* (AXIS2_CALL *
00067 get_namespace)(void *import,
00068 const axis2_env_t *env);
00069
00070
00071
00072 axis2_status_t (AXIS2_CALL *
00073 set_namespace)(void *import,
00074 const axis2_env_t *env,
00075 axis2_char_t *ns);
00076
00077 };
00078
00079 struct xml_schema_import
00080 {
00081 xml_schema_external_t base;
00082 xml_schema_import_ops_t *ops;
00083 };
00084
00088 AXIS2_EXTERN xml_schema_import_t * AXIS2_CALL
00089 xml_schema_import_create(const axis2_env_t *env);
00090
00091
00092 #define XML_SCHEMA_IMPORT_FREE(import, env) \
00093 (((xml_schema_import_t *) import)->ops->\
00094 free(import, env))
00095
00096 #define XML_SCHEMA_IMPORT_GET_BASE_IMPL(import, env) \
00097 (((xml_schema_import_t *) import)->ops->\
00098 get_base_impl(import, env))
00099
00100 #define XML_SCHEMA_IMPORT_GET_TYPE(import, env) \
00101 (((xml_schema_import_t *) import)->ops->\
00102 get_type(import, env))
00103
00104 #define XML_SCHEMA_IMPORT_SUPER_OBJS(import, env) \
00105 (((xml_schema_import_t *) import)->ops->\
00106 super_objs(import, env))
00107
00108 #define XML_SCHEMA_IMPORT_GET_NAMESPACE(import, env) \
00109 (((xml_schema_import_t *) import)->ops->\
00110 get_namespace(import, env))
00111
00112 #define XML_SCHEMA_IMPORT_SET_NAMESPACE(import, env, ns) \
00113 (((xml_schema_import_t *) import)->ops->\
00114 set_namespace(import, env, ns))
00115
00117 #ifdef __cplusplus
00118 }
00119 #endif
00120 #endif