woden_interface_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_INTERFACE_FAULT_ELEMENT_H
00019 #define WODEN_INTERFACE_FAULT_ELEMENT_H
00020 
00030 #include <axis2_allocator.h>
00031 #include <axis2_env.h>
00032 #include <axis2_error.h>
00033 #include <axis2_string.h>
00034 #include <axis2_utils.h>
00035 #include <axis2_hash.h>
00036 #include <axis2_qname.h>
00037 #include <axis2_uri.h>
00038 #include <axis2_array_list.h>
00039 #include <woden.h>
00040 #include <woden_documentable_element.h>
00041 #include <woden_configurable_element.h>
00042 #include <woden_nested_element.h>
00043 
00044 #ifdef __cplusplus
00045 extern "C"
00046 {
00047 #endif
00048 
00049 typedef struct woden_interface_fault_element woden_interface_fault_element_t;
00050 typedef struct woden_interface_fault_element_ops woden_interface_fault_element_ops_t;
00051 typedef union woden_interface_fault_element_base woden_interface_fault_element_base_t;
00052 
00058 struct woden_interface_fault_element_ops
00059 {
00064     axis2_status_t (AXIS2_CALL *
00065     free) (
00066             void *interface_fault_element,
00067             const axis2_env_t *env);
00068  
00069     woden_obj_types_t (AXIS2_CALL *
00070     type) (
00071             void *interface_fault_element,
00072             const axis2_env_t *env);
00073 
00080     axis2_status_t (AXIS2_CALL *
00081     set_qname) (
00082             void *iface_fault_ele,
00083             const axis2_env_t *env,
00084             axis2_qname_t *qname);
00085     
00086     axis2_qname_t *(AXIS2_CALL *
00087     get_qname) (
00088             void *iface_fault_ele,
00089             const axis2_env_t *env);
00090     
00097     axis2_status_t (AXIS2_CALL *
00098     set_element_qname) (
00099             void *iface_fault_ele,
00100             const axis2_env_t *env,
00101             axis2_qname_t *qname);
00102 
00103     axis2_qname_t *(AXIS2_CALL *
00104     get_element_qname) (
00105             void *iface_fault_ele,
00106             const axis2_env_t *env);
00107     
00118     void *(AXIS2_CALL *
00119     get_element) (
00120             void *iface_fault_ele,
00121             const axis2_env_t *env);
00122 
00123 };
00124 
00125 union woden_interface_fault_element_base
00126 {
00127     woden_documentable_element_t documentable_element;
00128     woden_configurable_element_t configurable_element;
00129     woden_nested_element_t nested_element;
00130 };
00131 
00132 struct woden_interface_fault_element
00133 {
00134     woden_interface_fault_element_base_t base;
00135     woden_interface_fault_element_ops_t *ops;
00136 };
00137 
00138 AXIS2_EXTERN woden_interface_fault_element_t * AXIS2_CALL
00139 woden_interface_fault_element_create(
00140         const axis2_env_t *env);
00141 
00142 /************************Woden C Internal Methods******************************/
00143 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00144 woden_interface_fault_element_resolve_methods(
00145         woden_interface_fault_element_t *interface_fault_element,
00146         const axis2_env_t *env,
00147         axis2_hash_t *methods);
00148 /************************End of Woden C Internal Methods***********************/
00149 
00150 #define WODEN_INTERFACE_FAULT_ELEMENT_FREE(interface_fault_element, env) \
00151       (((woden_interface_fault_element_t *) interface_fault_element)->ops->\
00152          free (interface_fault_element, env))
00153 
00154 #define WODEN_INTERFACE_FAULT_ELEMENT_TYPE(interface_fault_element, env) \
00155       (((woden_interface_fault_element_t *) interface_fault_element)->ops->\
00156          type (interface_fault_element, env))
00157 
00158 #define WODEN_INTERFACE_FAULT_ELEMENT_SET_QNAME(interface_fault_element, env, qname) \
00159       (((woden_interface_fault_element_t *) interface_fault_element)->ops->\
00160          set_qname (interface_fault_element, env, qname))
00161 
00162 #define WODEN_INTERFACE_FAULT_ELEMENT_GET_QNAME(interface_fault_element, env) \
00163       (((woden_interface_fault_element_t *) interface_fault_element)->ops->\
00164         get_qname  (interface_fault_element, env))
00165 
00166 #define WODEN_INTERFACE_FAULT_ELEMENT_SET_ELEMENT_QNAME(interface_fault_element, env, qname) \
00167       (((woden_interface_fault_element_t *) interface_fault_element)->ops->\
00168          set_element_qname (interface_fault_element, env, qname))
00169 
00170 #define WODEN_INTERFACE_FAULT_ELEMENT_GET_ELEMENT_QNAME(interface_fault_element, env) \
00171       (((woden_interface_fault_element_t *) interface_fault_element)->ops->\
00172          get_element_qname (interface_fault_element, env))
00173 
00174 #define WODEN_INTERFACE_FAULT_ELEMENT_GET_ELEMENT(interface_fault_element, env) \
00175       (((woden_interface_fault_element_t *) interface_fault_element)->ops->\
00176          get_element (interface_fault_element, env))
00177 
00178 
00180 #ifdef __cplusplus
00181 }
00182 #endif
00183 #endif /* WODEN_INTERFACE_FAULT_ELEMENT_H */

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