axiom_soap_fault_text.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_TEXT_H
00019  #define AXIOM_SOAP_FAULT_TEXT_H
00020  
00025 #include <axis2_env.h>
00026 #include <axiom_soap_fault_reason.h>
00027 
00028 #ifdef __cplusplus
00029 extern "C"
00030 {
00031 #endif
00032 
00033     typedef struct axiom_soap_fault_text_ops axiom_soap_fault_text_ops_t;
00034     typedef struct axiom_soap_fault_text axiom_soap_fault_text_t;
00045     struct axiom_soap_fault_text_ops
00046     {
00055         axis2_status_t (AXIS2_CALL *
00056       free_fn)(axiom_soap_fault_text_t *fault_text,
00057                  const axis2_env_t *env);
00058 
00059         axis2_status_t (AXIS2_CALL *
00060       set_lang)(axiom_soap_fault_text_t *fault_text,
00061                   const axis2_env_t *env,
00062                   const axis2_char_t* lang);
00063                                      
00064         axis2_char_t* (AXIS2_CALL *
00065       get_lang)(axiom_soap_fault_text_t *fault_text,
00066                   const axis2_env_t *env);
00067     
00068         axiom_node_t* (AXIS2_CALL *
00069       get_base_node)(axiom_soap_fault_text_t *fault_text,
00070                        const axis2_env_t *env);
00071                        
00072         axis2_status_t (AXIS2_CALL *
00073         set_text)(axiom_soap_fault_text_t *fault_text,
00074                   const axis2_env_t *env,
00075                   axis2_char_t *value,
00076                   axis2_char_t *lang);
00077                   
00078         axis2_char_t * (AXIS2_CALL *
00079         get_text)(axiom_soap_fault_text_t *fault_text,
00080                   const axis2_env_t *env);
00081                                                             
00082     };      
00083 
00088     struct axiom_soap_fault_text
00089     {
00091         axiom_soap_fault_text_ops_t *ops;
00092        
00093     };
00094 
00099 AXIS2_EXTERN axiom_soap_fault_text_t * AXIS2_CALL
00100 axiom_soap_fault_text_create_with_parent(const axis2_env_t *env,
00101                             axiom_soap_fault_reason_t *fault);
00102                             
00103 /******************** Macros **************************************************/
00104     
00106 #define AXIOM_SOAP_FAULT_TEXT_FREE(fault_text , env) \
00107         ((fault_text)->ops->free_fn(fault_text, env))
00108 
00109 #define AXIOM_SOAP_FAULT_TEXT_SET_LANG(fault_text , env, lang) \
00110         ((fault_text)->ops->set_lang(fault_text, env, lang))
00111         
00112 #define AXIOM_SOAP_FAULT_TEXT_GET_LANG(fault_text , env) \
00113         ((fault_text)->ops->get_lang(fault_text, env)) 
00114         
00115 #define AXIOM_SOAP_FAULT_TEXT_GET_BASE_NODE(fault_text, env) \
00116         ((fault_text)->ops->get_base_node(fault_text, env))         
00117 
00118 #define AXIOM_SOAP_FAULT_TEXT_SET_TEXT(fault_text, env, value, lang) \
00119         ((fault_text)->ops->set_text(fault_text, env, value, lang))
00120 
00121 #define AXIOM_SOAP_FAULT_TEXT_GET_TEXT(fault_text, env) \
00122         ((fault_text)->ops->get_text(fault_text, env))        
00123 
00125 #ifdef __cplusplus
00126 }
00127 #endif 
00128  
00129 #endif /* AXIOM_SOAP_FAULT_TEXT_H */

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