woden_element_extensible.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_ELEMENT_EXTENSIBLE_H
00019 #define WODEN_ELEMENT_EXTENSIBLE_H
00020 
00028 #include <axis2_allocator.h>
00029 #include <axis2_env.h>
00030 #include <axis2_error.h>
00031 #include <axis2_string.h>
00032 #include <axis2_utils.h>
00033 #include <axis2_hash.h>
00034 #include <axis2_qname.h>
00035 #include <axis2_uri.h>
00036 #include <axis2_array_list.h>
00037 #include <woden.h>
00038 
00039 #ifdef __cplusplus
00040 extern "C"
00041 {
00042 #endif
00043 
00044 typedef struct woden_element_extensible woden_element_extensible_t;
00045 typedef struct woden_element_extensible_ops woden_element_extensible_ops_t;
00046 struct woden_ext_element;
00047 
00053 struct woden_element_extensible_ops
00054 {
00059     axis2_status_t (AXIS2_CALL *
00060     free) (
00061             void *
00062             element_extensible,
00063             const axis2_env_t *env);
00064     
00065     axis2_hash_t *(AXIS2_CALL *
00066     super_objs) (
00067             void *
00068             element_extensible,
00069             const axis2_env_t *env);
00070     
00071     woden_obj_types_t (AXIS2_CALL *
00072     type) (
00073             void *element_extensible,
00074             const axis2_env_t *env);
00075  
00076     axis2_status_t (AXIS2_CALL *
00077     add_ext_element) (
00078             void *extensible,
00079             const axis2_env_t *env,
00080             struct woden_ext_element *ext_el); 
00081 
00082     axis2_status_t (AXIS2_CALL *
00083     remove_ext_element) (
00084             void *extensible,
00085             const axis2_env_t *env,
00086             struct woden_ext_element *ext_el); 
00087 
00088     axis2_array_list_t *(AXIS2_CALL *
00089     get_ext_elements) (
00090             void *extensible,
00091             const axis2_env_t *env); 
00092 
00093     axis2_array_list_t *(AXIS2_CALL *
00094     get_ext_elements_of_type) (
00095             void *extensible,
00096             const axis2_env_t *env,
00097             axis2_qname_t *ext_type);
00098 
00099     axis2_bool_t (AXIS2_CALL *
00100     has_ext_elements_for_namespace) (
00101             void *extensible,
00102             const axis2_env_t *env,
00103             axis2_uri_t *namespc);
00104  
00105 };
00106 
00107 struct woden_element_extensible
00108 {
00109     woden_element_extensible_ops_t *ops;
00110 };
00111 
00112 AXIS2_EXTERN woden_element_extensible_t * AXIS2_CALL
00113 woden_element_extensible_create(const axis2_env_t *env);
00114 
00119 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00120 woden_element_extensible_resolve_methods(
00121         woden_element_extensible_t *extensible,
00122         const axis2_env_t *env,
00123         woden_element_extensible_t *extensible_impl,
00124         axis2_hash_t *methods);
00125 
00126 #define WODEN_ELEMENT_EXTENSIBLE_FREE(extensible, env) \
00127       (((woden_element_extensible_t *) extensible)->ops->\
00128          free (extensible, env))
00129 
00130 #define WODEN_ELEMENT_EXTENSIBLE_SUPER_OBJS(extensible, env) \
00131       (((woden_element_extensible_t *) extensible)->ops->\
00132          super_objs (extensible, env))
00133 
00134 #define WODEN_ELEMENT_EXTENSIBLE_TYPE(extensible, env) \
00135       (((woden_element_extensible_t *) extensible)->ops->\
00136          type (extensible, env))
00137 
00138 #define WODEN_ELEMENT_EXTENSIBLE_ADD_EXT_ELEMENT(extensible, env, ext_el) \
00139       (((woden_element_extensible_t *) extensible)->ops->\
00140          add_ext_element(extensible, env, ext_el))
00141 
00142 #define WODEN_ELEMENT_EXTENSIBLE_REMOVE_EXT_ELEMENT(extensible, env, \
00143         ext_el) \
00144       (((woden_element_extensible_t *) extensible)->ops->\
00145          remove_ext_element(extensible, env, ext_el))
00146 
00147 #define WODEN_ELEMENT_EXTENSIBLE_GET_EXT_ELEMENTS(extensible, env) \
00148       (((woden_element_extensible_t *) extensible)->ops->\
00149          get_ext_elements(extensible, env))
00150 
00151 #define WODEN_ELEMENT_EXTENSIBLE_GET_EXT_ELEMENTS_OF_TYPE(extensible, \
00152         env, ext_type) \
00153       (((woden_element_extensible_t *) extensible)->ops->\
00154          get_ext_elements_of_type(extensible, env, ext_type))
00155 
00156 #define WODEN_ELEMENT_EXTENSIBLE_HAS_EXT_ELEMENTS_FOR_NAMESPACE(\
00157         extensible, env, namespc) \
00158       (((woden_element_extensible_t *) extensible)->ops->\
00159          has_ext_elements_for_namespace(extensible, env, namespc))
00160 
00161 
00163 #ifdef __cplusplus
00164 }
00165 #endif
00166 #endif /* WODEN_ELEMENT_EXTENSIBLE_H */

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