w2c_schema_compiler_options.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016   
00017 #ifndef W2C_SCHEMA_COMPILER_OPTIONS_H
00018 #define W2C_SCHEMA_COMPILER_OPTIONS_H
00019 
00025 #include <axis2_utils.h>
00026 #include <axis2_hash.h>
00027 #include <w2c_engine_configuration.h>
00028 #include <w2c_qname2name_maker.h>
00029 
00030 #ifdef __cplusplus
00031 extern "C"
00032 {
00033 #endif
00034 
00041 typedef struct w2c_schema_compiler_options w2c_schema_compiler_options_t;
00042 typedef struct w2c_schema_compiler_options_ops w2c_schema_compiler_options_ops_t;
00043 
00044 AXIS2_DECLARE_DATA  struct w2c_schema_compiler_options_ops
00045 {
00054     axis2_status_t (AXIS2_CALL *
00055     free)(w2c_schema_compiler_options_t *schema_compiler_options,
00056          const axis2_env_t *env);
00057 
00058     axis2_status_t (AXIS2_CALL *
00059     set_output_location)( w2c_schema_compiler_options_t *schema_compiler_options,
00060         const axis2_env_t *env,
00061         axis2_char_t *output_location);
00062 
00063     axis2_char_t* (AXIS2_CALL *
00064     get_output_location)( w2c_schema_compiler_options_t *schema_compiler_options,
00065         const axis2_env_t *env);
00066 
00067     axis2_status_t (AXIS2_CALL *
00068     set_mapper_class_package)( w2c_schema_compiler_options_t *schema_compiler_options,
00069         const axis2_env_t *env,
00070         axis2_char_t *mapper_class_package);
00071 
00072     axis2_char_t* (AXIS2_CALL *
00073     get_mapper_class_package)( w2c_schema_compiler_options_t *schema_compiler_options,
00074         const axis2_env_t *env);
00075 
00076     axis2_status_t (AXIS2_CALL *
00077     set_package_name)( w2c_schema_compiler_options_t *schema_compiler_options,
00078         const axis2_env_t *env,
00079         axis2_char_t *package_name);
00080 
00081     axis2_char_t* (AXIS2_CALL *
00082     get_package_name)( w2c_schema_compiler_options_t *schema_compiler_options,
00083         const axis2_env_t *env);
00084 
00085     axis2_status_t (AXIS2_CALL *
00086     set_helper_mode)( w2c_schema_compiler_options_t *schema_compiler_options,
00087         const axis2_env_t *env,
00088         axis2_bool_t helper_mode);
00089 
00090     axis2_bool_t (AXIS2_CALL *
00091     get_helper_mode)( w2c_schema_compiler_options_t *schema_compiler_options,
00092         const axis2_env_t *env);
00093 
00094     axis2_status_t (AXIS2_CALL *
00095     set_write_out)( w2c_schema_compiler_options_t *schema_compiler_options,
00096         const axis2_env_t *env,
00097         axis2_bool_t write_out);
00098 
00099     axis2_bool_t (AXIS2_CALL *
00100     get_write_out)( w2c_schema_compiler_options_t *schema_compiler_options,
00101         const axis2_env_t *env);
00102 
00103     axis2_status_t (AXIS2_CALL *
00104     set_wrap_classes)( w2c_schema_compiler_options_t *schema_compiler_options,
00105         const axis2_env_t *env,
00106         axis2_bool_t wrap_classes);
00107 
00108     axis2_bool_t (AXIS2_CALL *
00109     get_wrap_classes)( w2c_schema_compiler_options_t *schema_compiler_options,
00110         const axis2_env_t *env);
00111 
00112     axis2_status_t (AXIS2_CALL *
00113     set_ns2package_map)( w2c_schema_compiler_options_t *schema_compiler_options,
00114         const axis2_env_t *env,
00115         axis2_hash_t *ns2package_map);
00116 
00117     axis2_hash_t* (AXIS2_CALL *
00118     get_ns2package_map)( w2c_schema_compiler_options_t *schema_compiler_options,
00119         const axis2_env_t *env);
00120 
00121     axis2_status_t (AXIS2_CALL *
00122     set_language)( w2c_schema_compiler_options_t *schema_compiler_options,
00123         const axis2_env_t *env,
00124         axis2_char_t *language);
00125 
00126     axis2_char_t* (AXIS2_CALL *
00127     get_language)( w2c_schema_compiler_options_t *schema_compiler_options,
00128         const axis2_env_t *env);
00129 
00130     axis2_status_t (AXIS2_CALL *
00131     set_qname2name_maker)( w2c_schema_compiler_options_t *schema_compiler_options,
00132         const axis2_env_t *env,
00133         w2c_qname2name_maker_t *maker);
00134 
00135     w2c_qname2name_maker_t* (AXIS2_CALL *
00136     get_qname2name_maker)( w2c_schema_compiler_options_t *schema_compiler_options,
00137         const axis2_env_t *env);
00138 
00139     axis2_status_t (AXIS2_CALL *
00140     set_name_maker_func)( w2c_schema_compiler_options_t *schema_compiler_options,
00141         const axis2_env_t *env,
00142         W2C_ENGINE_CONFIGURATION_NAMEMAKER maker);
00143 
00144     W2C_ENGINE_CONFIGURATION_NAMEMAKER (AXIS2_CALL *
00145     get_name_maker_func)( w2c_schema_compiler_options_t *schema_compiler_options,
00146         const axis2_env_t *env);
00147 
00148 
00149 
00150 };
00151 
00152 AXIS2_DECLARE_DATA  struct w2c_schema_compiler_options
00153 {
00154      struct w2c_schema_compiler_options_ops *ops;
00155 };
00156 
00162 AXIS2_EXTERN w2c_schema_compiler_options_t* AXIS2_CALL
00163 w2c_schema_compiler_options_create( const axis2_env_t *env);
00164 
00165 /*************************** Function macros **********************************/
00166 
00167 #define W2C_SCHEMA_COMPILER_OPTIONS_FREE(schema_compiler_options, env) \
00168       ((schema_compiler_options)->ops->free (schema_compiler_options, env)) 
00169 
00170 #define W2C_SCHEMA_COMPILER_OPTIONS_GET_OUTPUT_LOCATION( schema_compiler_options, env) \
00171     ((schema_compiler_options)->ops->get_output_location ( schema_compiler_options, env))
00172 
00173 #define W2C_SCHEMA_COMPILER_OPTIONS_SET_OUTPUT_LOCATION( schema_compiler_options, env, val) \
00174     ((schema_compiler_options)->ops->set_output_location ( schema_compiler_options, env, val))
00175 
00176 #define W2C_SCHEMA_COMPILER_OPTIONS_GET_PACKAGE_NAME( schema_compiler_options, env) \
00177      ((schema_compiler_options)->ops->get_package_name( schema_compiler_options, env))
00178 
00179 #define W2C_SCHEMA_COMPILER_OPTIONS_SET_PACKAGE_NAME( schema_compiler_options, env, val) \
00180      ((schema_compiler_options)->ops->set_package_name( schema_compiler_options, env, val))
00181 
00182 #define W2C_SCHEMA_COMPILER_OPTIONS_GET_HELPER_MODE( schema_compiler_options, env) \
00183       ((schema_compiler_options)->ops->get_helper_mode( schema_compiler_options, env))
00184 
00185 #define W2C_SCHEMA_COMPILER_OPTIONS_SET_HELPER_MODE( schema_compiler_options, env, val) \
00186       ((schema_compiler_options)->ops->set_helper_mode( schema_compiler_options, env, val))
00187 
00188 #define W2C_SCHEMA_COMPILER_OPTIONS_GET_WRITE_OUT( schema_compiler_options, env) \
00189        ((schema_compiler_options)->ops->get_write_out( schema_compiler_options, env))
00190 
00191 #define W2C_SCHEMA_COMPILER_OPTIONS_SET_WRITE_OUT( schema_compiler_options, env, val) \
00192        ((schema_compiler_options)->ops->set_write_out( schema_compiler_options, env, val))
00193 
00194 #define W2C_SCHEMA_COMPILER_OPTIONS_GET_WRAP_CLASSES( schema_compiler_options, env) \
00195         ((schema_compiler_options)->ops->get_wrap_classes( schema_compiler_options, env))
00196 
00197 #define W2C_SCHEMA_COMPILER_OPTIONS_SET_WRAP_CLASSES( schema_compiler_options, env, val) \
00198         ((schema_compiler_options)->ops->set_wrap_classes( schema_compiler_options, env, val))
00199 
00200 #define W2C_SCHEMA_COMPILER_OPTIONS_GET_NS2PACKAGE_MAP( schema_compiler_options, env) \
00201          ((schema_compiler_options)->ops->get_ns2package_map( schema_compiler_options, env))
00202 
00203 #define W2C_SCHEMA_COMPILER_OPTIONS_SET_NS2PACKAGE_MAP( schema_compiler_options, env, val) \
00204          ((schema_compiler_options)->ops->set_ns2package_map( schema_compiler_options, env, val))
00205 
00206 #define W2C_SCHEMA_COMPILER_OPTIONS_GET_MAPPER_CLASS_PACKAGE( schema_compiler_options, env) \
00207          ((schema_compiler_options)->ops->get_mapper_class_package( schema_compiler_options, env))
00208 
00209 #define W2C_SCHEMA_COMPILER_OPTIONS_SET_MAPPER_CLASS_PACKAGE( schema_compiler_options, env, val) \
00210          ((schema_compiler_options)->ops->set_mapper_class_package( schema_compiler_options, env, val))
00211 
00212 #define W2C_SCHEMA_COMPILER_OPTIONS_GET_LANGUAGE( schema_compiler_options, env) \
00213          ((schema_compiler_options)->ops->get_language( schema_compiler_options, env))
00214 
00215 #define W2C_SCHEMA_COMPILER_OPTIONS_SET_LANGUAGE( schema_compiler_options, env, val) \
00216          ((schema_compiler_options)->ops->set_language( schema_compiler_options, env, val))
00217 
00218 #define W2C_SCHEMA_COMPILER_OPTIONS_GET_QNAME2NAME_MAKER( schema_compiler_options, env) \
00219          ((schema_compiler_options)->ops->get_qname2name_maker( schema_compiler_options, env))
00220 
00221 #define W2C_SCHEMA_COMPILER_OPTIONS_SET_QNAME2NAME_MAKER( schema_compiler_options, env, val) \
00222          ((schema_compiler_options)->ops->set_qname2name_maker( schema_compiler_options, env, val))
00223 
00224 #define W2C_SCHEMA_COMPILER_OPTIONS_GET_NAME_MAKER_FUNC( schema_compiler_options, env) \
00225          ((schema_compiler_options)->ops->get_name_maker_func( schema_compiler_options, env))
00226 
00227 #define W2C_SCHEMA_COMPILER_OPTIONS_SET_NAME_MAKER_FUNC( schema_compiler_options, env, val) \
00228          ((schema_compiler_options)->ops->set_name_maker_func( schema_compiler_options, env, val))
00229 
00230 
00233 #ifdef __cplusplus
00234 }
00235 #endif
00236 
00237 #endif /* W2C_SCHEMA_COMPILER_OPTIONS_H */

Generated on Thu Oct 26 21:11:24 2006 for Axis2/C by  doxygen 1.4.7