woden_ext_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_EXT_ELEMENT_H
00019 #define WODEN_EXT_ELEMENT_H
00020 
00036 #include <axis2_allocator.h>
00037 #include <axis2_env.h>
00038 #include <axis2_error.h>
00039 #include <axis2_string.h>
00040 #include <axis2_utils.h>
00041 #include <axis2_hash.h>
00042 #include <axis2_qname.h>
00043 #include <woden.h>
00044 
00045 #ifdef __cplusplus
00046 extern "C"
00047 {
00048 #endif
00049 
00050 typedef struct woden_ext_element woden_ext_element_t;
00051 typedef struct woden_ext_element_ops woden_ext_element_ops_t;
00052 struct axis2_xml_ext_element;
00053 struct axis2_uri;
00054 
00060 struct woden_ext_element_ops
00061 {
00066     axis2_status_t (AXIS2_CALL *
00067     free) (void *ext_element,
00068             const axis2_env_t *env);
00069     
00070     woden_obj_types_t (AXIS2_CALL *
00071     type) (
00072             void *ext_element,
00073             const axis2_env_t *env);
00074 
00075 
00076     axis2_status_t (AXIS2_CALL *
00077     set_ext_type) (void *ext_element,
00078                         const axis2_env_t *env,
00079                         axis2_qname_t *qname);
00080 
00081     axis2_qname_t *(AXIS2_CALL *
00082     get_ext_type) (void *ext_element,
00083                         const axis2_env_t *env);
00084 
00085     axis2_status_t (AXIS2_CALL *
00086     set_required) (void *ext_element,
00087                         const axis2_env_t *env,
00088                         axis2_bool_t required);
00089 
00090     axis2_bool_t (AXIS2_CALL *
00091     is_required) (void *ext_element,
00092                         const axis2_env_t *env);
00093 
00094 };
00095 
00096 struct woden_ext_element
00097 {
00098     woden_ext_element_ops_t *ops;
00099 };
00100 
00101 AXIS2_EXTERN woden_ext_element_t * AXIS2_CALL
00102 woden_ext_element_create(const axis2_env_t *env);
00103 
00108 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00109 woden_ext_element_resolve_methods(
00110         woden_ext_element_t *ext_element,
00111         const axis2_env_t *env,
00112         axis2_hash_t *methods);
00113 
00114 #define WODEN_EXT_ELEMENT_FREE(ext_element, env) \
00115       (((woden_ext_element_t *) ext_element)->ops->free (ext_element, env))
00116 
00117 #define WODEN_EXT_ELEMENT_ELEMENT_TYPE(ext_element, env) \
00118       (((woden_ext_element_t *) ext_element)->ops->\
00119          type (ext_element, env))
00120 
00121 #define WODEN_EXT_ELEMENT_SET_EXT_TYPE(ext_element, env, qname) \
00122       (((woden_ext_element_t *) ext_element)->ops->set_ext_type(ext_element, env, \
00123                                                                qname))
00124 
00125 #define WODEN_EXT_ELEMENT_GET_EXT_TYPE(ext_element, env) \
00126       (((woden_ext_element_t *) ext_element)->ops->get_ext_type(ext_element, env))
00127 
00128 #define WODEN_EXT_ELEMENT_SET_REQUIRED(ext_element, env, required) \
00129       (((woden_ext_element_t *) ext_element)->ops->set_required(ext_element, env, \
00130                                                              required))
00131 
00132 #define WODEN_EXT_ELEMENT_IS_REQUIRED(ext_element, env) \
00133       (((woden_ext_element_t *) ext_element)->ops->is_required(ext_element, env))
00134 
00135 
00137 #ifdef __cplusplus
00138 }
00139 #endif
00140 #endif /* WODEN_EXT_ELEMENT_H */

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