woden_binding_fault_element.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 WODEN_BINDING_FAULT_ELEMENT_H
00019 #define WODEN_BINDING_FAULT_ELEMENT_H
00020 
00027 #include <axis2_allocator.h>
00028 #include <axis2_env.h>
00029 #include <axis2_error.h>
00030 #include <axis2_string.h>
00031 #include <axis2_utils.h>
00032 #include <axis2_hash.h>
00033 #include <axis2_qname.h>
00034 #include <axis2_uri.h>
00035 #include <axis2_array_list.h>
00036 #include <woden.h>
00037 #include <woden_documentable_element.h>
00038 #include <woden_configurable_element.h>
00039 #include <woden_nested_element.h>
00040 
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045 
00046 typedef struct woden_binding_fault_element woden_binding_fault_element_t;
00047 typedef struct woden_binding_fault_element_ops woden_binding_fault_element_ops_t;
00048 typedef union woden_binding_fault_element_base woden_binding_fault_element_base_t;
00049 
00055 struct woden_binding_fault_element_ops
00056 {
00061     axis2_status_t (AXIS2_CALL *
00062     free) (
00063             void *binding_fault_element,
00064             const axis2_env_t *env);
00065  
00066     woden_obj_types_t (AXIS2_CALL *
00067     type) (
00068             void *binding_fault_element,
00069             const axis2_env_t *env);
00070 
00077     axis2_status_t (AXIS2_CALL *
00078     set_ref) (
00079             void *iface_fault_ele,
00080             const axis2_env_t *env,
00081             axis2_qname_t *qname);
00082     
00083     axis2_qname_t *(AXIS2_CALL *
00084     get_ref) (
00085             void *iface_fault_ele,
00086             const axis2_env_t *env);
00087     
00094     void *(AXIS2_CALL *
00095     get_interface_fault_element) (
00096             void *iface_fault_ele,
00097             const axis2_env_t *env);
00098 
00099 };
00100 
00101 union woden_binding_fault_element_base
00102 {
00103     woden_documentable_element_t documentable_element;
00104     woden_configurable_element_t configurable_element;
00105     woden_nested_element_t nested_element;
00106 };
00107 
00108 struct woden_binding_fault_element
00109 {
00110     woden_binding_fault_element_base_t base;
00111     woden_binding_fault_element_ops_t *ops;
00112 };
00113 
00114 AXIS2_EXTERN woden_binding_fault_element_t * AXIS2_CALL
00115 woden_binding_fault_element_create(
00116         const axis2_env_t *env);
00117 
00118 /************************Woden C Internal Methods******************************/
00119 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00120 woden_binding_fault_element_resolve_methods(
00121         woden_binding_fault_element_t *binding_fault_element,
00122         const axis2_env_t *env,
00123         axis2_hash_t *methods);
00124 /************************End of Woden C Internal Methods***********************/
00125 
00126 #define WODEN_BINDING_FAULT_ELEMENT_FREE(binding_fault_element, env) \
00127       (((woden_binding_fault_element_t *) binding_fault_element)->ops->\
00128          free (binding_fault_element, env))
00129 
00130 #define WODEN_BINDING_FAULT_ELEMENT_TO_BINDING_FAULT_ELEMENT_FREE(binding_fault_element, env) \
00131       (((woden_binding_fault_element_t *) binding_fault_element)->ops->\
00132          to_binding_fault_element_free (binding_fault_element, env))
00133 
00134 #define WODEN_BINDING_FAULT_ELEMENT_SUPER_OBJS(binding_fault_element, env) \
00135       (((woden_binding_fault_element_t *) binding_fault_element)->ops->\
00136          super_objs (binding_fault_element, env))
00137 
00138 #define WODEN_BINDING_FAULT_ELEMENT_TYPE(binding_fault_element, env) \
00139       (((woden_binding_fault_element_t *) binding_fault_element)->ops->\
00140          type (binding_fault_element, env))
00141 
00142 #define WODEN_BINDING_FAULT_ELEMENT_SET_REF(binding_fault_element, env, qname) \
00143       (((woden_binding_fault_element_t *) binding_fault_element)->ops->\
00144          set_ref (binding_fault_element, env, qname))
00145 
00146 #define WODEN_BINDING_FAULT_ELEMENT_GET_REF(binding_fault_element, env) \
00147       (((woden_binding_fault_element_t *) binding_fault_element)->ops->\
00148         get_ref  (binding_fault_element, env))
00149 
00150 #define WODEN_BINDING_FAULT_ELEMENT_GET_INTERFACE_FAULT_ELEMENT(binding_fault_element, env) \
00151       (((woden_binding_fault_element_t *) binding_fault_element)->ops->\
00152          get_interface_fault_element (binding_fault_element, env))
00153 
00154 
00156 #ifdef __cplusplus
00157 }
00158 #endif
00159 #endif /* WODEN_BINDING_FAULT_ELEMENT_H */

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