Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Examples

woden_imported_schema.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_IMPORTED_SCHEMA_H
00018 #define WODEN_IMPORTED_SCHEMA_H
00019 
00028 #include <woden_schema.h>
00029 
00035 typedef struct woden_imported_schema woden_imported_schema_t;
00036 typedef struct woden_imported_schema_ops woden_imported_schema_ops_t;
00037 
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042 
00043 struct woden_imported_schema_ops
00044 {
00049     axis2_status_t (AXIS2_CALL *
00050     free) (
00051             void *schema,
00052             const axis2_env_t *env);
00053     
00054     woden_obj_types_t (AXIS2_CALL *
00055     type) (
00056             void *schema,
00057             const axis2_env_t *env);
00061     woden_schema_t *(AXIS2_CALL *
00062     get_base_impl) (
00063             void *schema,
00064             const axis2_env_t *env);
00065 
00066     axis2_status_t (AXIS2_CALL *
00067     set_location) (
00068             void *schema,
00069             const axis2_env_t *env,
00070             struct axis2_uri *location);
00071 
00072     struct axis2_uri *(AXIS2_CALL *
00073     get_location) (
00074             void *schema,
00075             const axis2_env_t *env);
00076 
00077   
00078 };
00079 
00080 struct woden_imported_schema
00081 {
00082     woden_schema_t schema;
00083     woden_imported_schema_ops_t *ops;
00084 };
00085 
00086 AXIS2_EXTERN woden_imported_schema_t * AXIS2_CALL
00087 woden_imported_schema_create(
00088         const axis2_env_t *env);
00089 
00090 /************************Woden C Internal Methods******************************/
00091 AXIS2_EXTERN woden_imported_schema_t * AXIS2_CALL
00092 woden_imported_schema_to_schema(
00093         void *schema,
00094         const axis2_env_t *env);
00095 
00096 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00097 woden_imported_schema_resolve_methods(
00098         woden_imported_schema_t *schema,
00099         const axis2_env_t *env,
00100         woden_imported_schema_t *schema_impl,
00101         axis2_hash_t *methods);
00102 /************************End of Woden C Internal Methods***********************/
00103 
00104 #define WODEN_IMPORTED_SCHEMA_FREE(schema, env) \
00105       (((woden_imported_schema_t *) schema)->ops->free(schema, env))
00106 
00107 #define WODEN_IMPORTED_SCHEMA_TYPE(schema, env) \
00108       (((woden_imported_schema_t *) schema)->ops->type(schema, env))
00109 
00110 #define WODEN_IMPORTED_SCHEMA_GET_BASE_IMPL(schema, env) \
00111       (((woden_imported_schema_t *) schema)->ops->get_base_impl(schema, \
00112                                                                         env))
00113 
00114 #define WODEN_IMPORTED_SCHEMA_SET_LOCATION(schema, env, location) \
00115       (((woden_imported_schema_t *) schema)->ops->set_location(schema, \
00116                                                                     env, location))
00117 
00118 #define WODEN_IMPORTED_SCHEMA_GET_LOCATION(schema, env) \
00119       (((woden_imported_schema_t *) schema)->ops->get_location(schema, \
00120                                                                        env))
00121 
00123 #ifdef __cplusplus
00124 }
00125 #endif
00126 #endif /* WODEN_IMPORTED_SCHEMA_H */

Generated on Fri Jun 16 18:02:32 2006 for Axis2/C by  doxygen 1.4.2