Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 78225 invoked from network); 1 Sep 2006 12:47:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2006 12:47:10 -0000 Received: (qmail 24917 invoked by uid 500); 1 Sep 2006 12:47:05 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 24793 invoked by uid 500); 1 Sep 2006 12:47:04 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 24782 invoked by uid 500); 1 Sep 2006 12:47:04 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 24779 invoked by uid 99); 1 Sep 2006 12:47:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2006 05:47:04 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2006 05:46:58 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 736A31A981D; Fri, 1 Sep 2006 05:46:38 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r439295 [2/15] - in /webservices/axis2/trunk/c: tools/ tools/codegen/ tools/codegen/include/ tools/codegen/samples/ tools/codegen/samples/client/ tools/codegen/samples/client/calculator/ tools/codegen/samples/client/interop_test_svc/ tools/... Date: Fri, 01 Sep 2006 12:46:04 -0000 To: axis2-cvs@ws.apache.org From: nandika@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060901124638.736A31A981D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_engine_configuration.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_engine_configuration.h?rev=439295&view=auto ============================================================================== --- webservices/axis2/trunk/c/tools/codegen/include/w2c_engine_configuration.h (added) +++ webservices/axis2/trunk/c/tools/codegen/include/w2c_engine_configuration.h Fri Sep 1 05:45:57 2006 @@ -0,0 +1,999 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef W2C_ENGINE_CONFIGURATION_H +#define W2C_ENGINE_CONFIGURATION_H + +/** + * @file w2c_engine_configuration.h + * @brief represent command line option + */ + +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +/** + * @defgroup w2c_engine_configuration represent command line option + * @ingroup w2c_wsdl_utils + * @{ + */ + +typedef axis2_char_t* (*W2C_ENGINE_CONFIGURATION_NAMEMAKER) + ( axis2_qname_t *name, const axis2_env_t *env); + +typedef struct w2c_engine_configuration w2c_engine_configuration_t; +typedef struct w2c_engine_configuration_ops w2c_engine_configuration_ops_t; + +AXIS2_DECLARE_DATA struct w2c_engine_configuration_ops +{ + /** + * free w2c_engine_configuration. + * @param engine_configuration pointer to engine_configuration struct + * @param env Environment. MUST NOT be NULL + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + axis2_status_t (AXIS2_CALL * + free)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve base_uri. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return base_uri + */ + axis2_char_t* (AXIS2_CALL * + get_base_uri)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve wsdl_uri. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return wsdl_uri + */ + axis2_char_t* (AXIS2_CALL * + get_wsdl_uri)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve repository_path. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return repository_path + */ + axis2_char_t* (AXIS2_CALL * + get_repository_path)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve type_mapping_file. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return type_mapping_file + */ + axis2_char_t* (AXIS2_CALL * + get_type_mapping_file)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve uri2packagemap. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return uri2packagemap + */ + axis2_hash_t* (AXIS2_CALL * + get_uri2packagemap)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve params_wrapped. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return params_wrapped + */ + axis2_bool_t (AXIS2_CALL * + get_params_wrapped)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve output_location. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return output_location + */ + axis2_char_t* (AXIS2_CALL * + get_output_location)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve output_language. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return output_language + */ + axis2_char_t* (AXIS2_CALL * + get_output_language)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve databinding_type. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return databinding_type + */ + axis2_char_t* (AXIS2_CALL * + get_databinding_type)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve advanced_codegen_enabled. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return advanced_codegen_enabled + */ + axis2_bool_t (AXIS2_CALL * + get_advanced_codegen_enabled)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve async_on. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return async_on + */ + axis2_bool_t (AXIS2_CALL * + get_async_on)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve sync_on. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return sync_on + */ + axis2_bool_t (AXIS2_CALL * + get_sync_on)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve server_side. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return server_side + */ + axis2_bool_t (AXIS2_CALL * + get_server_side)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve generate_deployement_descriptor. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return generate_deployement_descriptor + */ + axis2_bool_t (AXIS2_CALL * + get_generate_deployement_descriptor)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve write_testcase. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return write_testcase + */ + axis2_bool_t (AXIS2_CALL * + get_write_testcase)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve write_message_receiver. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return write_message_receiver + */ + axis2_bool_t (AXIS2_CALL * + get_write_message_receiver)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve package_name. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return package_name + */ + axis2_char_t* (AXIS2_CALL * + get_package_name)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve port_name. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return port_name + */ + axis2_char_t* (AXIS2_CALL * + get_port_name)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve pack_classes. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return pack_classes + */ + axis2_bool_t (AXIS2_CALL * + get_pack_classes)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve generate_all. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return generate_all + */ + axis2_bool_t (AXIS2_CALL * + get_generate_all)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve service_name. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return service_name + */ + axis2_char_t* (AXIS2_CALL * + get_service_name)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve serverside_interface. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return serverside_interface + */ + axis2_bool_t (AXIS2_CALL * + get_serverside_interface)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve policy_map. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return policy_map + */ + axis2_hash_t* (AXIS2_CALL * + get_policy_map)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve configuration_properties. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return configuration_properties + */ + axis2_hash_t* (AXIS2_CALL * + get_configuration_properties)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve wsdl_version. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return wsdl_version + */ + axis2_char_t* (AXIS2_CALL * + get_wsdl_version)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve flatten_files. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return flatten_files + */ + axis2_bool_t (AXIS2_CALL * + get_flatten_files)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve typemapper. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return typemapper + */ + w2c_typemapper_t* (AXIS2_CALL * + get_typemapper)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve convert_names. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return convert_names + */ + axis2_bool_t (AXIS2_CALL * + get_convert_names)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + /** + * retrieve namemaker_func. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return namemaker_func + */ + W2C_ENGINE_CONFIGURATION_NAMEMAKER (AXIS2_CALL * + get_namemaker_func)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + + /** + * retrieve qname2name. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return qname2name_func + */ + w2c_qname2name_maker_t* (AXIS2_CALL * + get_qname2name)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env ); + + + /** + * set base_uri. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param base_uri value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_base_uri ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *base_uri ); + + /** + * set wsdl_uri. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param wsdl_uri value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_wsdl_uri ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *wsdl_uri ); + + /** + * set repository_path. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param repository_path value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_repository_path ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *repository_path ); + + /** + * set type_mapping_file. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param type_mapping_file value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_type_mapping_file ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *type_mapping_file ); + + /** + * set uri2packagemap. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param uri2packagemap value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_uri2packagemap ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_hash_t *uri2packagemap ); + + /** + * set params_wrapped. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param params_wrapped value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_params_wrapped ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t params_wrapped ); + + /** + * set output_location. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param output_location value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_output_location ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *output_location ); + + /** + * set output_language. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param output_language value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_output_language ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *output_language ); + + /** + * set databinding_type. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param databinding_type value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_databinding_type ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *databinding_type ); + + /** + * set advanced_codegen_enabled. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param advanced_codegen_enabled value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_advanced_codegen_enabled ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t advanced_codegen_enabled ); + + /** + * set async_on. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param async_on value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_async_on ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t async_on ); + + /** + * set sync_on. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param sync_on value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_sync_on ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t sync_on ); + + /** + * set server_side. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param server_side value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_server_side ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t server_side ); + + /** + * set generate_deployement_descriptor. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param generate_deployement_descriptor value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_generate_deployement_descriptor ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t generate_deployement_descriptor ); + + /** + * set write_testcase. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param write_testcase value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_write_testcase ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t write_testcase ); + + /** + * set write_message_receiver. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param write_message_receiver value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_write_message_receiver ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t writeMessageReceiver ); + + /** + * set package_name. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param package_name value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_package_name ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *package_name ); + + /** + * set port_nam. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param port_nam value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_port_name) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *package_name ); + + /** + * set pack_classes. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param pack_classes value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_pack_classes ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t packClasses ); + + /** + * set generate_all. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param generate_all value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_generate_all ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t generate_all ); + + /** + * set service_name. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param service_name value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_service_name ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *service_name ); + + /** + * set serverside_interface. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param serverside_interface value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_serverside_interface ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t serverSideInterface ); + + /** + * set policy_map. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param policy_map value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_policy_map ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_hash_t *policy_map ); + + /** + * set configuration_properties. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param configuration_properties value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_configuration_properties ) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_hash_t *configuration_properties ); + + /** + * set wsdl_versio. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param wsdl_versio value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_wsdl_version) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *wsdl_version); + + /** + * set flatten_file. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param flatten_file value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_flatten_files) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t flatten_files); + + /** + * set typemappe. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param typemappe value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL * + set_typemapper)(w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + w2c_typemapper_t *typemapper ); + + /** + * set convert_name. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param convert_name value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_convert_names) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t convert_names); + + /** + * set namemaker function. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param namemaker_func value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_namemaker_func) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + W2C_ENGINE_CONFIGURATION_NAMEMAKER name_maker_func); + + + /** + * set qname2name. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param qname2name_value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_qname2name) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + w2c_qname2name_maker_t *qname2name); + + /** + * set format code option. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @param indent_code value to set + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + set_indent_code) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_bool_t indent_code); + + /** + * get whether format the code. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_bool_t (AXIS2_CALL* + get_indent_code) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env); + + /** + * get arraylist of generated filenames. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return array list of generated filenames. + */ + axis2_array_list_t* (AXIS2_CALL* + get_filenames) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env); + + + /** + * add generating filename. + * @param engine_configuration pointer to engine configuration struct + * @param env Environment. MUST NOT be NULL + * @return AXIS2_SUCCESS on success, AXIS2_FAILURE on failure + */ + axis2_status_t (AXIS2_CALL* + add_filename) ( w2c_engine_configuration_t *engine_configuration, + const axis2_env_t *env, + axis2_char_t *filename); + +}; + +AXIS2_DECLARE_DATA struct w2c_engine_configuration +{ + struct w2c_engine_configuration_ops* ops; +}; + +/** + * create a engine_configuration obj + * @param env Environment. MUST NOT be NULL + * @return newly created engine_configuration obj + */ +AXIS2_EXTERN w2c_engine_configuration_t* AXIS2_CALL +w2c_engine_configuration_create( const axis2_env_t *env ); + +/** + * create a engine_configuration obj with option map + * @param env Environment. MUST NOT be NULL + * @param options option map + * @return newly created engine_configuration obj + */ +AXIS2_EXTERN w2c_engine_configuration_t* AXIS2_CALL +w2c_engine_configuration_create_with_options( const axis2_env_t *env, + axis2_hash_t *options ); + + +/*************************** Function macros **********************************/ + +#define W2C_ENGINE_CONFIGURATION_FREE(engine_configuration, env) \ + ((engine_configuration)->ops->free (engine_configuration, env)) + +#define W2C_ENGINE_CONFIGURATION_GET_BASE_URI(engine_configuration, env) \ + ((engine_configuration)->ops->get_base_uri (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_BASE_URI(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_base_uri (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_WSDL_URI(engine_configuration, env) \ + ((engine_configuration)->ops->get_wsdl_uri (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_WSDL_URI(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_wsdl_uri (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_REPOSITORY_PATH(engine_configuration, env) \ + ((engine_configuration)->ops->get_repository_path (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_REPOSITORY_PATH(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_repository_path (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_TYPE_MAPPING_FILE(engine_configuration, env) \ + ((engine_configuration)->ops->get_type_mapping_file (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_TYPE_MAPPING_FILE(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_type_mapping_file (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_URI2PACKAGEMAP(engine_configuration, env) \ + ((engine_configuration)->ops->get_uri2packagemap (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_URI2PACKAGEMAP(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_uri2packagemap (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_PARAMS_WRAPPED(engine_configuration, env) \ + ((engine_configuration)->ops->get_params_wrapped (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_PARAMS_WRAPPED(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_params_wrapped (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_OUTPUT_LOCATION(engine_configuration, env) \ + ((engine_configuration)->ops->get_output_location (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_OUTPUT_LOCATION(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_output_location (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_OUTPUT_LANGUAGE(engine_configuration, env) \ + ((engine_configuration)->ops->get_output_language (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_OUTPUT_LANGUAGE(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_output_language (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_DATABINDING_TYPE(engine_configuration, env) \ + ((engine_configuration)->ops->get_databinding_type (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_DATABINDING_TYPE(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_databinding_type (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_ADVANCED_CODEGEN_ENABLED(engine_configuration, env) \ + ((engine_configuration)->ops->get_advanced_codegen_enabled (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_ADVANCED_CODEGEN_ENABLED(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_advanced_codegen_enabled (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_ASYNC_ON(engine_configuration, env) \ + ((engine_configuration)->ops->get_async_on (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_ASYNC_ON(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_async_on (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_SYNC_ON(engine_configuration, env) \ + ((engine_configuration)->ops->get_sync_on (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_SYNC_ON(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_sync_on (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_SERVER_SIDE(engine_configuration, env) \ + ((engine_configuration)->ops->get_server_side (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_SERVER_SIDE(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_server_side (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_GENERATE_DEPLOYEMENT_DESCRIPTOR(engine_configuration, env) \ + ((engine_configuration)->ops->get_generate_deployement_descriptor (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_GENERATE_DEPLOYEMENT_DESCRIPTOR(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_generate_deployement_descriptor (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_WRITE_TESTCASE(engine_configuration, env) \ + ((engine_configuration)->ops->get_write_testcase (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_WRITE_TESTCASE(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_write_testcase (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_WRITE_MESSAGE_RECEIVER(engine_configuration, env) \ + ((engine_configuration)->ops->get_write_message_receiver (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_WRITE_MESSAGE_RECEIVER(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_write_message_receiver (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_PACKAGE_NAME(engine_configuration, env) \ + ((engine_configuration)->ops->get_package_name (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_PACKAGE_NAME(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_package_name (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_PACK_CLASSES(engine_configuration, env) \ + ((engine_configuration)->ops->get_pack_classes (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_PACK_CLASSES(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_pack_classes (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_GENERATE_ALL(engine_configuration, env) \ + ((engine_configuration)->ops->get_generate_all (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_GENERATE_ALL(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_generate_all (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_PORT_NAME(engine_configuration, env) \ + ((engine_configuration)->ops->get_port_name (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_PORT_NAME(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_port_name (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_SERVICE_NAME(engine_configuration, env) \ + ((engine_configuration)->ops->get_service_name (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_SERVICE_NAME(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_service_name (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_SERVERSIDE_INTERFACE(engine_configuration, env) \ + ((engine_configuration)->ops->get_serverside_interface (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_SERVERSIDE_INTERFACE(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_serverside_interface (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_POLICY_MAP(engine_configuration, env) \ + ((engine_configuration)->ops->get_policy_map (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_POLICY_MAP(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_policy_map (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_CONFIGURATION_PROPERTIES(engine_configuration, env) \ + ((engine_configuration)->ops->get_configuration_properties (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_CONFIGURATION_PROPERTIES(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_configuration_properties (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_WSDL_VERSION(engine_configuration, env) \ + ((engine_configuration)->ops->get_wsdl_version (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_WSDL_VERSION(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_wsdl_version (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_FLATTEN_FILES(engine_configuration, env) \ + ((engine_configuration)->ops->get_flatten_files (engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_FLATTEN_FILES(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_flatten_files (engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_TYPEMAPPER(engine_configuration, env) \ + ((engine_configuration)->ops->get_typemapper(engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_TYPEMAPPER(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_typemapper(engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_CONVERT_NAMES(engine_configuration, env) \ + ((engine_configuration)->ops->get_convert_names(engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_CONVERT_NAMES(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_convert_names(engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_QNAME2NAME(engine_configuration, env) \ + ((engine_configuration)->ops->get_qname2name(engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_QNAME2NAME(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_qname2name(engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_NAMEMAKER_FUNC(engine_configuration, env) \ + ((engine_configuration)->ops->get_namemaker_func(engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_NAMEMAKER_FUNC(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_namemaker_func(engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_INDENT_CODE(engine_configuration, env) \ + ((engine_configuration)->ops->get_indent_code(engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_SET_INDENT_CODE(engine_configuration, env, val) \ + ((engine_configuration)->ops->set_indent_code(engine_configuration, env, val)) + +#define W2C_ENGINE_CONFIGURATION_GET_FILENAMES(engine_configuration, env) \ + ((engine_configuration)->ops->get_filenames(engine_configuration, env )) + +#define W2C_ENGINE_CONFIGURATION_ADD_FILENAME(engine_configuration, env, val) \ + ((engine_configuration)->ops->add_filename(engine_configuration, env, val)) + + + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* W2C_ENGINE_CONFIGURATION_H */ Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_extension.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_extension.h?rev=439295&view=auto ============================================================================== --- webservices/axis2/trunk/c/tools/codegen/include/w2c_extension.h (added) +++ webservices/axis2/trunk/c/tools/codegen/include/w2c_extension.h Fri Sep 1 05:45:57 2006 @@ -0,0 +1,92 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef W2C_EXTENSION_H +#define W2C_EXTENSION_H + +/** + * @file w2c_extension.h + * @brief represent command line option + */ + +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +/** + * @defgroup w2c_extension represent command line option + * @ingroup w2c_wsdl_utils + * @{ + */ + +typedef struct w2c_extension w2c_extension_t; +typedef struct w2c_extension_ops w2c_extension_ops_t; + +AXIS2_DECLARE_DATA struct w2c_extension_ops +{ + /** + * free w2c_extension. + * @param extension pointer to extension struct + * @param env Environment. MUST NOT be NULL + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + axis2_status_t (AXIS2_CALL * + free)(w2c_extension_t *extension, + const axis2_env_t *env); + + /** + * engage the extension. + * @param extension pointer to extension struct + * @param env Environment. MUST NOT be NULL + * @param conf engine configuration + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + axis2_status_t (AXIS2_CALL * + engage)(w2c_extension_t *extension, + const axis2_env_t *env, + w2c_engine_configuration_t *conf); + + +}; + +AXIS2_DECLARE_DATA struct w2c_extension +{ + struct w2c_extension_ops *ops; +}; + +/** this is an interface for extension */ + +/*************************** Function macros **********************************/ + +#define W2C_EXTENSION_FREE(extension, env) \ + ((extension)->ops->free(extension, env)) + +#define W2C_EXTENSION_ENGAGE(extension, env, conf) \ + ((extension)->ops->engage(extension, env, conf)) + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* W2C_EXTENSION_H */ Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_file_writer.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_file_writer.h?rev=439295&view=auto ============================================================================== --- webservices/axis2/trunk/c/tools/codegen/include/w2c_file_writer.h (added) +++ webservices/axis2/trunk/c/tools/codegen/include/w2c_file_writer.h Fri Sep 1 05:45:57 2006 @@ -0,0 +1,64 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef W2C_FILE_WRITER_H +#define W2C_FILE_WRITER_H + +/** + * @file w2c_file_writer.h + * @brief handles Axis2/C w2c file writing + */ + +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +/** + * @defgroup w2c_file_writer handles file writing + * @ingroup w2c_utils + * @{ + */ + +/** + * creates folder in the path/ returns the fullpath to file. + * @param env double pointer to environment struct. MUST NOT be NULL + * @param root_location location to be written + * @param package_name package, can be '.' separated + * to compatibility with java + * @param file_name name of the file + * @param extension type of the file c, java, csharp, cpp etc + * @return the File that was created + */ +AXIS2_EXTERN axis2_char_t* AXIS2_CALL +w2c_file_writer_create_classfile_name ( + const axis2_env_t *env, + axis2_char_t *rootLocation, + axis2_char_t *package_name, + axis2_char_t *file_name, + axis2_char_t *extension ); + + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* W2C_FILE_WRITER_H */ Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_messages.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_messages.h?rev=439295&view=auto ============================================================================== --- webservices/axis2/trunk/c/tools/codegen/include/w2c_messages.h (added) +++ webservices/axis2/trunk/c/tools/codegen/include/w2c_messages.h Fri Sep 1 05:45:57 2006 @@ -0,0 +1,88 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef W2C_MESSAGES_H +#define W2C_MESSAGES_H + +/** + * @file w2c_messages.h + * @brief handles Axis2/C w2c messages + */ + +#include +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +#define W2C_MESSAGES_INTER_PATH "/conf/" + +/** + * @defgroup w2c_messages handles file writing + * @ingroup w2c_utils + * @{ + */ + +/** + * creates/ returns a hash of messages. + * @param env double pointer to environment struct. MUST NOT be NULL + * @param file_name name of the file + * @return the hash including the messages + */ +AXIS2_EXTERN axis2_properties_t* AXIS2_CALL +w2c_messages_get_message_properties( + const axis2_env_t *env ); + +/** + * return the message for specified key. + * @param env double pointer to environment struct. MUST NOT be NULL + * @param key key for the message + * @return the message + */ +AXIS2_EXTERN axis2_char_t* AXIS2_CALL +w2c_messages_get_message( const axis2_env_t *env, axis2_char_t *key ); + + +/** + * print and log the message for specified key. + * @param env double pointer to environment struct. MUST NOT be NULL + * @param key key for the message + */ +AXIS2_EXTERN void AXIS2_CALL +w2c_messages_print_n_log_error( const axis2_env_t *env, + axis2_char_t *key ); + +/** + * print and log the message for specified key from given properties. + * @param env double pointer to environment struct. MUST NOT be NULL + * @param properties properties to find the key + * @param key key for the message + */ +AXIS2_EXTERN void AXIS2_CALL +w2c_messages_print_n_log_error_from_properties( const axis2_env_t *env, + axis2_properties_t *props, + axis2_char_t *key ); + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* W2C_MESSAGES_H */ Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_properties.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_properties.h?rev=439295&view=auto ============================================================================== --- webservices/axis2/trunk/c/tools/codegen/include/w2c_properties.h (added) +++ webservices/axis2/trunk/c/tools/codegen/include/w2c_properties.h Fri Sep 1 05:45:57 2006 @@ -0,0 +1,99 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef W2C_PROPERTIES_PARSER_H +#define W2C_PROPERTIES_PARSER_H + +/** + * @file w2c_properties_parser.h + * @brief handles Axis2/C w2c parse .properties file + */ + +#include +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +/** + * @defgroup w2c_properties represent command line option + * @ingroup w2c_wsdl_utils + * @{ + */ + +typedef struct w2c_properties w2c_properties_t; +typedef struct w2c_properties_ops w2c_properties_ops_t; + +AXIS2_DECLARE_DATA struct w2c_properties_ops +{ + /** + * free w2c_properties. + * @param properties pointer to properties struct + * @param env Environment. MUST NOT be NULL + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + + axis2_status_t (AXIS2_CALL * + free)(w2c_properties_t *properties, + const axis2_env_t *env); + + /** + * parse the properties file and return hash + * @param env double pointer to environment struct. MUST NOT be NULL + * return hash ( key, array list of strings) + */ + axis2_hash_t* (AXIS2_CALL * + get_hash)(w2c_properties_t *properties, + const axis2_env_t *env); +}; + +AXIS2_DECLARE_DATA struct w2c_properties +{ + struct w2c_properties_ops *ops; +}; + +/** + * create a properties obj with aonther properties + * @param env Environment. MUST NOT be NULL + * @param properties copying properties + * @param filename filename of .properties + * @param seprator sep + * @return newly created w2c_properties object.. + */ +AXIS2_EXTERN w2c_properties_t* AXIS2_CALL +w2c_properties_create( const axis2_env_t *env, + axis2_char_t *filename, + axis2_char_t seperator); + +/*************************** Function macros **********************************/ + +#define W2C_PROPERTIES_FREE(properties, env) \ + ((properties)->ops->free (properties, env)) + +#define W2C_PROPERTIES_GET_HASH(properties, env) \ + ((properties)->ops->get_hash(properties, env)) + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* W2C_PROPERTIES_PARSER_H */ Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_qname2name_maker.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_qname2name_maker.h?rev=439295&view=auto ============================================================================== --- webservices/axis2/trunk/c/tools/codegen/include/w2c_qname2name_maker.h (added) +++ webservices/axis2/trunk/c/tools/codegen/include/w2c_qname2name_maker.h Fri Sep 1 05:45:57 2006 @@ -0,0 +1,100 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef W2C_QNAME2NAME_MAKER_H +#define W2C_QNAME2NAME_MAKER_H + +/** + * @file w2c_qname2name_maker.h + * @brief represent command line option + */ + +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +/** + * @defgroup w2c_qname2name_maker represent command line option + * @ingroup w2c_wsdl_utils + * @{ + */ + +typedef struct w2c_qname2name_maker w2c_qname2name_maker_t; +typedef struct w2c_qname2name_maker_ops w2c_qname2name_maker_ops_t; + +AXIS2_DECLARE_DATA struct w2c_qname2name_maker_ops +{ + /** + * free w2c_qname2name_maker. + * @param qname2name_maker pointer to qname2name_maker struct + * @param env Environment. MUST NOT be NULL + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + axis2_status_t (AXIS2_CALL * + free)(w2c_qname2name_maker_t *qname2name_maker, + const axis2_env_t *env); + + /** + * suggest name for a qname. + * @param qname2name_maker pointer to qname2name_maker struct + * @param env Environment. MUST NOT be NULL + * @param qname qname to suggest the name. + * @return suggest name for the qname. + */ + axis2_char_t* (AXIS2_CALL * + suggest_name)(w2c_qname2name_maker_t *qname2name_maker, + const axis2_env_t *env, + axis2_qname_t *qname); + + +}; + +AXIS2_DECLARE_DATA struct w2c_qname2name_maker +{ + struct w2c_qname2name_maker_ops *ops; +}; + +/** this is an interface for qname2name_maker*/ + +/** + * create a qname2name_maker obj. + * @param env Environment. MUST NOT be NULL + * @param parser user options parser + * @return newly created qname2name_maker obj + */ +AXIS2_EXTERN w2c_qname2name_maker_t* AXIS2_CALL +w2c_qname2name_maker_create( const axis2_env_t *env); + +/*************************** Function macros **********************************/ + +#define W2C_QNAME2NAME_MAKER_FREE(qname2name_maker, env) \ + ((qname2name_maker)->ops->free(qname2name_maker, env)) + +#define W2C_QNAME2NAME_MAKER_SUGGEST_NAME(qname2name_maker, env, qname) \ + ((qname2name_maker)->ops->suggest_name(qname2name_maker, env, qname)) + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* W2C_QNAME2NAME_MAKER_H */ Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_compiler.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_compiler.h?rev=439295&view=auto ============================================================================== --- webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_compiler.h (added) +++ webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_compiler.h Fri Sep 1 05:45:57 2006 @@ -0,0 +1,115 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef W2C_SCHEMA_COMPILER_H +#define W2C_SCHEMA_COMPILER_H + +/** + * @file w2c_schema_compiler.h + * @brief represent command line option + */ + +#include +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +/** + * @defgroup w2c_schema_compiler represent command line option + * @ingroup w2c_wsdl_utils + * @{ + */ +typedef struct w2c_schema_compiler w2c_schema_compiler_t; +typedef struct w2c_schema_compiler_ops w2c_schema_compiler_ops_t; + +AXIS2_DECLARE_DATA struct w2c_schema_compiler_ops +{ + /** + * free w2c_schema_compiler. + * @param schema_compiler pointer to schema_compiler struct + * @param env Environment. MUST NOT be NULL + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + axis2_status_t (AXIS2_CALL * + free)(w2c_schema_compiler_t *schema_compiler, + const axis2_env_t *env); + + /** + * free w2c_schema_compiler. + * @param schema_compiler pointer to schema_compiler struct + * @param env Environment. MUST NOT be NULL + * @param xml_schema schema to compile + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + axis2_status_t (AXIS2_CALL * + compile)( w2c_schema_compiler_t *compiler, + const axis2_env_t *env, + xml_schema_t *xml_schema); + + /** + * free w2c_schema_compiler. + * @param schema_compiler pointer to schema_compiler struct + * @param env Environment. MUST NOT be NULL + * @param schema_list list of schemas + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + axis2_status_t (AXIS2_CALL * + compile_schema_list)( w2c_schema_compiler_t *compiler, + const axis2_env_t *env, + axis2_array_list_t *schema_list); + +}; + +AXIS2_DECLARE_DATA struct w2c_schema_compiler +{ + struct w2c_schema_compiler_ops *ops; +}; + +/** + * create a schema_compiler obj. + * @param env Environment. MUST NOT be NULL + * @param options compiler options + * @return newly created schema_compiler obj + */ +AXIS2_EXTERN w2c_schema_compiler_t* AXIS2_CALL +w2c_schema_compiler_create( const axis2_env_t *env, + w2c_schema_compiler_options_t *options); + +/*************************** Function macros **********************************/ + +#define W2C_SCHEMA_COMPILER_FREE(schema_compiler, env) \ + ((schema_compiler)->ops->free (schema_compiler, env)) + +#define W2C_SCHEMA_COMPILER_COMPILE_SCHEMA_LIST(schema_compiler, env, list) \ + ((schema_compiler)->ops->compile_schema_list(schema_compiler, env, list)) + +#define W2C_SCHEMA_COMPILER_COMPILE(schema_compiler, env, schema) \ + ((schema_compiler)->ops->compile(schema_compiler, env, schema)) + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* W2C_SCHEMA_COMPILER_H */ Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_compiler_options.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_compiler_options.h?rev=439295&view=auto ============================================================================== --- webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_compiler_options.h (added) +++ webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_compiler_options.h Fri Sep 1 05:45:57 2006 @@ -0,0 +1,188 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef W2C_SCHEMA_COMPILER_OPTIONS_H +#define W2C_SCHEMA_COMPILER_OPTIONS_H + +/** + * @file w2c_schema_compiler_options.h + * @brief represent command line option + */ + +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +/** + * @defgroup w2c_schema_compiler_options represent command line option + * @ingroup w2c_wsdl_utils + * @{ + */ + +typedef struct w2c_schema_compiler_options w2c_schema_compiler_options_t; +typedef struct w2c_schema_compiler_options_ops w2c_schema_compiler_options_ops_t; + +AXIS2_DECLARE_DATA struct w2c_schema_compiler_options_ops +{ + /** + * free w2c_schema_compiler_options. + * @param schema_compiler_options pointer to schema_compiler_options struct + * @param env Environment. MUST NOT be NULL + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + + axis2_status_t (AXIS2_CALL * + free)(w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env); + + axis2_status_t (AXIS2_CALL * + set_output_location)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env, + axis2_char_t *output_location); + + axis2_char_t* (AXIS2_CALL * + get_output_location)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env); + + axis2_status_t (AXIS2_CALL * + set_mapper_class_package)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env, + axis2_char_t *mapper_class_package); + + axis2_char_t* (AXIS2_CALL * + get_mapper_class_package)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env); + + axis2_status_t (AXIS2_CALL * + set_package_name)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env, + axis2_char_t *package_name); + + axis2_char_t* (AXIS2_CALL * + get_package_name)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env); + + axis2_status_t (AXIS2_CALL * + set_helper_mode)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env, + axis2_bool_t helper_mode); + + axis2_bool_t (AXIS2_CALL * + get_helper_mode)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env); + + axis2_status_t (AXIS2_CALL * + set_write_out)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env, + axis2_bool_t write_out); + + axis2_bool_t (AXIS2_CALL * + get_write_out)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env); + + axis2_status_t (AXIS2_CALL * + set_wrap_classes)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env, + axis2_bool_t wrap_classes); + + axis2_bool_t (AXIS2_CALL * + get_wrap_classes)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env); + + axis2_status_t (AXIS2_CALL * + set_ns2package_map)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env, + axis2_hash_t *ns2package_map); + + axis2_hash_t* (AXIS2_CALL * + get_ns2package_map)( w2c_schema_compiler_options_t *schema_compiler_options, + const axis2_env_t *env); + +}; + +AXIS2_DECLARE_DATA struct w2c_schema_compiler_options +{ + struct w2c_schema_compiler_options_ops *ops; +}; + +/** + * create a schema_compiler_options obj + * @param env Environment. MUST NOT be NULL + * @return newly created schema_compiler_options obj + */ +AXIS2_EXTERN w2c_schema_compiler_options_t* AXIS2_CALL +w2c_schema_compiler_options_create( const axis2_env_t *env); + +/*************************** Function macros **********************************/ + +#define W2C_SCHEMA_COMPILER_OPTIONS_FREE(schema_compiler_options, env) \ + ((schema_compiler_options)->ops->free (schema_compiler_options, env)) + +#define W2C_SCHEMA_COMPILER_OPTIONS_GET_OUTPUT_LOCATION( schema_compiler_options, env) \ + ((schema_compiler_options)->ops->get_output_location ( schema_compiler_options, env); + +#define W2C_SCHEMA_COMPILER_OPTIONS_SET_OUTPUT_LOCATION( schema_compiler_options, env, val) \ + ((schema_compiler_options)->ops->set_output_location ( schema_compiler_options, env, val); + +#define W2C_SCHEMA_COMPILER_OPTIONS_GET_PACKAGE_NAME( schema_compiler_options, env) \ + ((schema_compiler_options)->ops->get_package_name( schema_compiler_options, env); + +#define W2C_SCHEMA_COMPILER_OPTIONS_SET_PACKAGE_NAME( schema_compiler_options, env, val) \ + ((schema_compiler_options)->ops->set_package_name( schema_compiler_options, env, val); + +#define W2C_SCHEMA_COMPILER_OPTIONS_GET_HELPER_MODE( schema_compiler_options, env) \ + ((schema_compiler_options)->ops->get_helper_mode( schema_compiler_options, env); + +#define W2C_SCHEMA_COMPILER_OPTIONS_SET_HELPER_MODE( schema_compiler_options, env, val) \ + ((schema_compiler_options)->ops->set_helper_mode( schema_compiler_options, env, val); + +#define W2C_SCHEMA_COMPILER_OPTIONS_GET_WRITE_OUT( schema_compiler_options, env) \ + ((schema_compiler_options)->ops->get_write_out( schema_compiler_options, env); + +#define W2C_SCHEMA_COMPILER_OPTIONS_SET_WRITE_OUT( schema_compiler_options, env, val) \ + ((schema_compiler_options)->ops->set_write_out( schema_compiler_options, env, val); + +#define W2C_SCHEMA_COMPILER_OPTIONS_GET_WRAP_CLASSES( schema_compiler_options, env) \ + ((schema_compiler_options)->ops->get_wrap_classes( schema_compiler_options, env); + +#define W2C_SCHEMA_COMPILER_OPTIONS_SET_WRAP_CLASSES( schema_compiler_options, env, val) \ + ((schema_compiler_options)->ops->set_wrap_classes( schema_compiler_options, env, val); + +#define W2C_SCHEMA_COMPILER_OPTIONS_GET_NS2PACKAGE_MAP( schema_compiler_options, env) \ + ((schema_compiler_options)->ops->get_ns2package_map( schema_compiler_options, env); + +#define W2C_SCHEMA_COMPILER_OPTIONS_SET_NS2PACKAGE_MAP( schema_compiler_options, env, val) \ + ((schema_compiler_options)->ops->set_ns2package_map( schema_compiler_options, env, val); + +#define W2C_SCHEMA_COMPILER_OPTIONS_GET_MAPPER_CLASS_PACKAGE( schema_compiler_options, env) \ + ((schema_compiler_options)->ops->get_mapper_class_package( schema_compiler_options, env); + +#define W2C_SCHEMA_COMPILER_OPTIONS_SET_MAPPER_CLASS_PACKAGE( schema_compiler_options, env, val) \ + ((schema_compiler_options)->ops->set_mapper_class_package( schema_compiler_options, env, val); + + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* W2C_SCHEMA_COMPILER_OPTIONS_H */ Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_consts.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_consts.h?rev=439295&view=auto ============================================================================== --- webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_consts.h (added) +++ webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_consts.h Fri Sep 1 05:45:57 2006 @@ -0,0 +1,111 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef W2C_SCHEMA_CONSTS_H +#define W2C_SCHEMA_CONSTS_H + +/** + * @file w2c_schema_consts.h + * @brief command line option constants + */ + +#include +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +/** + * @defgroup w2c_schema_consts keep command line optons consts + * @ingroup w2c_wsdl_utils + * @{ + */ + +/** schema constants */ + + +#define W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD URI_2001_SCHEMA_XSD + +#define W2C_SCHEMA_XSD_STRING "string" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_BOOLEAN "boolean" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_DOUBLE "double" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_FLOAT "float" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_INT "int" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_INTEGER "integer" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_LONG "long" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_SHORT "short" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_BYTE "byte" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_DECIMAL "decimal" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_BASE64 "base64Binary" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_HEXBIN "hexBinary" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_ANYSIMPLETYPE "anySimpleType" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_ANYTYPE "anyType" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_ANY "any" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_QNAME "QName" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_DATETIME "dateTime" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_DATE "date" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_TIME "time" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_UNSIGNEDLONG "unsignedLong" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_UNSIGNEDINT "unsignedInt" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_UNSIGNEDSHORT "unsignedShort" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_UNSIGNEDBYTE "unsignedByte" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_POSITIVEINTEGER "positiveInteger" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_NEGATIVEINTEGER "negativeInteger" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_NONNEGATIVEINTEGER "nonNegativeInteger" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_NONPOSITIVEINTEGER "nonPositiveInteger" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_YEARMONTH "gYearMonth" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_MONTHDAY "gMonthDay" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_YEAR "gYear" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_MONTH "gMonth" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_DAY "gDay" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_DURATION "duration" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_NAME "Name" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_NCNAME "NCName" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_NMTOKEN "NMTOKEN" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_NMTOKENS "NMTOKENS" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_NOTATION "NOTATION" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_ENTITY "ENTITY" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_ENTITIES "ENTITIES" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_IDREF "IDREF" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_IDREFS "IDREFS" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_ANYURI "anyURI" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_LANGUAGE "language" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_ID "ID" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_SCHEMA "schema" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_NORMALIZEDSTRING "normalizedString" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD +#define W2C_SCHEMA_XSD_TOKEN "token" "|" W2C_SCHEMA_URI_DEFAULT_SCHEMA_XSD + +/*it patterns for the types*/ + +#define W2C_SCHEMA_ATTRIBUTE_TYPE 0x01 +/*#define W2C_SCHEMA_ANY 0x02*/ +#define W2C_SCHEMA_ELEMENT_TYPE 0x02 +/*#define W2C_SCHEMA_ANY_ATTRIBUTE_TYPE 0x08*/ +#define W2C_SCHEMA_ARRAY_TYPE 0x04 +#define W2C_SCHEMA_ANY_TYPE 0x08 +#define W2C_SCHEMA_BINARY_TYPE 0x10 + + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* W2C_SCHEMA_CONSTS_H */ Added: webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_property_loader.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_property_loader.h?rev=439295&view=auto ============================================================================== --- webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_property_loader.h (added) +++ webservices/axis2/trunk/c/tools/codegen/include/w2c_schema_property_loader.h Fri Sep 1 05:45:57 2006 @@ -0,0 +1,163 @@ +/* + * Copyright 2004,2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef W2C_SCHEMA_PROPERTY_LOADER_H +#define W2C_SCHEMA_PROPERTY_LOADER_H + +/** + * @file w2c_schema_property_loader.h + * @brief represent command line option + */ + +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +/** + * @defgroup w2c_schema_property_loader represent command line option + * @ingroup w2c_wsdl_utils + * @{ + */ +typedef struct w2c_schema_property_loader w2c_schema_property_loader_t; +typedef struct w2c_schema_property_loader_ops w2c_schema_property_loader_ops_t; + +AXIS2_DECLARE_DATA struct w2c_schema_property_loader_ops +{ + /** + * free w2c_schema_property_loader. + * @param schema_property_loader pointer to schema_property_loader struct + * @param env Environment. MUST NOT be NULL + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + axis2_status_t (AXIS2_CALL * + free)(w2c_schema_property_loader_t *schema_property_loader, + const axis2_env_t *env); + + /** + * change the filename of the loader + * just sets the filame should call reload to reload the properties. + * @param schema_property_loader pointer to schema_property_loader struct + * @param env Environment. MUST NOT be NULL + * @param filename filename of the property file. MUST NOT be NULL + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + axis2_status_t (AXIS2_CALL * + set_filename)(w2c_schema_property_loader_t *schema_property_loader, + const axis2_env_t *env, axis2_char_t *filename); + + /** + * change the language of the loader + * just sets the language to call reload the properties. + * @param schema_property_loader pointer to schema_property_loader struct + * @param env Environment. MUST NOT be NULL + * @param lang language to be loaded + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + axis2_status_t (AXIS2_CALL * + set_language)(w2c_schema_property_loader_t *schema_property_loader, + const axis2_env_t *env, axis2_char_t *lang); + + + /** + * reload the properties. + * @param schema_property_loader pointer to schema_property_loader struct + * @param env Environment. MUST NOT be NULL + * @return status of the op. AXIS2_SUCCESS on success + * else AXIS2_FAILURE + */ + axis2_status_t (AXIS2_CALL * + reload )(w2c_schema_property_loader_t *schema_property_loader, + const axis2_env_t *env); + + /** + * retrieve schema template name. + * @param env Environment. MUST NOT be NULL + * @param lang language to get the template name + * @return Returns axis2_char_t*. + */ + axis2_char_t* (AXIS2_CALL* + get_template_name)( + w2c_schema_property_loader_t *schema_property_loader, + const axis2_env_t *env); + + /** + * retrieve schema writer instance. + * @param env Environment. MUST NOT be NULL + * @return Returns axis2_char_t*. + */ + w2c_schema_writer_t* (AXIS2_CALL* + get_writer_instance)( + w2c_schema_property_loader_t *schema_property_loader, + const axis2_env_t *env); + + /** + * retrieve typemapper name. + * @param env Environment. MUST NOT be NULL + * @return Returns axis2_array_list_t*. + */ + axis2_char_t* (AXIS2_CALL* + get_typemapper_name)( + w2c_schema_property_loader_t *schema_property_loader, + const axis2_env_t *env); +}; + +AXIS2_DECLARE_DATA struct w2c_schema_property_loader +{ + struct w2c_schema_property_loader_ops *ops; +}; + +/** + * create a schema_property_loader obj + * @param env Environment. MUST NOT be NULL + * @param lang language to be loaded + * @return newly created schema_property_loader obj + */ +AXIS2_EXTERN w2c_schema_property_loader_t* AXIS2_CALL +w2c_schema_property_loader_create( const axis2_env_t *env, axis2_char_t *lang); + +/*************************** Function macros **********************************/ + +#define W2C_SCHEMA_PROPERTY_LOADER_FREE(schema_property_loader, env) \ + ((schema_property_loader)->ops->free (schema_property_loader, env)) + +#define W2C_SCHEMA_PROPERTY_LOADER_SET_FILENAME(schema_property_loader, env, filename) \ + ((schema_property_loader)->ops->set_filename (schema_property_loader, env, filename)) + +#define W2C_SCHEMA_PROPERTY_LOADER_RELOAD(schema_property_loader, env) \ + ((schema_property_loader)->ops->reload (schema_property_loader, env)) + +#define W2C_SCHEMA_PROPERTY_LOADER_GET_TEMPLATE_NAME(schema_property_loader, env) \ + ((schema_property_loader)->ops->get_template_name(schema_property_loader, env)) + +#define W2C_SCHEMA_PROPERTY_LOADER_GET_TYPEMAPPER_NAME(schema_property_loader, env) \ + ((schema_property_loader)->ops->get_typemapper_name(schema_property_loader, env)) + + + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* W2C_SCHEMA_PROPERTY_LOADER_H */ --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org