axis2_wsdl_feature.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 AXIS2_WSDL_FEATURE_H
00019 #define AXIS2_WSDL_FEATURE_H
00020 
00026 #include <axis2_const.h>
00027 #include <axis2_error.h>
00028 #include <axis2_defines.h>
00029 #include <axis2_env.h>
00030 #include <axis2_allocator.h>
00031 #include <axis2_wsdl_component.h>
00032 
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037 
00038 struct axis2_wsdl_component;    
00039 typedef struct axis2_wsdl_feature axis2_wsdl_feature_t;
00040 typedef struct axis2_wsdl_feature_ops axis2_wsdl_feature_ops_t;
00041 
00051  struct axis2_wsdl_feature_ops
00052 {
00056    axis2_status_t (AXIS2_CALL *
00057     free)(axis2_wsdl_feature_t *wsdl_feature,
00058            const axis2_env_t *env);
00059                                
00065     axis2_char_t *(AXIS2_CALL *
00066     get_name) (axis2_wsdl_feature_t *wsdl_feature,
00067                                     const axis2_env_t *env);
00068                                     
00074     axis2_status_t (AXIS2_CALL *
00075     set_name) (axis2_wsdl_feature_t *wsdl_feature,
00076                                     const axis2_env_t *env,
00077                                     axis2_char_t *name);
00078     
00079     
00085     axis2_bool_t (AXIS2_CALL *
00086     is_required) (axis2_wsdl_feature_t *wsdl_feature,
00087                                     const axis2_env_t *env);
00088                                     
00094     axis2_status_t (AXIS2_CALL *
00095     set_required) (axis2_wsdl_feature_t *wsdl_feature,
00096                                     const axis2_env_t *env,
00097                                     axis2_bool_t required);  
00098 
00099 
00100 };
00101 
00106  struct axis2_wsdl_feature
00107 {
00108    axis2_wsdl_feature_ops_t *ops;
00109     struct axis2_wsdl_component *wsdl_component;
00110 };
00111 
00116 AXIS2_EXTERN axis2_wsdl_feature_t *AXIS2_CALL axis2_wsdl_feature_create (const axis2_env_t *env);
00117 
00118 /*************************** Function macros **********************************/
00119 
00120 #define AXIS2_WSDL_FEATURE_FREE(wsdl_feature, env) \
00121       ((wsdl_feature)->ops->free (wsdl_feature, env))
00122 
00123 #define AXIS2_WSDL_FEATURE_GET_NAME(wsdl_feature, env) \
00124       ((wsdl_feature)->ops->get_name (wsdl_feature, env))
00125 
00126 #define AXIS2_WSDL_FEATURE_SET_NAME(wsdl_feature, env, name) \
00127       ((wsdl_feature)->ops->set_name (wsdl_feature, env, name))
00128         
00129 #define AXIS2_WSDL_FEATURE_IS_REQUIRED(wsdl_feature, env) \
00130       ((wsdl_feature)->ops->is_required (wsdl_feature, env))
00131 
00132 #define AXIS2_WSDL_FEATURE_SET_REQUIRED(wsdl_feature, env, required) \
00133       ((wsdl_feature)->ops->set_required (wsdl_feature, env, required))        
00134 
00135 /*************************** End of function macros ***************************/
00136 
00139 #ifdef __cplusplus
00140 }
00141 #endif
00142 #endif  /* AXIS2_WSDL_FEATURE_H */

Generated on Wed Dec 20 20:14:10 2006 for Axis2/C by  doxygen 1.5.1