00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef W2C_SCHEMA_COMPILER_H
00019 #define W2C_SCHEMA_COMPILER_H
00020
00026 #include <axis2_utils.h>
00027 #include <w2c_schema_compiler_options.h>
00028 #include <xml_schema.h>
00029 #include <w2c_typemapper.h>
00030
00031 #ifdef __cplusplus
00032 extern "C"
00033 {
00034 #endif
00035
00041 typedef struct w2c_schema_compiler w2c_schema_compiler_t;
00042 typedef struct w2c_schema_compiler_ops w2c_schema_compiler_ops_t;
00043
00044 AXIS2_DECLARE_DATA struct w2c_schema_compiler_ops
00045 {
00053 axis2_status_t (AXIS2_CALL *
00054 free)(w2c_schema_compiler_t *schema_compiler,
00055 const axis2_env_t *env);
00056
00065 axis2_status_t (AXIS2_CALL *
00066 compile)( w2c_schema_compiler_t *compiler,
00067 const axis2_env_t *env,
00068 xml_schema_t *xml_schema);
00069
00077 w2c_typemapper_t *(AXIS2_CALL *
00078 compile_schema_list)( w2c_schema_compiler_t *compiler,
00079 const axis2_env_t *env,
00080 axis2_array_list_t *schema_list);
00081
00082 };
00083
00084 AXIS2_DECLARE_DATA struct w2c_schema_compiler
00085 {
00086 struct w2c_schema_compiler_ops *ops;
00087 };
00088
00095 AXIS2_EXTERN w2c_schema_compiler_t* AXIS2_CALL
00096 w2c_schema_compiler_create( const axis2_env_t *env,
00097 w2c_schema_compiler_options_t *options);
00098
00099
00100
00101 #define W2C_SCHEMA_COMPILER_FREE(schema_compiler, env) \
00102 ((schema_compiler)->ops->free (schema_compiler, env))
00103
00104 #define W2C_SCHEMA_COMPILER_COMPILE_SCHEMA_LIST(schema_compiler, env, list) \
00105 ((schema_compiler)->ops->compile_schema_list(schema_compiler, env, list))
00106
00107 #define W2C_SCHEMA_COMPILER_COMPILE(schema_compiler, env, schema) \
00108 ((schema_compiler)->ops->compile(schema_compiler, env, schema))
00109
00112 #ifdef __cplusplus
00113 }
00114 #endif
00115
00116 #endif