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

xml_schema_any.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_ANY_H
00018 #define XML_SCHEMA_ANY_H
00019 
00029 #include <xml_schema_defines.h>
00030 #include <xml_schema_particle.h>
00031 #include <xml_schema_content_processing.h>
00032 
00038 typedef struct xml_schema_any xml_schema_any_t;
00039 typedef struct xml_schema_any_ops xml_schema_any_ops_t;
00040 struct xml_schema_content_processing_t;
00041 
00042 #ifdef __cplusplus
00043 extern "C"
00044 {
00045 #endif
00046 
00047 struct xml_schema_any_ops
00048 {
00053     axis2_status_t (AXIS2_CALL *
00054     free) (
00055             void *any,
00056             const axis2_env_t *env);
00057 
00058     axis2_hash_t *(AXIS2_CALL *
00059     super_objs) (
00060             void *any,
00061             const axis2_env_t *env);
00062 
00063     xml_schema_types_t (AXIS2_CALL *
00064     get_type) (
00065             void *any,
00066             const axis2_env_t *env);
00067 
00068     xml_schema_particle_t *(AXIS2_CALL *
00069     get_base_impl) (void *any,
00070                     const axis2_env_t *env);
00071     
00072     axis2_char_t *(AXIS2_CALL *
00073     get_namespace)(void *any,
00074                     const axis2_env_t *env);
00075 
00076     axis2_status_t (AXIS2_CALL *
00077     set_namespace) (void *any,
00078                     const axis2_env_t *env,
00079                     axis2_char_t *ns);
00080 
00081     xml_schema_content_processing_t *(AXIS2_CALL *
00082     get_process_content) (void *any,
00083                           const axis2_env_t *env);
00084 
00085     axis2_status_t (AXIS2_CALL *
00086     set_process_content)(
00087         void *any,
00088         const axis2_env_t *env,
00089         xml_schema_content_processing_t *process_content);
00090 };
00091 
00092 struct xml_schema_any
00093 {
00094     xml_schema_particle_t base;
00095     xml_schema_any_ops_t *ops;
00096 };
00097 
00098 AXIS2_EXTERN xml_schema_any_t * AXIS2_CALL
00099 xml_schema_any_create(const axis2_env_t *env);
00100 
00111  /************************ Macros *******************************************/
00112  
00113 #define XML_SCHEMA_ANY_FREE(any, env) \
00114       (((xml_schema_any_t *) any)->ops->free(any, env))
00115 
00116 #define XML_SCHEMA_ANY_SUPER_OBJS(any, env) \
00117       (((xml_schema_any_t *) any)->ops->super_objs(any, env))
00118 
00119 #define XML_SCHEMA_ANY_GET_TYPE(any, env) \
00120       (((xml_schema_any_t *) any)->ops->get_type(any, env))
00121 
00122 #define XML_SCHEMA_ANY_GET_BASE_IMPL(any, env) \
00123       (((xml_schema_any_t *) any)->ops->get_base_impl(any, env))
00124 
00125 #define XML_SCHEMA_ANY_GET_NAMESPACE(any, env) \
00126       (((xml_schema_any_t *) any)->ops->get_namespace(any, env))
00127 
00128 #define XML_SCHEMA_ANY_SET_NAMESPACE(any, env, namespc) \
00129       (((xml_schema_any_t *) any)->ops->set_namespace(any, env, namespc))
00130 
00131 #define XML_SCHEMA_ANY_GET_PROCESS_CONTENT(any, env) \
00132       (((xml_schema_any_t *) any)->ops->get_process_content(any, env))
00133 
00134 #define XML_SCHEMA_ANY_SET_PROCESS_CONTENT(any, env, process_content) \
00135       (((xml_schema_any_t *) any)->ops->set_process_content(any, env, process_content))
00136 
00137 /*********************************** Macros ***************************************************/
00139 #ifdef __cplusplus
00140 }
00141 #endif
00142 #endif /* XML_SCHEMA_ANY_H */

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