Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Examples

axis2_wsdl_extensible_element.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef AXIS2_WSDL_EXTENSIBLE_ELEMENT_H
00018 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_H
00019 
00025 #include <axis2_const.h>
00026 #include <axis2_error.h>
00027 #include <axis2_defines.h>
00028 #include <axis2_env.h>
00029 #include <axis2_allocator.h>
00030 #include <axis2_qname.h>
00031 
00032 #ifdef __cplusplus
00033 extern "C"
00034 {
00035 #endif
00036 
00037 typedef struct axis2_wsdl_extensible_element axis2_wsdl_extensible_element_t;
00038 typedef struct axis2_wsdl_extensible_element_ops axis2_wsdl_extensible_element_ops_t;
00039 
00049 AXIS2_DECLARE_DATA struct axis2_wsdl_extensible_element_ops
00050 {
00054    axis2_status_t (AXIS2_CALL *free)(
00055                     axis2_wsdl_extensible_element_t *wsdl_extensible_element,
00056                  const axis2_env_t *env);
00057 
00058     axis2_bool_t (AXIS2_CALL *
00059     is_required) (axis2_wsdl_extensible_element_t *extensible_element,
00060                     const axis2_env_t *env);
00061     
00062     axis2_status_t (AXIS2_CALL *
00063     set_required) (axis2_wsdl_extensible_element_t *extensible_element,
00064                    const axis2_env_t *env,
00065                    axis2_bool_t required);
00066     
00067     axis2_qname_t *(AXIS2_CALL *
00068     get_type) (axis2_wsdl_extensible_element_t *extensible_element,
00069                const axis2_env_t *env);
00070     
00071     axis2_status_t (AXIS2_CALL *
00072     set_type) (axis2_wsdl_extensible_element_t *extensible_element,
00073                const axis2_env_t *env,
00074                axis2_qname_t *type);
00075 };
00076 
00081 AXIS2_DECLARE_DATA struct axis2_wsdl_extensible_element
00082 {
00083    axis2_wsdl_extensible_element_ops_t *ops;
00084 };
00085 
00090 AXIS2_EXTERN axis2_wsdl_extensible_element_t * AXIS2_CALL 
00091 axis2_wsdl_extensible_element_create (const axis2_env_t *env);
00092 
00093 /*************************** Function macros **********************************/
00094 
00095 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_FREE(extensible_element, env) \
00096       ((extensible_element)->ops->free (extensible_element, env))
00097 
00098 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_IS_REQUIRED(extensible_element, env) \
00099       ((extensible_element)->ops->is_required (extensible_element, env))
00100 
00101 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_SET_REQUIRED(extensible_element, env, required) \
00102       ((extensible_element)->ops->set_required (extensible_element, env, required))
00103 
00104 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_GET_TYPE(extensible_element, env) \
00105       (extensible_element->ops->get_type (extensible_element, env))
00106 
00107 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_SET_TYPE(extensible_element, env, type) \
00108       ((extensible_element)->ops->set_type (extensible_element, env, type))       
00109 
00110 /*************************** End of function macros ***************************/
00111 
00114 #ifdef __cplusplus
00115 }
00116 #endif
00117 #endif  /* AXIS2_WSDL_EXTENSIBLE_ELEMENT_H */

Generated on Fri Jun 16 18:02:31 2006 for Axis2/C by  doxygen 1.4.2