xml_schema_import.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 XML_SCHEMA_IMPORT_H
00019 #define XML_SCHEMA_IMPORT_H
00020 
00027 #include <xml_schema_external.h>
00028 #include <axis2_hash.h>
00029 
00035 typedef struct xml_schema_import 
00036                     xml_schema_import_t;
00037 typedef struct xml_schema_import_ops 
00038                     xml_schema_import_ops_t;
00039                     
00040 struct xml_schema;                    
00041 
00042 #ifdef __cplusplus
00043 extern "C"
00044 {
00045 #endif
00046 
00047 struct xml_schema_import_ops
00048 {
00049     axis2_status_t (AXIS2_CALL *
00050     free) (void *import,
00051             const axis2_env_t *env);
00052 
00053     xml_schema_external_t* (AXIS2_CALL *
00054     get_base_impl)(void *import,
00055                    const axis2_env_t *env);
00056 
00057 
00058     axis2_hash_t* (AXIS2_CALL *
00059     super_objs)(void *import,
00060                 const axis2_env_t *env);
00061                 
00062     xml_schema_types_t (AXIS2_CALL *
00063     get_type)(void *import,
00064                 const axis2_env_t *env);                
00065     
00066     axis2_char_t* (AXIS2_CALL *
00067     get_namespace)(void *import,
00068                 const axis2_env_t *env);
00069                 
00070                 
00071                 
00072     axis2_status_t (AXIS2_CALL *
00073     set_namespace)(void *import,
00074                 const axis2_env_t *env,
00075                 axis2_char_t *ns);
00076 
00077 };
00078 
00079 struct xml_schema_import
00080 {
00081     xml_schema_external_t base;
00082     xml_schema_import_ops_t *ops;
00083 };
00084 
00088 AXIS2_EXTERN xml_schema_import_t * AXIS2_CALL
00089 xml_schema_import_create(const axis2_env_t *env);
00090 
00091 
00092 #define XML_SCHEMA_IMPORT_FREE(import, env) \
00093       (((xml_schema_import_t *) import)->ops->\
00094             free(import, env))
00095 
00096 #define XML_SCHEMA_IMPORT_GET_BASE_IMPL(import, env) \
00097       (((xml_schema_import_t *) import)->ops->\
00098             get_base_impl(import, env))
00099             
00100 #define XML_SCHEMA_IMPORT_GET_TYPE(import, env) \
00101       (((xml_schema_import_t *) import)->ops->\
00102             get_type(import, env))
00103             
00104 #define XML_SCHEMA_IMPORT_SUPER_OBJS(import, env) \
00105       (((xml_schema_import_t *) import)->ops->\
00106             super_objs(import, env))                        
00107 
00108 #define XML_SCHEMA_IMPORT_GET_NAMESPACE(import, env) \
00109       (((xml_schema_import_t *) import)->ops->\
00110             get_namespace(import, env))
00111 
00112 #define XML_SCHEMA_IMPORT_SET_NAMESPACE(import, env, ns) \
00113       (((xml_schema_import_t *) import)->ops->\
00114             set_namespace(import, env, ns))
00115 
00117 #ifdef __cplusplus
00118 }
00119 #endif
00120 #endif /* XML_SCHEMA_IMPORT_H */

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