woden_documentable_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_DOCUMENTABLE_ELEMENT_H
00018 #define WODEN_DOCUMENTABLE_ELEMENT_H
00019 
00029 #include <axis2_allocator.h>
00030 #include <axis2_env.h>
00031 #include <axis2_error.h>
00032 #include <axis2_string.h>
00033 #include <axis2_utils.h>
00034 #include <axis2_hash.h>
00035 #include <axis2_array_list.h>
00036 #include <woden_wsdl_element.h>
00037 #include <woden.h>
00038 
00039 #ifdef __cplusplus
00040 extern "C"
00041 {
00042 #endif
00043 
00044 typedef struct woden_documentable_element 
00045         woden_documentable_element_t;
00046 typedef struct woden_documentable_element_ops 
00047         woden_documentable_element_ops_t;
00048 struct woden_documentation_element;
00049 
00055 struct woden_documentable_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     add_documentation_element) (void *doc_el,
00073                         const axis2_env_t *env,
00074                         struct woden_documentation_element *doc_elem);
00075 
00076     axis2_array_list_t *(AXIS2_CALL *
00077     get_documentation_elements) (void *doc_el,
00078                         const axis2_env_t *env);
00079 
00080 };
00081 
00082 struct woden_documentable_element
00083 {
00084     woden_wsdl_element_t wsdl_element;
00085     woden_documentable_element_ops_t *ops;
00086 };
00087 
00088 /************************Woden C Internal Methods******************************/
00089 axis2_status_t AXIS2_CALL
00090 woden_documentable_element_resolve_methods(
00091         woden_documentable_element_t *documentable_element,
00092         const axis2_env_t *env,
00093         axis2_hash_t *methods);
00094 /************************End of Woden C Internal Methods***********************/
00095 
00096 #define WODEN_DOCUMENTABLE_ELEMENT_FREE(doc_el, env) \
00097       (((woden_documentable_element_t *) doc_el)->ops->\
00098          free (doc_el, env))
00099 
00100 #define WODEN_DOCUMENTABLE_ELEMENT_TYPE(doc_el, env) \
00101       (((woden_documentable_element_t *) doc_el)->ops->\
00102          type (doc_el, env))
00103 
00104 #define WODEN_DOCUMENTABLE_ELEMENT_ADD_DOCUMENTATION_ELEMENT(doc_el, env, doc_elem) \
00105       (((woden_documentable_element_t *) doc_el)->ops->\
00106          add_documentation_element(doc_el, env, doc_elem))
00107 
00108 #define WODEN_DOCUMENTABLE_ELEMENT_GET_DOCUMENTATOIN_ELEMENTS(doc_el, env) \
00109       (((woden_documentable_element_t *) doc_el)->ops->\
00110          get_documentation_elements(doc_el, env))
00111 
00112 
00114 #ifdef __cplusplus
00115 }
00116 #endif
00117 #endif /* WODEN_DOCUMENTABLE_ELEMENT_H */

Generated on Tue Oct 3 22:35:48 2006 for Axis2/C by  doxygen 1.4.7