xml_schema_complex_content.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_COMPLEX_CONTENT_H
00018 #define XML_SCHEMA_COMPLEX_CONTENT_H
00019 
00029 #include <xml_schema_annotated.h>
00030 #include <axis2_hash.h>
00031 
00036 #ifdef __cplusplus
00037 extern "C"
00038 {
00039 #endif
00040 
00041 typedef struct xml_schema_complex_content 
00042                 xml_schema_complex_content_t;
00043                 
00044 typedef struct xml_schema_complex_content_ops 
00045                 xml_schema_complex_content_ops_t;
00046 
00047 struct xml_schema_complex_content_ops
00048 {
00049     axis2_status_t (AXIS2_CALL *
00050     free) (void *complex_content,
00051             const axis2_env_t *env);
00052 
00053     xml_schema_annotated_t *(AXIS2_CALL *
00054     get_base_impl) (void *complex_content,
00055                     const axis2_env_t *env);
00056                     
00057     xml_schema_types_t (AXIS2_CALL *
00058     get_type) (void *complex_content,
00059             const axis2_env_t *env);
00060                     
00061     axis2_hash_t *(AXIS2_CALL *
00062     super_objs) (void *complex_content,
00063                     const axis2_env_t *env);                                        
00064 
00065     void* (AXIS2_CALL *
00066     get_content)(
00067             void *complex_content,
00068             const axis2_env_t *env);
00069     
00070     axis2_status_t (AXIS2_CALL *
00071     set_content)(
00072             void *complex_content,
00073             const axis2_env_t *env,
00074             void *content);
00075     
00076     axis2_char_t* (AXIS2_CALL*
00077     to_string)(void *complex_content,
00078                const axis2_env_t *env,
00079                axis2_char_t *prefix,
00080                int tab);
00081                
00082     axis2_bool_t (AXIS2_CALL *
00083     is_mixed)(void *complex_content,
00084               const axis2_env_t *env);
00085               
00086     axis2_status_t (AXIS2_CALL *
00087     set_mixed)(void *complex_content,
00088                const axis2_env_t *env,
00089                axis2_bool_t mixed);
00090 };
00091 
00092 struct xml_schema_complex_content
00093 {
00094     xml_schema_annotated_t base;
00095     xml_schema_complex_content_ops_t *ops;
00096 };
00097 
00101 AXIS2_EXTERN xml_schema_complex_content_t * AXIS2_CALL
00102 xml_schema_complex_content_create(const axis2_env_t *env);
00103 
00104 #define XML_SCHEMA_COMPLEX_CONTENT_FREE(complex_content, env) \
00105       (((xml_schema_complex_content_t *) complex_content)->ops->\
00106             free(complex_content, env))
00107 
00108 #define XML_SCHEMA_COMPLEX_CONTENT_GET_BASE_IMPL(complex_content, env) \
00109       (((xml_schema_complex_content_t *) complex_content)->ops->\
00110             get_base_impl(complex_content, env))
00111             
00112 #define XML_SCHEMA_COMPLEX_CONTENT_GET_TYPE(complex_content, env) \
00113       (((xml_schema_complex_content_t *) complex_content)->ops->\
00114             get_type(complex_content, env))
00115             
00116 #define XML_SCHEMA_COMPLEX_CONTENT_SUPER_OBJS(complex_content, env) \
00117       (((xml_schema_complex_content_t *) complex_content)->ops->\
00118             super_objs(complex_content, env))                        
00119 
00120 #define XML_SCHEMA_COMPLEX_CONTENT_GET_CONTENT(complex_content, env) \
00121       (((xml_schema_complex_content_t *) complex_content)->ops->\
00122             get_content(complex_content, env))
00123 
00124 #define XML_SCHEMA_COMPLEX_CONTENT_SET_CONTENT(complex_content, env, content) \
00125       (((xml_schema_complex_content_t *) complex_content)->ops->\
00126             set_content(complex_content, env, content ))
00127 
00128 #define XML_SCHEMA_COMPLEX_CONTENT_TO_STRING(complex_content, env, prefix, tab) \
00129         (((xml_schema_complex_content_t *) complex_content)->ops->\
00130             to_string(complex_content, env, prefix, tab))            
00131 
00132 #define XML_SCHEMA_COMPLEX_CONTENT_IS_MIXED(complex_content, env) \
00133         (((xml_schema_complex_content_t *) complex_content)->ops->\
00134             is_mixed(complex_content, env))
00135             
00136 #define XML_SCHEMA_COMPLEX_CONTENT_SET_MIXED(complex_content, env, mixed) \
00137         (((xml_schema_complex_content_t *) complex_content)->ops->\
00138             set_mixed(complex_content, env, mixed))            
00139             
00141 #ifdef __cplusplus
00142 }
00143 #endif
00144 #endif /* XML_SCHEMA_COMPLEX_CONTENT_H */

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