axiom_soap_fault_reason.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 AXIOM_SOAP_FAULT_REASON_H
00019  #define AXIOM_SOAP_FAULT_REASON_H
00020  
00025 #include <axis2_env.h>
00026 #include <axiom_soap_fault.h>
00027 #include <axis2_array_list.h>
00028 
00029 #ifdef __cplusplus
00030 extern "C"
00031 {
00032 #endif
00033 
00034 typedef struct axiom_soap_fault_reason_ops axiom_soap_fault_reason_ops_t;
00035 typedef struct axiom_soap_fault_reason axiom_soap_fault_reason_t;
00036 struct axiom_soap_fault_text;
00037 struct axiom_soap_builder;
00048     struct axiom_soap_fault_reason_ops
00049     {
00058         axis2_status_t (AXIS2_CALL *
00059       free_fn)(axiom_soap_fault_reason_t *fault_reason,
00060                  const axis2_env_t *env);
00061 
00062         struct axiom_soap_fault_text* (AXIS2_CALL *
00063       get_soap_fault_text)(axiom_soap_fault_reason_t *fault_reason,
00064                              const axis2_env_t *env,
00065                              axis2_char_t *lang);
00066                              
00067         axis2_array_list_t* (AXIS2_CALL *
00068         get_all_soap_fault_texts)(axiom_soap_fault_reason_t *fault_reason,
00069                                   const axis2_env_t *env);
00070                                   
00071         struct axiom_soap_fault_text* (AXIS2_CALL *
00072         get_first_soap_fault_text)(axiom_soap_fault_reason_t *fault_reason,
00073                                    const axis2_env_t *env);
00074                              
00075         axis2_status_t (AXIS2_CALL *
00076         add_soap_fault_text)(axiom_soap_fault_reason_t *fault_reason,
00077                              const axis2_env_t *env,
00078                              struct axiom_soap_fault_text *fault_text);
00079                                            
00080         axiom_node_t* (AXIS2_CALL *
00081       get_base_node)(axiom_soap_fault_reason_t *fault_reason,
00082                        const axis2_env_t *env);
00083                                  
00084     };      
00085 
00090     struct axiom_soap_fault_reason
00091     {
00093         axiom_soap_fault_reason_ops_t *ops;
00094        
00095     };
00096 
00103 AXIS2_EXTERN axiom_soap_fault_reason_t * AXIS2_CALL
00104 axiom_soap_fault_reason_create_with_parent(const axis2_env_t *env,
00105                             axiom_soap_fault_t *fault);
00106 
00107 /******************** Macros **************************************************/
00108     
00110 #define AXIOM_SOAP_FAULT_REASON_FREE(fault_reason , env) \
00111         ((fault_reason)->ops->free_fn(fault_reason, env))
00112 
00113         
00114 #define AXIOM_SOAP_FAULT_REASON_GET_SOAP_FAULT_TEXT(fault_reason , env, lang) \
00115         ((fault_reason)->ops->get_soap_fault_text(fault_reason, env, lang)) 
00116         
00117 #define AXIOM_SOAP_FAULT_REASON_GET_BASE_NODE(fault_reason, env) \
00118         ((fault_reason)->ops->get_base_node(fault_reason, env))    
00119         
00120 #define AXIOM_SOAP_FAULT_REASON_ADD_SOAP_FAULT_TEXT(fault_reason, env, fault_text) \
00121         ((fault_reason)->ops->add_soap_fault_text(fault_reason, env, fault_text))             
00122         
00123 #define AXIOM_SOAP_FAULT_REASON_GET_ALL_SOAP_FAULT_TEXTS(fault_reason, env) \
00124         ((fault_reason)->ops->get_all_soap_fault_texts(fault_reason, env))
00125         
00126 #define AXIOM_SOAP_FAULT_REASON_GET_FIRST_SOAP_FAULT_TEXT(fault_reason, env) \
00127         ((fault_reason)->ops->get_first_soap_fault_text(fault_reason, env))
00128         
00131 #ifdef __cplusplus
00132 }
00133 #endif
00134 
00135 #endif /* AXIOM_SOAP_FAULT_REASON_H */
00136 

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