00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef XML_SCHEMA_SIMPLE_CONTENT_H
00019 #define XML_SCHEMA_SIMPLE_CONTENT_H
00020
00030 #include <xml_schema_annotated.h>
00031 #include <axis2_hash.h>
00032
00040 #ifdef __cplusplus
00041 extern "C"
00042 {
00043 #endif
00044
00045 typedef struct xml_schema_simple_content
00046 xml_schema_simple_content_t;
00047
00048 typedef struct xml_schema_simple_content_ops
00049 xml_schema_simple_content_ops_t;
00050
00051 struct xml_schema_simple_content_ops
00052 {
00053 axis2_status_t (AXIS2_CALL *
00054 free) (void *sim_content,
00055 const axis2_env_t *env);
00056
00057 xml_schema_annotated_t *(AXIS2_CALL *
00058 get_base_impl) (void *sim_content,
00059 const axis2_env_t *env);
00060
00061 axis2_hash_t *(AXIS2_CALL *
00062 super_objs) (void *sim_content,
00063 const axis2_env_t *env);
00064
00065 xml_schema_types_t (AXIS2_CALL *
00066 get_type) (void *sim_content,
00067 const axis2_env_t *env);
00068
00069 void* (AXIS2_CALL *
00070 get_content)(
00071 void *sim_content,
00072 const axis2_env_t *env);
00073
00074 axis2_status_t (AXIS2_CALL *
00075 set_content)(
00076 void *sim_content,
00077 const axis2_env_t *env,
00078 void *content);
00079
00080 axis2_char_t* (AXIS2_CALL*
00081 to_string)(void *sim_content,
00082 const axis2_env_t *env,
00083 axis2_char_t *prefix,
00084 int tab);
00085
00086 };
00087
00088 struct xml_schema_simple_content
00089 {
00090 xml_schema_annotated_t base;
00091 xml_schema_simple_content_ops_t *ops;
00092 };
00093
00097 AXIS2_EXTERN xml_schema_simple_content_t * AXIS2_CALL
00098 xml_schema_simple_content_create(const axis2_env_t *env);
00099
00100
00101 #define XML_SCHEMA_SIMPLE_CONTENT_FREE(sim_content, env) \
00102 (((xml_schema_simple_content_t *) sim_content)->ops->\
00103 free(sim_content, env))
00104
00105 #define XML_SCHEMA_SIMPLE_CONTENT_GET_BASE_IMPL(sim_content, env) \
00106 (((xml_schema_simple_content_t *) sim_content)->ops->\
00107 get_base_impl(sim_content, env))
00108
00109 #define XML_SCHEMA_SIMPLE_CONTENT_SUPER_OBJS(sim_content, env) \
00110 (((xml_schema_simple_content_t *) sim_content)->ops->\
00111 super_objs(sim_content, env))
00112
00113 #define XML_SCHEMA_SIMPLE_CONTENT_GET_TYPE(sim_content, env) \
00114 (((xml_schema_simple_content_t *) sim_content)->ops->\
00115 get_type(sim_content, env))
00116
00117 #define XML_SCHEMA_SIMPLE_CONTENT_GET_CONTENT(sim_content, env) \
00118 (((xml_schema_simple_content_t *) sim_content)->ops->\
00119 get_content(sim_content, env))
00120
00121 #define XML_SCHEMA_SIMPLE_CONTENT_SET_CONTENT(sim_content, env, content) \
00122 (((xml_schema_simple_content_t *) sim_content)->ops->\
00123 set_content(sim_content, env, content))
00124
00125 #define XML_SCHEMA_SIMPLE_CONTENT_TO_STRING(sim_content, env, prefix, tab) \
00126 (((xml_schema_simple_content_t *) sim_content)->ops->\
00127 to_string(sim_content, env, prefix, tab))
00128
00130 #ifdef __cplusplus
00131 }
00132 #endif
00133 #endif