woden_nested_element.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef WODEN_NESTED_ELEMENT_H
00019 #define WODEN_NESTED_ELEMENT_H
00020 
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_nested_element woden_nested_element_t;
00052 typedef struct woden_nested_element_ops woden_nested_element_ops_t;
00053 struct woden_wsdl_element;
00054 
00060 struct woden_nested_element_ops
00061 {
00066     axis2_status_t (AXIS2_CALL *
00067     free) (
00068             void *nested_el,
00069             const axis2_env_t *env);
00070     
00071     woden_obj_types_t (AXIS2_CALL *
00072     type) (
00073             void *nested_el,
00074             const axis2_env_t *env);
00075     
00076     axis2_status_t (AXIS2_CALL *
00077     set_parent_element) (
00078             void *nested_el,
00079             const axis2_env_t *env,
00080             struct woden_wsdl_element *parent);
00081 
00082     void *(AXIS2_CALL *
00083     get_parent_element) (
00084             void *nested_el,
00085             const axis2_env_t *env);
00086 
00087 };
00088 
00089 struct woden_nested_element
00090 {
00091     woden_wsdl_element_t wsdl_element;
00092     woden_nested_element_ops_t *ops;
00093 };
00094 
00095 /************************Woden C Internal Methods*****************************/
00096 axis2_status_t AXIS2_CALL
00097 woden_nested_element_resolve_methods(
00098         woden_nested_element_t *nested_element,
00099         const axis2_env_t *env,
00100         axis2_hash_t *methods);
00101 /************************End of Woden C Internal Methods***********************/
00102 
00103 #define WODEN_NESTED_ELEMENT_FREE(nested_el, env) \
00104       (((woden_nested_element_t *) nested_el)->ops->\
00105          free (nested_el, env))
00106 
00107 #define WODEN_NESTED_ELEMENT_TYPE(nested_el, env) \
00108       (((woden_nested_element_t *) nested_el)->ops->\
00109          type (nested_el, env))
00110 
00111 #define WODEN_NESTED_ELEMENT_SET_PARENT_ELEMENT(nested_el, env, parent) \
00112       (((woden_nested_element_t *) nested_el)->ops->\
00113          set_parent_element(nested_el, env, parent))
00114 
00115 #define WODEN_NESTED_ELEMENT_GET_PARENT_ELEMENT(nested_el, env) \
00116       (((woden_nested_element_t *) nested_el)->ops->\
00117          get_parent_element(nested_el, env))
00118 
00119 
00121 #ifdef __cplusplus
00122 }
00123 #endif
00124 #endif /* WODEN_NESTED_ELEMENT_H */

Generated on Wed Dec 20 20:34:50 2006 for Axis2/C by  doxygen 1.5.1