woden_fault_ref_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_INTERFACE_FAULT_REF_ELEMENT_H
00019 #define WODEN_INTERFACE_FAULT_REF_ELEMENT_H
00020 
00029 #include <axis2_allocator.h>
00030 #include <axis2_env.h>
00031 #include <axis2_error.h>
00032 #include <axis2_string.h>
00033 #include <axis2_utils.h>
00034 #include <axis2_hash.h>
00035 #include <axis2_qname.h>
00036 #include <axis2_uri.h>
00037 #include <axis2_array_list.h>
00038 #include <woden.h>
00039 #include <woden_documentable_element.h>
00040 #include <woden_configurable_element.h>
00041 #include <woden_nested_element.h>
00042 
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047 
00048 typedef struct woden_fault_ref_element woden_fault_ref_element_t;
00049 typedef struct woden_fault_ref_element_ops woden_fault_ref_element_ops_t;
00050 typedef union woden_fault_ref_element_base woden_fault_ref_element_base_t;
00051 
00057 struct woden_fault_ref_element_ops
00058 {
00063     axis2_status_t (AXIS2_CALL *
00064     free) (
00065             void *fault_ref_element,
00066             const axis2_env_t *env);
00067  
00068     axis2_status_t (AXIS2_CALL *
00069     to_fault_ref_element_free) (
00070             void *fault_ref_element,
00071             const axis2_env_t *env);
00072     
00073     axis2_hash_t *(AXIS2_CALL *
00074     super_objs) (
00075             void *fault_ref_element,
00076             const axis2_env_t *env);
00077  
00078     woden_obj_types_t (AXIS2_CALL *
00079     type) (
00080             void *fault_ref_element,
00081             const axis2_env_t *env);
00082 
00083     axis2_status_t (AXIS2_CALL *
00084     set_ref) (
00085             void *iface_fault_ele,
00086             const axis2_env_t *env,
00087             axis2_qname_t *fault_qname);
00088     
00089     axis2_qname_t *(AXIS2_CALL *
00090     get_ref) (
00091             void *iface_fault_ele,
00092             const axis2_env_t *env);
00093     
00094     axis2_status_t (AXIS2_CALL *
00095     set_msg_label) (
00096             void *iface_fault_ele,
00097             const axis2_env_t *env,
00098             void *msg_label);
00099 
00100     void *(AXIS2_CALL *
00101     get_msg_label) (
00102             void *iface_fault_ele,
00103             const axis2_env_t *env);
00104      
00105     axis2_status_t (AXIS2_CALL *
00106     set_direction) (
00107             void *iface_fault_ele,
00108             const axis2_env_t *env,
00109             void *dir);
00110 
00111     void *(AXIS2_CALL *
00112     get_direction) (
00113             void *iface_fault_ele,
00114             const axis2_env_t *env);
00115     
00116 
00117 };
00118 
00119 union woden_fault_ref_element_base
00120 {
00121     woden_documentable_element_t documentable_element;
00122     woden_configurable_element_t configurable_element;
00123     woden_nested_element_t nested_element;
00124 };
00125 
00126 struct woden_fault_ref_element
00127 {
00128     woden_fault_ref_element_base_t base;
00129     woden_fault_ref_element_ops_t *ops;
00130 };
00131 
00132 AXIS2_EXTERN woden_fault_ref_element_t * AXIS2_CALL
00133 woden_fault_ref_element_create(
00134         const axis2_env_t *env);
00135 
00136 /************************Woden C Internal Methods******************************/
00137 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00138 woden_fault_ref_element_resolve_methods(
00139         woden_fault_ref_element_t *fault_ref_element,
00140         const axis2_env_t *env,
00141         axis2_hash_t *methods);
00142 /************************End of Woden C Internal Methods***********************/
00143 
00144 #define WODEN_INTERFACE_FAULT_REF_ELEMENT_FREE(fault_ref_element, env) \
00145       (((woden_fault_ref_element_t *) fault_ref_element)->ops->\
00146          free (fault_ref_element, env))
00147 
00148 #define WODEN_INTERFACE_FAULT_REF_ELEMENT_TO_INTERFACE_FAULT_REF_ELEMENT_FREE(fault_ref_element, env) \
00149       (((woden_fault_ref_element_t *) fault_ref_element)->ops->\
00150          to_fault_ref_element_free (fault_ref_element, env))
00151 
00152 #define WODEN_INTERFACE_FAULT_REF_ELEMENT_SUPER_OBJS(fault_ref_element, env) \
00153       (((woden_fault_ref_element_t *) fault_ref_element)->ops->\
00154          super_objs (fault_ref_element, env))
00155 
00156 #define WODEN_INTERFACE_FAULT_REF_ELEMENT_TYPE(fault_ref_element, env) \
00157       (((woden_fault_ref_element_t *) fault_ref_element)->ops->\
00158          type (fault_ref_element, env))
00159 
00160 #define WODEN_INTERFACE_FAULT_REF_ELEMENT_SET_REF(fault_ref_element, env, fault_qname) \
00161       (((woden_fault_ref_element_t *) fault_ref_element)->ops->\
00162          set_ref (fault_ref_element, env, fault_qname))
00163 
00164 #define WODEN_INTERFACE_FAULT_REF_ELEMENT_GET_REF(fault_ref_element, env) \
00165       (((woden_fault_ref_element_t *) fault_ref_element)->ops->\
00166         get_ref  (fault_ref_element, env))
00167 
00168 #define WODEN_INTERFACE_FAULT_REF_ELEMENT_SET_MSG_LABEL(fault_ref_element, env, msg_label) \
00169       (((woden_fault_ref_element_t *) fault_ref_element)->ops->\
00170          set_msg_label (fault_ref_element, env, msg_label))
00171 
00172 #define WODEN_INTERFACE_FAULT_REF_ELEMENT_GET_MSG_LABEL(fault_ref_element, env) \
00173       (((woden_fault_ref_element_t *) fault_ref_element)->ops->\
00174          get_msg_label (fault_ref_element, env))
00175 
00176 #define WODEN_INTERFACE_FAULT_REF_ELEMENT_SET_DIRECTION(fault_ref_element, env, dir) \
00177       (((woden_fault_ref_element_t *) fault_ref_element)->ops->\
00178          set_direction (fault_ref_element, env, dir))
00179 
00180 #define WODEN_INTERFACE_FAULT_REF_ELEMENT_GET_DIRECTION(fault_ref_element, env) \
00181       (((woden_fault_ref_element_t *) fault_ref_element)->ops->\
00182          get_direction (fault_ref_element, env))
00183 
00184 
00185 
00186 
00188 #ifdef __cplusplus
00189 }
00190 #endif
00191 #endif /* WODEN_INTERFACE_FAULT_REF_ELEMENT_H */

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