woden_wsdl10_endpoint_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_WSDL10_ENDPOINT_ELEMENT_H
00018 #define WODEN_WSDL10_ENDPOINT_ELEMENT_H
00019 
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 <woden.h>
00037 #include <woden_documentable_element.h>
00038 #include <woden_configurable_element.h>
00039 #include <woden_nested_element.h>
00040 #include <woden_nc_name.h>
00041 
00042 #ifdef __cplusplus
00043 extern "C"
00044 {
00045 #endif
00046 
00047 typedef struct woden_wsdl10_endpoint_element woden_wsdl10_endpoint_element_t;
00048 typedef struct woden_wsdl10_endpoint_element_ops woden_wsdl10_endpoint_element_ops_t;
00049 typedef union woden_wsdl10_endpoint_element_base woden_wsdl10_endpoint_element_base_t;
00050 
00056 struct woden_wsdl10_endpoint_element_ops
00057 {
00062     axis2_status_t (AXIS2_CALL *
00063     free) (
00064             void *endpoint_el,
00065             const axis2_env_t *env);
00066     
00067     woden_obj_types_t (AXIS2_CALL *
00068     type) (
00069             void *endpoint_el,
00070             const axis2_env_t *env);
00071     
00072     axis2_status_t (AXIS2_CALL *
00073     set_name) (
00074             void *endpoint_el,
00075             const axis2_env_t *env,
00076             woden_nc_name_t *name);
00077 
00078     woden_nc_name_t *(AXIS2_CALL *
00079     get_name) (
00080             void *endpoint_el,
00081             const axis2_env_t *env);
00082 
00083     axis2_status_t (AXIS2_CALL *
00084     set_binding_qname) (
00085             void *endpoint_el,
00086             const axis2_env_t *env,
00087             axis2_qname_t *qname);
00088 
00089     axis2_qname_t *(AXIS2_CALL *
00090     get_binding_qname) (
00091             void *endpoint_el,
00092             const axis2_env_t *env);
00093 
00094     void *(AXIS2_CALL *
00095     get_binding_element) (
00096             void *endpoint_el,
00097             const axis2_env_t *env);
00098 
00099     axis2_status_t (AXIS2_CALL *
00100     set_address) (
00101             void *endpoint_el,
00102             const axis2_env_t *env,
00103             axis2_uri_t *uri);
00104 
00105     axis2_uri_t *(AXIS2_CALL *
00106     get_address) (
00107             void *endpoint_el,
00108             const axis2_env_t *env);
00109 
00110 };
00111 
00112 union woden_wsdl10_endpoint_element_base
00113 {
00114     woden_documentable_element_t documentable_element;
00115     woden_configurable_element_t configurable_element;
00116     woden_nested_element_t nested_element;
00117 };
00118 
00119 struct woden_wsdl10_endpoint_element
00120 {
00121     woden_wsdl10_endpoint_element_base_t base;
00122     woden_wsdl10_endpoint_element_ops_t *ops;
00123 };
00124 
00125 /************************Woden C Internal Methods******************************/
00126 axis2_status_t AXIS2_CALL
00127 woden_wsdl10_endpoint_element_resolve_methods(
00128         woden_wsdl10_endpoint_element_t *endpoint_element,
00129         const axis2_env_t *env,
00130         axis2_hash_t *methods);
00131 /************************End of Woden C Internal Methods***********************/
00132 
00133 #define WODEN_WSDL10_ENDPOINT_ELEMENT_FREE(endpoint_el, env) \
00134       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00135          free (endpoint_el, env))
00136 
00137 #define WODEN_WSDL10_ENDPOINT_ELEMENT_TYPE(endpoint_el, env) \
00138       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00139          type (endpoint_el, env))
00140 
00141 #define WODEN_WSDL10_ENDPOINT_ELEMENT_SET_NAME(endpoint_el, env, name) \
00142       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00143          set_name(endpoint_el, env, name))
00144 
00145 #define WODEN_WSDL10_ENDPOINT_ELEMENT_GET_NAME(endpoint_el, env) \
00146       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00147          get_name(endpoint_el, env))
00148 
00149 #define WODEN_WSDL10_ENDPOINT_ELEMENT_SET_BINDING_QNAME(endpoint_el, env, qname) \
00150       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00151          set_binding_qname(endpoint_el, env, qname))
00152 
00153 #define WODEN_WSDL10_ENDPOINT_ELEMENT_GET_BINDING_QNAME(endpoint_el, env) \
00154       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00155          get_binding_qname(endpoint_el, env))
00156 
00157 #define WODEN_WSDL10_ENDPOINT_ELEMENT_GET_BINDING_ELEMENT(endpoint_el, env) \
00158       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00159          get_binding_element(endpoint_el, env))
00160 
00161 #define WODEN_WSDL10_ENDPOINT_ELEMENT_SET_ADDRESS(endpoint_el, env, uri) \
00162       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00163          set_address(endpoint_el, env, uri))
00164 
00165 #define WODEN_WSDL10_ENDPOINT_ELEMENT_GET_ADDRESS(endpoint_el, env) \
00166       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00167          get_address(endpoint_el, env))
00168 
00170 #ifdef __cplusplus
00171 }
00172 #endif
00173 #endif /* WODEN_WSDL10_ENDPOINT_ELEMENT_H */

Generated on Tue Oct 3 18:21:11 2006 for Axis2/C by  doxygen 1.4.7