woden_binding_fault.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 WODEN_BINDING_FAULT_H
00018 #define WODEN_BINDING_FAULT_H
00019 
00028 #include <woden.h>
00029 #include <woden_binding_fault_element.h>
00030 #include <woden_nested_configurable.h>
00031 #include <axis2_qname.h>
00032 
00038 typedef union woden_binding_fault_base woden_binding_fault_base_t;
00039 typedef struct woden_binding_fault woden_binding_fault_t;
00040 typedef struct woden_binding_fault_ops woden_binding_fault_ops_t;
00041 
00042 
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047 
00048 struct woden_binding_fault_ops
00049 {
00054     axis2_status_t (AXIS2_CALL *
00055     free) (void *binding_fault,
00056             const axis2_env_t *env);
00057 
00058     axis2_hash_t *(AXIS2_CALL *
00059     super_objs) (void *binding_fault,
00060             const axis2_env_t *env);
00061 
00062     woden_obj_types_t (AXIS2_CALL *
00063     type) (void *binding_fault,
00064             const axis2_env_t *env);
00068     struct woden_nested_configurable *(AXIS2_CALL *
00069     get_base_impl) (
00070             void *binding_fault,
00071             const axis2_env_t *env);
00072 
00073     void *(AXIS2_CALL *
00074     get_interface_fault) (
00075             void *binding_fault,
00076             const axis2_env_t *env);
00077 
00078     void *(AXIS2_CALL *
00079     to_element)  (
00080             void *binding_fault,
00081             const axis2_env_t *env);
00082 
00083     /**************************************************************************
00084      *                      Non-API implementation methods
00085      **************************************************************************/
00086     axis2_status_t (AXIS2_CALL *
00087     set_interface_fault_element) (
00088             void *binding_fault,
00089             const axis2_env_t *env,
00090             void *in_fault);
00091 };
00092 
00093 union woden_binding_fault_base
00094 {
00095     woden_nested_configurable_t nested_configurable;
00096     woden_binding_fault_element_t binding_fault_element;
00097 };
00098 
00099 struct woden_binding_fault
00100 {
00101     woden_binding_fault_base_t base;
00102     woden_binding_fault_ops_t *ops;
00103 };
00104 
00105 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00106 woden_binding_fault_create(
00107         const axis2_env_t *env);
00108 
00109 
00110 /***************************Woden C Internal Methods***************************/
00111 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00112 woden_binding_fault_to_binding_fault_element(
00113         void *binding_fault,
00114         const axis2_env_t *env);
00115 
00116 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00117 woden_binding_fault_to_nested_configurable(
00118         void *binding_fault,
00119         const axis2_env_t *env);
00120 
00121 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00122 woden_binding_fault_to_configurable(
00123         void *binding_fault,
00124         const axis2_env_t *env);
00125 
00126 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00127 woden_binding_fault_to_wsdl_obj(
00128         void *binding_fault,
00129         const axis2_env_t *env);
00130 
00131 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00132 woden_binding_fault_to_documentable_element(
00133         void *binding_fault,
00134         const axis2_env_t *env);
00135 
00136 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00137 woden_binding_fault_to_documentable(
00138         void *binding_fault,
00139         const axis2_env_t *env);
00140 
00141 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00142 woden_binding_fault_to_nested_element(
00143         void *binding_fault,
00144         const axis2_env_t *env);
00145 
00146 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00147 woden_binding_fault_to_wsdl_component(
00148         void *binding_fault,
00149         const axis2_env_t *env);
00150 
00151 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00152 woden_binding_fault_to_configurable_element(
00153         void *binding_fault,
00154         const axis2_env_t *env);
00155 
00156 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00157 woden_binding_fault_to_attr_extensible(
00158         void *binding_fault,
00159         const axis2_env_t *env);
00160 
00161 AXIS2_EXTERN woden_binding_fault_t * AXIS2_CALL
00162 woden_binding_fault_to_element_extensible(
00163         void *binding_fault,
00164         const axis2_env_t *env);
00165 
00166 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00167 woden_binding_fault_resolve_methods(
00168         woden_binding_fault_t *binding_fault,
00169         const axis2_env_t *env,
00170         woden_binding_fault_t *binding_fault_impl,
00171         axis2_hash_t *methods);
00172 /************************End of Woden C Internal Methods***********************/
00173 
00174 #define WODEN_BINDING_FAULT_FREE(binding_fault, env) \
00175       (((woden_binding_fault_t *) binding_fault)->ops->free(binding_fault, env))
00176 
00177 #define WODEN_BINDING_FAULT_SUPER_OBJS(binding_fault, env) \
00178       (((woden_binding_fault_t *) binding_fault)->ops->super_objs(binding_fault, env))
00179 
00180 #define WODEN_BINDING_FAULT_TYPE(binding_fault, env) \
00181       (((woden_binding_fault_t *) binding_fault)->ops->type(binding_fault, env))
00182 
00183 #define WODEN_BINDING_FAULT_GET_BASE_IMPL(binding_fault, env) \
00184       (((woden_binding_fault_t *) binding_fault)->ops->get_base_impl(binding_fault, env))
00185 
00186 #define WODEN_BINDING_FAULT_GET_INTERFACE_FAULT(binding_fault, env) \
00187       (((woden_binding_fault_t *) binding_fault)->ops->\
00188          get_interface_fault(binding_fault, env))
00189 
00190 #define WODEN_BINDING_FAULT_TO_ELEMENT(binding_fault, env) \
00191       (((woden_binding_fault_t *) binding_fault)->ops->\
00192          to_element(binding_fault, env))
00193 
00194 #define WODEN_BINDING_FAULT_SET_INTERFACE_FAULT_ELEMENT(binding_fault, env, in_fault) \
00195       (((woden_binding_fault_t *) binding_fault)->ops->\
00196          set_interface_fault_element(binding_fault, env, in_fault))
00197 
00199 #ifdef __cplusplus
00200 }
00201 #endif
00202 #endif /* WODEN_BINDING_FAULT_H */

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