woden_svc_element.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_SVC_ELEMENT_H
00018 #define WODEN_SVC_ELEMENT_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 <woden.h>
00036 #include <woden_documentable_element.h>
00037 #include <woden_configurable_element.h>
00038 #include <woden_nested_element.h>
00039 #include <woden_nc_name.h>
00040 
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045 
00046 typedef struct woden_svc_element woden_svc_element_t;
00047 typedef struct woden_svc_element_ops woden_svc_element_ops_t;
00048 typedef union woden_svc_element_base woden_svc_element_base_t;
00049 
00055 struct woden_svc_element_ops
00056 {
00061     axis2_status_t (AXIS2_CALL *
00062     free) (
00063             void *svc_el,
00064             const axis2_env_t *env);
00065     
00066     woden_obj_types_t (AXIS2_CALL *
00067     type) (
00068             void *svc_el,
00069             const axis2_env_t *env);
00070     
00071     axis2_status_t (AXIS2_CALL *
00072     set_qname) (
00073             void *svc_el,
00074             const axis2_env_t *env,
00075             axis2_qname_t *qname);
00076 
00077     axis2_qname_t *(AXIS2_CALL *
00078     get_qname) (
00079             void *svc_el,
00080             const axis2_env_t *env);
00081 
00082     axis2_status_t (AXIS2_CALL *
00083     set_interface_qname) (
00084             void *svc_el,
00085             const axis2_env_t *env,
00086             axis2_qname_t *qname);
00087 
00088     axis2_qname_t *(AXIS2_CALL *
00089     get_interface_qname) (
00090             void *svc_el,
00091             const axis2_env_t *env);
00092 
00093     void *(AXIS2_CALL *
00094     get_interface_element) (
00095             void *svc_el,
00096             const axis2_env_t *env);
00097 
00098     axis2_status_t (AXIS2_CALL *
00099     add_endpoint_element) (
00100             void *svc_el,
00101             const axis2_env_t *env,
00102             void *endpoint);
00103 
00104     axis2_array_list_t *(AXIS2_CALL *
00105     get_endpoint_elements) (
00106             void *svc_el,
00107             const axis2_env_t *env);
00108 
00109 };
00110 
00111 union woden_svc_element_base
00112 {
00113     woden_documentable_element_t documentable_element;
00114     woden_configurable_element_t configurable_element;
00115     woden_nested_element_t nested_element;
00116 };
00117 
00118 struct woden_svc_element
00119 {
00120     woden_svc_element_base_t base;
00121     woden_svc_element_ops_t *ops;
00122 };
00123 
00124 /************************Woden C Internal Methods******************************/
00125 axis2_status_t AXIS2_CALL
00126 woden_svc_element_resolve_methods(
00127         woden_svc_element_t *svc_element,
00128         const axis2_env_t *env,
00129         axis2_hash_t *methods);
00130 /************************End of Woden C Internal Methods***********************/
00131 
00132 #define WODEN_SVC_ELEMENT_FREE(svc_el, env) \
00133       (((woden_svc_element_t *) svc_el)->ops->\
00134          free (svc_el, env))
00135 
00136 #define WODEN_SVC_ELEMENT_TYPE(svc_el, env) \
00137       (((woden_svc_element_t *) svc_el)->ops->\
00138          type (svc_el, env))
00139 
00140 #define WODEN_SVC_ELEMENT_SET_QNAME(svc_el, env, qname) \
00141       (((woden_svc_element_t *) svc_el)->ops->\
00142          set_qname(svc_el, env, qname))
00143 
00144 #define WODEN_SVC_ELEMENT_GET_QNAME(svc_el, env) \
00145       (((woden_svc_element_t *) svc_el)->ops->\
00146          get_qname(svc_el, env))
00147 
00148 #define WODEN_SVC_ELEMENT_SET_INTERFACE_QNAME(svc_el, env, qname) \
00149       (((woden_svc_element_t *) svc_el)->ops->\
00150          set_interface_qname(svc_el, env, qname))
00151 
00152 #define WODEN_SVC_ELEMENT_GET_INTERFACE_QNAME(svc_el, env) \
00153       (((woden_svc_element_t *) svc_el)->ops->\
00154          get_interface_qname(svc_el, env))
00155 
00156 #define WODEN_SVC_ELEMENT_GET_INTERFACE_ELEMENT(svc_el, env) \
00157       (((woden_svc_element_t *) svc_el)->ops->\
00158          get_interface_element(svc_el, env))
00159 
00160 #define WODEN_SVC_ELEMENT_ADD_ENDPOINT_ELEMENT(svc_el, env, endpoint) \
00161       (((woden_svc_element_t *) svc_el)->ops->\
00162          add_endpoint_element(svc_el, env, endpoint))
00163 
00164 #define WODEN_SVC_ELEMENT_GET_ENDPOINT_ELEMENTS(svc_el, env) \
00165       (((woden_svc_element_t *) svc_el)->ops->\
00166          get_endpoint_elements(svc_el, env))
00167 
00169 #ifdef __cplusplus
00170 }
00171 #endif
00172 #endif /* WODEN_SVC_ELEMENT_H */

Generated on Tue Oct 3 20:47:59 2006 for Axis2/C by  doxygen 1.4.7