woden_documentation_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_DOCUMENTATION_ELEMENT_H
00018 #define WODEN_DOCUMENTATION_ELEMENT_H
00019 
00030 #include <axis2_allocator.h>
00031 #include <axis2_env.h>
00032 #include <axis2_error.h>
00033 #include <axis2_string.h>
00034 #include <axis2_utils.h>
00035 #include <axis2_hash.h>
00036 #include <axis2_qname.h>
00037 #include <woden_wsdl_element.h>
00038 #include <woden.h>
00039 
00040 #ifdef __cplusplus
00041 extern "C"
00042 {
00043 #endif
00044 
00045 typedef struct woden_documentation_element 
00046         woden_documentation_element_t;
00047 typedef struct woden_documentation_element_ops 
00048         woden_documentation_element_ops_t;
00049 
00055 struct woden_documentation_element_ops
00056 {
00061     axis2_status_t (AXIS2_CALL *
00062     free) (
00063             void *doc_el,
00064             const axis2_env_t *env);
00065     
00066     woden_obj_types_t (AXIS2_CALL *
00067     type) (
00068             void *doc_el,
00069             const axis2_env_t *env);
00070     
00071     axis2_status_t (AXIS2_CALL *
00072     set_content) (void *doc_el,
00073             const axis2_env_t *env,
00074             void *doc_elem);
00075 
00076     void *(AXIS2_CALL *
00077     get_content) (
00078             void *doc_el,
00079             const axis2_env_t *env);
00080 
00081 };
00082 
00083 struct woden_documentation_element
00084 {
00085     woden_wsdl_element_t wsdl_element;
00086     woden_documentation_element_ops_t *ops;
00087 };
00088 
00089 /************************Woden C Internal Methods******************************/
00090 axis2_status_t AXIS2_CALL
00091 woden_documentation_element_resolve_methods(
00092         woden_documentation_element_t *documentation_element,
00093         const axis2_env_t *env,
00094         axis2_hash_t *methods);
00095 /************************End of Woden C Internal Methods***********************/
00096 
00097 #define WODEN_DOCUMENTATION_ELEMENT_FREE(doc_el, env) \
00098       (((woden_documentation_element_t *) doc_el)->ops->\
00099          free (doc_el, env))
00100 
00101 #define WODEN_DOCUMENTATION_ELEMENT_TYPE(doc_el, env) \
00102       (((woden_documentation_element_t *) doc_el)->ops->\
00103          type (doc_el, env))
00104 
00105 #define WODEN_DOCUMENTATION_ELEMENT_SET_CONTENT(doc_el, env, doc_elem) \
00106       (((woden_documentation_element_t *) doc_el)->ops->\
00107          set_content(doc_el, env, doc_elem))
00108 
00109 #define WODEN_DOCUMENTATION_ELEMENT_GET_CONTENT(doc_el, env) \
00110       (((woden_documentation_element_t *) doc_el)->ops->\
00111          get_content(doc_el, env))
00112 
00113 
00115 #ifdef __cplusplus
00116 }
00117 #endif
00118 #endif /* WODEN_DOCUMENTATION_ELEMENT_H */

Generated on Thu Aug 31 17:32:37 2006 for Axis2/C by  doxygen 1.4.6