woden_configurable_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_CONFIGURABLE_ELEMENT_H
00018 #define WODEN_CONFIGURABLE_ELEMENT_H
00019 
00036 #include <axis2_allocator.h>
00037 #include <axis2_env.h>
00038 #include <axis2_error.h>
00039 #include <axis2_string.h>
00040 #include <axis2_utils.h>
00041 #include <axis2_hash.h>
00042 #include <axis2_qname.h>
00043 #include <woden.h>
00044 #include <woden_wsdl_element.h>
00045 
00046 #ifdef __cplusplus
00047 extern "C"
00048 {
00049 #endif
00050 
00051 typedef struct woden_configurable_element 
00052         woden_configurable_element_t;
00053 typedef struct woden_configurable_element_ops 
00054         woden_configurable_element_ops_t;
00055 struct woden_feature_element;
00056 struct woden_property_element;
00057 
00063 struct woden_configurable_element_ops
00064 {
00069     axis2_status_t (AXIS2_CALL *
00070     free) (
00071             void *conf_el,
00072             const axis2_env_t *env);
00073     
00074     woden_obj_types_t (AXIS2_CALL *
00075     type) (
00076             void *conf_el,
00077             const axis2_env_t *env);
00078     
00079     axis2_status_t (AXIS2_CALL *
00080     add_feature_element) (
00081             void *conf_el,
00082             const axis2_env_t *env,
00083             struct woden_feature_element *feature);
00084 
00085     axis2_array_list_t *(AXIS2_CALL *
00086     get_feature_elements) (
00087             void *conf_el,
00088             const axis2_env_t *env);
00089 
00090     axis2_status_t (AXIS2_CALL *
00091     add_property_element) (
00092             void *conf_el,
00093             const axis2_env_t *env,
00094             struct woden_property_element *feature);
00095 
00096     axis2_array_list_t *(AXIS2_CALL *
00097     get_property_elements) (
00098             void *conf_el,
00099             const axis2_env_t *env);
00100 
00101 
00102 };
00103 
00104 struct woden_configurable_element
00105 {
00106     woden_wsdl_element_t wsdl_element;
00107     woden_configurable_element_ops_t *ops;
00108 };
00109 
00110 /************************Woden C Internal Methods*****************************/
00111 axis2_status_t AXIS2_CALL
00112 woden_configurable_element_resolve_methods(
00113         woden_configurable_element_t *configurable_element,
00114         const axis2_env_t *env,
00115         axis2_hash_t *methods);
00116 /************************End of Woden C Internal Methods***********************/
00117 
00118 #define WODEN_CONFIGURABLE_ELEMENT_FREE(conf_el, env) \
00119       (((woden_configurable_element_t *) conf_el)->ops->\
00120          free (conf_el, env))
00121 
00122 #define WODEN_CONFIGURABLE_ELEMENT_TYPE(conf_el, env) \
00123       (((woden_configurable_element_t *) conf_el)->ops->\
00124          type (conf_el, env))
00125 
00126 #define WODEN_CONFIGURABLE_ELEMENT_ADD_FEATURE_ELEMENT(conf_el, env, \
00127         feature) \
00128       (((woden_configurable_element_t *) conf_el)->ops->\
00129          add_feature_element(conf_el, env, feature))
00130 
00131 #define WODEN_CONFIGURABLE_ELEMENT_GET_FEATURE_ELEMENTS(conf_el, env) \
00132       (((woden_configurable_element_t *) conf_el)->ops->\
00133          get_feature_elements(conf_el, env))
00134 
00135 #define WODEN_CONFIGURABLE_ELEMENT_ADD_PROPERTY_ELEMENT(conf_el, env, \
00136         property) \
00137       (((woden_configurable_element_t *) conf_el)->ops->\
00138          add_property_element(conf_el, env, property))
00139 
00140 #define WODEN_CONFIGURABLE_ELEMENT_GET_PROPERTY_ELEMENTS(conf_el, env) \
00141       (((woden_configurable_element_t *) conf_el)->ops->\
00142          get_property_elements(conf_el, env))
00143 
00144 
00145 
00147 #ifdef __cplusplus
00148 }
00149 #endif
00150 #endif /* WODEN_CONFIGURABLE_ELEMENT_H */

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