woden_attr_extensible.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 WODEN_ATTR_EXTENSIBLE_H
00018 #define WODEN_ATTR_EXTENSIBLE_H
00019 
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_attr_extensible woden_attr_extensible_t;
00044 typedef struct woden_attr_extensible_ops woden_attr_extensible_ops_t;
00045 struct woden_xml_attr;
00046 
00052 struct woden_attr_extensible_ops
00053 {
00058     axis2_status_t (AXIS2_CALL *
00059     free) (
00060             void *attr_extensible,
00061             const axis2_env_t *env);
00062     
00063     axis2_status_t (AXIS2_CALL *
00064     to_attr_extensible_free) (
00065             void *attr_extensible,
00066             const axis2_env_t *env);
00067 
00068     axis2_hash_t *(AXIS2_CALL *
00069     super_objs) (
00070             void *attr_extensible,
00071             const axis2_env_t *env);
00072     
00073     woden_obj_types_t (AXIS2_CALL *
00074     type) (
00075             void *attr_extensible,
00076             const axis2_env_t *env);
00077     
00078     axis2_status_t (AXIS2_CALL *
00079     set_ext_attr) (
00080             void *extensible,
00081             const axis2_env_t *env,
00082             axis2_qname_t *attr_type,
00083             struct woden_xml_attr *attr); 
00084 
00085     void *(AXIS2_CALL *
00086     get_ext_attr) (
00087             void *extensible,
00088             const axis2_env_t *env,
00089             axis2_qname_t *attr_type); 
00090 
00091     axis2_array_list_t *(AXIS2_CALL *
00092     get_ext_attrs) (
00093             void *extensible,
00094             const axis2_env_t *env); 
00095 
00096     axis2_array_list_t *(AXIS2_CALL *
00097     get_ext_attrs_for_namespace) (
00098             void *extensible,
00099             const axis2_env_t *env,
00100             axis2_uri_t *namespc);
00101 
00102     axis2_bool_t (AXIS2_CALL *
00103     has_ext_attrs_for_namespace) (
00104             void *extensible,
00105             const axis2_env_t *env,
00106             axis2_uri_t *namespc);
00107 
00108 
00109 };
00110 
00111 struct woden_attr_extensible
00112 {
00113     woden_attr_extensible_ops_t *ops;
00114 };
00115 
00116 AXIS2_EXTERN woden_attr_extensible_t * AXIS2_CALL
00117 woden_attr_extensible_create(const axis2_env_t *env);
00118 
00123 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00124 woden_attr_extensible_resolve_methods(
00125         woden_attr_extensible_t *extensible,
00126         const axis2_env_t *env,
00127         woden_attr_extensible_t *extensible_impl,
00128         axis2_hash_t *methods);
00129 
00130 #define WODEN_ATTR_EXTENSIBLE_FREE(extensible, env) \
00131       (((woden_attr_extensible_t *) extensible)->ops->\
00132          free (extensible, env))
00133 
00134 #define WODEN_ATTR_EXTENSIBLE_TO_ATTR_EXTENSIBLE_FREE(extensible, env) \
00135       (((woden_attr_extensible_t *) extensible)->ops->\
00136          to_attr_extensible_free (extensible, env))
00137 
00138 #define WODEN_ATTR_EXTENSIBLE_SUPER_OBJS(extensible, env) \
00139       (((woden_attr_extensible_t *) extensible)->ops->\
00140          super_objs (extensible, env))
00141 
00142 #define WODEN_ATTR_EXTENSIBLE_TYPE(extensible, env) \
00143       (((woden_attr_extensible_t *) extensible)->ops->\
00144          type (extensible, env))
00145 
00146 #define WODEN_ATTR_EXTENSIBLE_SET_EXT_ATTR(extensible, env, attr_type, \
00147         attr) \
00148       (((woden_attr_extensible_t *) extensible)->ops->\
00149          set_ext_attr(extensible, env, attr_type, attr))
00150 
00151 #define WODEN_ATTR_EXTENSIBLE_GET_EXT_ATTR(extensible, env, \
00152         attr_type) \
00153       (((woden_attr_extensible_t *) extensible)->ops->\
00154          get_ext_attr(extensible, env, attr_type))
00155 
00156 #define WODEN_ATTR_EXTENSIBLE_GET_EXT_ATTRS(extensible, env) \
00157       (((woden_attr_extensible_t *) extensible)->ops->\
00158          get_ext_attrs(extensible, env))
00159 
00160 #define WODEN_ATTR_EXTENSIBLE_GET_EXT_ATTRS_FOR_NAMESPACE(extensible, \
00161         env, namespc) \
00162       (((woden_attr_extensible_t *) extensible)->ops->\
00163          get_ext_attrs_for_namespace(extensible, env, namespc))
00164 
00165 #define WODEN_ATTR_EXTENSIBLE_HAS_EXT_ATTRS_FOR_NAMESPACE(\
00166         extensible, env, namespc) \
00167       (((woden_attr_extensible_t *) extensible)->ops->\
00168          has_ext_attrs_for_namespace(extensible, env, namespc))
00169 
00170 
00172 #ifdef __cplusplus
00173 }
00174 #endif
00175 #endif /* WODEN_ATTR_EXTENSIBLE_H */

Generated on Thu Oct 26 21:00:12 2006 for Axis2/C by  doxygen 1.4.7