woden_import_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_IMPORT_ELEMENT_H
00018 #define WODEN_IMPORT_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_qname.h>
00036 #include <axis2_uri.h>
00037 #include <woden.h>
00038 #include <woden_documentable_element.h>
00039 #include <woden_nested_element.h>
00040 
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045 
00046 typedef struct woden_import_element woden_import_element_t;
00047 typedef struct woden_import_element_ops woden_import_element_ops_t;
00048 typedef union woden_import_element_base woden_import_element_base_t;
00049 
00055 struct woden_import_element_ops
00056 {
00061     axis2_status_t (AXIS2_CALL *
00062     free) (
00063             void *import_el,
00064             const axis2_env_t *env);
00065     
00066     woden_obj_types_t (AXIS2_CALL *
00067     type) (void *import_el,
00068             const axis2_env_t *env);
00069      
00070     axis2_status_t (AXIS2_CALL *
00071     set_namespace) (void *import_el,
00072             const axis2_env_t *env,
00073             axis2_uri_t *ns_uri);
00074 
00075     axis2_uri_t *(AXIS2_CALL *
00076     get_namespace) (void *import_el,
00077             const axis2_env_t *env);
00078 
00079    
00080     axis2_status_t (AXIS2_CALL *
00081     set_location) (void *import_el,
00082             const axis2_env_t *env,
00083             axis2_uri_t *loc_uri);
00084 
00085     axis2_uri_t *(AXIS2_CALL *
00086     get_location) (void *import_el,
00087             const axis2_env_t *env);
00088 
00089     axis2_status_t (AXIS2_CALL *
00090     set_desc_element) (void *import_el,
00091             const axis2_env_t *env,
00092             void *desc);
00093 
00094     void *(AXIS2_CALL *
00095     get_desc_element) (void *import_el,
00096             const axis2_env_t *env);
00097 
00098 };
00099 
00100 
00101 struct woden_import_element
00102 {
00103     woden_documentable_element_t documentable_element;
00104     woden_import_element_ops_t *ops;
00105 };
00106 
00107 /************************Woden C Internal Methods******************************/
00108 axis2_status_t AXIS2_CALL
00109 woden_import_element_resolve_methods(
00110         woden_import_element_t *import_element,
00111         const axis2_env_t *env,
00112         axis2_hash_t *methods);
00113 /************************End of Woden C Internal Methods***********************/
00114 
00115 #define WODEN_IMPORT_ELEMENT_FREE(import_el, env) \
00116       (((woden_import_element_t *) import_el)->ops->\
00117          free (import_el, env))
00118 
00119 #define WODEN_IMPORT_ELEMENT_TYPE(import_el, env) \
00120       (((woden_import_element_t *) import_el)->ops->\
00121          type (import_el, env))
00122 
00123 #define WODEN_IMPORT_ELEMENT_SET_NAMESPACE(import_el, env, ns_uri) \
00124       (((woden_import_element_t *) import_el)->ops->\
00125          set_namespace(import_el, env, ns_uri))
00126 
00127 #define WODEN_IMPORT_ELEMENT_GET_NAMESPACE(import_el, env) \
00128       (((woden_import_element_t *) import_el)->ops->\
00129          get_namespace(import_el, env))
00130 
00131 #define WODEN_IMPORT_ELEMENT_SET_LOCATION(import_el, env, loc_uri) \
00132       (((woden_import_element_t *) import_el)->ops->\
00133          set_location(import_el, env, loc_uri))
00134 
00135 #define WODEN_IMPORT_ELEMENT_GET_LOCATION(import_el, env) \
00136       (((woden_import_element_t *) import_el)->ops->\
00137          get_location(import_el, env))
00138 
00139 #define WODEN_IMPORT_ELEMENT_SET_DESC_ELEMENT(import_el, env, desc) \
00140       (((woden_import_element_t *) import_el)->ops->\
00141          set_desc_element(import_el, env, desc))
00142 
00143 #define WODEN_IMPORT_ELEMENT_GET_DESC_ELEMENT(import_el, env) \
00144       (((woden_import_element_t *) import_el)->ops->\
00145          get_desc_element(import_el, env))
00146 
00148 #ifdef __cplusplus
00149 }
00150 #endif
00151 #endif /* WODEN_IMPORT_ELEMENT_H */

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