xml_schema_external.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 XML_SCHEMA_EXTERNAL_H
00018 #define XML_SCHEMA_EXTERNAL_H
00019 
00026 #include <xml_schema_annotated.h>
00027 #include <axis2_hash.h>
00028 
00034 typedef struct xml_schema_external 
00035                     xml_schema_external_t;
00036 typedef struct xml_schema_external_ops 
00037                     xml_schema_external_ops_t;
00038                     
00039 struct xml_schema;                    
00040 
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045 
00046 struct xml_schema_external_ops
00047 {
00052     axis2_status_t (AXIS2_CALL *
00053     free) (void *external,
00054             const axis2_env_t *env);
00055             
00056     xml_schema_annotated_t* (AXIS2_CALL *
00057     get_base_impl)(
00058             void *external,
00059             const axis2_env_t *env);            
00060 
00061     xml_schema_types_t (AXIS2_CALL *
00062     get_type)(
00063             void *external,
00064             const axis2_env_t *env);            
00065 
00066 
00067     axis2_hash_t* (AXIS2_CALL *
00068     super_objs)(
00069             void *external,
00070             const axis2_env_t *env);            
00071 
00072     struct xml_schema* (AXIS2_CALL *
00073     get_schema)(
00074             void *external,
00075             const axis2_env_t *env);
00076                 
00077     axis2_status_t (AXIS2_CALL *
00078     set_schema)(
00079             void *external,
00080             const axis2_env_t *env,
00081             struct xml_schema* schema);
00082                 
00083     axis2_char_t* (AXIS2_CALL *
00084     get_schema_location)(
00085             void *external,
00086             const axis2_env_t *env);
00087                                
00088     axis2_status_t (AXIS2_CALL *
00089     set_schema_location)(
00090             void *external,
00091             const axis2_env_t *env,
00092             axis2_char_t *location);
00093 
00094 };
00095 
00096 struct xml_schema_external
00097 {
00098     xml_schema_annotated_t base;
00099     xml_schema_external_ops_t *ops;
00100 };
00101 
00105 AXIS2_EXTERN xml_schema_external_t * AXIS2_CALL
00106 xml_schema_external_create(const axis2_env_t *env);
00107 
00108 AXIS2_EXTERN xml_schema_external_t * AXIS2_CALL
00109 xml_schema_include_create(const axis2_env_t *env);
00110 
00114 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00115 xml_schema_external_resolve_methods(
00116                                 xml_schema_external_t *external,
00117                                 const axis2_env_t *env,
00118                                 xml_schema_external_t *external_impl,
00119                                 XML_SCHEMA_SUPER_OBJS_FN super_objs,
00120                                 XML_SCHEMA_GET_TYPE_FN get_type,
00121                                 XML_SCHEMA_FREE_FN free_fn);
00122 
00123 
00124 #define XML_SCHEMA_EXTERNAL_FREE(external, env) \
00125       (((xml_schema_external_t *) external)->ops->\
00126             free(external, env))
00127 
00128 #define XML_SCHEMA_EXTERNAL_GET_BASE_IMPL(external, env) \
00129       (((xml_schema_external_t *) external)->ops->\
00130             get_base_impl(external, env))
00131 
00132 #define XML_SCHEMA_EXTERNAL_SUPER_OBJS(external, env) \
00133       (((xml_schema_external_t *) external)->ops->\
00134             super_objs(external, env))
00135 
00136 #define XML_SCHEMA_EXTERNAL_GET_TYPE(external, env) \
00137       (((xml_schema_external_t *) external)->ops->\
00138             get_type(external, env))
00139 
00140 #define XML_SCHEMA_EXTERNAL_GET_SCHEMA(external, env) \
00141       (((xml_schema_external_t *) external)->ops->\
00142             get_schema(external, env))
00143 
00144 #define XML_SCHEMA_EXTERNAL_SET_SCHEMA(external, env, sch) \
00145       (((xml_schema_external_t *) external)->ops->\
00146             set_schema(external, env, sch))
00147             
00148 #define XML_SCHEMA_EXTERNAL_GET_SCHEMA_LOCATION(external, env) \
00149       (((xml_schema_external_t *) external)->ops->\
00150             get_schema_location(external, env))
00151 
00152 #define XML_SCHEMA_EXTERNAL_SET_SCHEMA_LOCATION(external, env, location) \
00153       (((xml_schema_external_t *) external)->ops->\
00154             set_schema_location(external, env, location))            
00155 
00157 #ifdef __cplusplus
00158 }
00159 #endif
00160 #endif /* XML_SCHEMA_EXTERNAL_H */

Generated on Thu Oct 26 21:11:25 2006 for Axis2/C by  doxygen 1.4.7