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

Generated on Wed Dec 20 20:14:10 2006 for Axis2/C by  doxygen 1.5.1