axis2_wsdl_extensible_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 AXIS2_WSDL_EXTENSIBLE_ELEMENT_H
00019 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_H
00020 
00026 #include <axis2_const.h>
00027 #include <axis2_error.h>
00028 #include <axis2_defines.h>
00029 #include <axis2_env.h>
00030 #include <axis2_allocator.h>
00031 #include <axis2_qname.h>
00032 
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037 
00038 typedef struct axis2_wsdl_extensible_element axis2_wsdl_extensible_element_t;
00039 typedef struct axis2_wsdl_extensible_element_ops axis2_wsdl_extensible_element_ops_t;
00040 
00050  struct axis2_wsdl_extensible_element_ops
00051 {
00055    axis2_status_t (AXIS2_CALL *free)(
00056                     axis2_wsdl_extensible_element_t *wsdl_extensible_element,
00057                  const axis2_env_t *env);
00058 
00059     axis2_bool_t (AXIS2_CALL *
00060     is_required) (axis2_wsdl_extensible_element_t *extensible_element,
00061                     const axis2_env_t *env);
00062     
00063     axis2_status_t (AXIS2_CALL *
00064     set_required) (axis2_wsdl_extensible_element_t *extensible_element,
00065                    const axis2_env_t *env,
00066                    axis2_bool_t required);
00067     
00068     axis2_qname_t *(AXIS2_CALL *
00069     get_type) (axis2_wsdl_extensible_element_t *extensible_element,
00070                const axis2_env_t *env);
00071     
00072     axis2_status_t (AXIS2_CALL *
00073     set_type) (axis2_wsdl_extensible_element_t *extensible_element,
00074                const axis2_env_t *env,
00075                axis2_qname_t *type);
00076 };
00077 
00082  struct axis2_wsdl_extensible_element
00083 {
00084    axis2_wsdl_extensible_element_ops_t *ops;
00085 };
00086 
00091 AXIS2_EXTERN axis2_wsdl_extensible_element_t * AXIS2_CALL 
00092 axis2_wsdl_extensible_element_create (const axis2_env_t *env);
00093 
00094 /*************************** Function macros **********************************/
00095 
00096 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_FREE(extensible_element, env) \
00097       ((extensible_element)->ops->free (extensible_element, env))
00098 
00099 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_IS_REQUIRED(extensible_element, env) \
00100       ((extensible_element)->ops->is_required (extensible_element, env))
00101 
00102 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_SET_REQUIRED(extensible_element, env, required) \
00103       ((extensible_element)->ops->set_required (extensible_element, env, required))
00104 
00105 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_GET_TYPE(extensible_element, env) \
00106       (extensible_element->ops->get_type (extensible_element, env))
00107 
00108 #define AXIS2_WSDL_EXTENSIBLE_ELEMENT_SET_TYPE(extensible_element, env, type) \
00109       ((extensible_element)->ops->set_type (extensible_element, env, type))       
00110 
00111 /*************************** End of function macros ***************************/
00112 
00115 #ifdef __cplusplus
00116 }
00117 #endif
00118 #endif  /* AXIS2_WSDL_EXTENSIBLE_ELEMENT_H */

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