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