w2c_schema_compiler_options.h

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

Generated on Wed Dec 20 20:34:50 2006 for Axis2/C by  doxygen 1.5.1