woden_ext_registry.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_REGISTRY_H
00019 #define WODEN_EXT_REGISTRY_H
00020 
00027 #include <axis2_allocator.h>
00028 #include <axis2_env.h>
00029 #include <axis2_error.h>
00030 #include <axis2_string.h>
00031 #include <axis2_utils.h>
00032 #include <axis2_hash.h>
00033 #include <axis2_qname.h>
00034 #include <axis2_uri.h>
00035 #include <axis2_array_list.h>
00036 #include <woden.h>
00037 
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042 
00043 typedef struct woden_ext_registry woden_ext_registry_t;
00044 typedef struct woden_ext_registry_ops woden_ext_registry_ops_t;
00045 struct woden_wsdl_element;
00046     
00052 struct woden_ext_registry_ops
00053 {
00058     axis2_status_t (AXIS2_CALL *
00059     free) (
00060             void *ext_registry,
00061             const axis2_env_t *env);
00062  
00078     axis2_status_t (AXIS2_CALL *
00079     register_deserializer) (
00080             void *registry,
00081             const axis2_env_t *env,
00082             axis2_char_t *parent_type,
00083             axis2_qname_t *element_qtype,
00084             void *ed);
00085 
00102     void *(AXIS2_CALL *
00103     query_deserializer) (
00104             void *registry,
00105             const axis2_env_t *env,
00106             axis2_char_t *parent_type,
00107             axis2_qname_t *element_type);
00108 
00122     void *(AXIS2_CALL *
00123     query_ext_element_type) (
00124             void *registry,
00125             const axis2_env_t *env,
00126             axis2_char_t *parent_class,
00127             axis2_qname_t *elem_qn);
00128 
00137     axis2_array_list_t *(AXIS2_CALL *
00138     get_allowable_exts) (
00139             void *registry,
00140             const axis2_env_t *env,
00141             axis2_char_t *parent_type);
00142 
00159     axis2_status_t (AXIS2_CALL *
00160     register_ext_element_type) (
00161             void *registry,
00162             const axis2_env_t *env,
00163             axis2_char_t *parent_type,
00164             axis2_qname_t *element_qtype,
00165             void *element);
00166 
00167 
00181     axis2_status_t (AXIS2_CALL *
00182     register_ext_attr_type) (
00183             void *registry,
00184             const axis2_env_t *env,
00185             axis2_char_t *owner_class,
00186             axis2_qname_t *attr_qname,
00187             void *attr);
00188 
00201     void *(AXIS2_CALL *
00202     query_ext_attr_type) (
00203             void *registry,
00204             const axis2_env_t *env,
00205             axis2_char_t *parent_class,
00206             axis2_qname_t *attr_qn);
00207 
00216     axis2_status_t (AXIS2_CALL *
00217     register_component_ext) (
00218             void *registry,
00219             const axis2_env_t *env,
00220             axis2_char_t *parent_class,
00221             axis2_uri_t *ext_namespc,
00222             void *comp_ext);
00223 
00232     void *(AXIS2_CALL *
00233     query_component_ext) (
00234             void *registry,
00235             const axis2_env_t *env,
00236             axis2_char_t *parent_class,
00237             axis2_uri_t *ext_namespc);
00238 
00245     axis2_array_list_t *(AXIS2_CALL *
00246     query_component_ext_namespaces) (
00247             void *registry,
00248             const axis2_env_t *env,
00249             axis2_char_t *parent_class);
00250 };
00251 
00252 struct woden_ext_registry
00253 {
00254     woden_ext_registry_ops_t *ops;
00255 };
00256 
00257 AXIS2_EXTERN woden_ext_registry_t * AXIS2_CALL
00258 woden_ext_registry_create(const axis2_env_t *env);
00259 
00260 #define WODEN_EXT_REGISTRY_FREE(ext_registry, env) \
00261       (((woden_ext_registry_t *) ext_registry)->ops->\
00262          free (ext_registry, env))
00263 
00264 #define WODEN_EXT_REGISTRY_REGISTER_DESERIALIZER(ext_registry, env, parent_type, element_qtype, ed) \
00265       (((woden_ext_registry_t *) ext_registry)->ops->\
00266          register_deserializer (ext_registry, env, parent_type, element_qtype, ed))
00267 
00268 #define WODEN_EXT_REGISTRY_QUERY_DESERIALIZER(ext_registry, env, parent_type, element_type) \
00269       (((woden_ext_registry_t *) ext_registry)->ops->\
00270          query_deserializer (ext_registry, env, parent_type, element_type))
00271 
00272 #define WODEN_EXT_REGISTRY_QUERY_EXT_ELEMENT_TYPE(ext_registry, env, parent_class, elem_qn) \
00273       (((woden_ext_registry_t *) ext_registry)->ops->\
00274          query_ext_element_type (ext_registry, env, parent_class, elem_qn))
00275 
00276 #define WODEN_EXT_REGISTRY_GET_ALLOWABLE_EXTS(ext_registry, env, parent_type) \
00277       (((woden_ext_registry_t *) ext_registry)->ops->\
00278          get_allowable_exts (ext_registry, env, parent_type))
00279 
00280 #define WODEN_EXT_REGISTRY_REGISTER_EXT_ELEMENT_TYPE(ext_registry, env, parent_type, element_qtype, element) \
00281       (((woden_ext_registry_t *) ext_registry)->ops->\
00282          register_ext_element_type (ext_registry, env, parent_type, element_qtype, element))
00283 
00284 #define WODEN_EXT_REGISTRY_REGISTER_EXT_ATTR_TYPE(ext_registry, env, owner_class, attr_qname, attr) \
00285       (((woden_ext_registry_t *) ext_registry)->ops->\
00286          register_ext_attr_type (ext_registry, env, owner_class, attr_qname, attr))
00287 
00288 #define WODEN_EXT_REGISTRY_QUERY_EXT_ATTR_TYPE(ext_registry, env, parent_class, attr_qn) \
00289       (((woden_ext_registry_t *) ext_registry)->ops->\
00290          query_ext_attr_type (ext_registry, env, parent_class, attr_qn))
00291 
00292 #define WODEN_EXT_REGISTRY_REGISTER_COMPONENT_EXT(ext_registry, env, parent_class, ext_namespc, comp_ext) \
00293       (((woden_ext_registry_t *) ext_registry)->ops->\
00294          register_component_ext (ext_registry, env, parent_class, ext_namespc, comp_ext))
00295 
00296 #define WODEN_EXT_REGISTRY_QUERY_COMPONENT_EXT(ext_registry, env, parent_class, ext_namespc) \
00297       (((woden_ext_registry_t *) ext_registry)->ops->\
00298          query_component_ext (ext_registry, env, parent_class, ext_namespc))
00299 
00300 #define WODEN_EXT_REGISTRY_QUERY_COMPONENT_EXT_NAMESPACES(ext_registry, env, parent_class) \
00301       (((woden_ext_registry_t *) ext_registry)->ops->\
00302          query_component_ext_namespaces (ext_registry, env, parent_class))
00303 
00304 
00306 #ifdef __cplusplus
00307 }
00308 #endif
00309 #endif /* WODEN_EXT_REGISTRY_H */

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