00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef XML_SCHEMA_CONTENT_TYPE_H
00019 #define XML_SCHEMA_CONTENT_TYPE_H
00020
00029 #include <xml_schema_enum.h>
00030
00031
00032
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037
00043 typedef struct xml_schema_content_type
00044 xml_schema_content_type_t;
00045 typedef struct xml_schema_content_type_ops
00046 xml_schema_content_type_ops_t;
00047
00048 struct xml_schema_content_type_ops
00049 {
00054 axis2_status_t (AXIS2_CALL *
00055 free) (void *content_type,
00056 const axis2_env_t *env);
00057
00058 axis2_hash_t *(AXIS2_CALL *
00059 super_objs) (void *content_type,
00060 const axis2_env_t *env);
00061
00062 xml_schema_types_t (AXIS2_CALL *
00063 get_type) (void *content_type,
00064 const axis2_env_t *env);
00065
00066 xml_schema_enum_t *(AXIS2_CALL *
00067 get_base_impl) (void *content_type,
00068 const axis2_env_t *env);
00069
00070 axis2_array_list_t *(AXIS2_CALL *
00071 get_values)(void *content_type,
00072 const axis2_env_t *env);
00073
00074 };
00075
00076 struct xml_schema_content_type
00077 {
00078 xml_schema_enum_t base;
00079 xml_schema_content_type_ops_t *ops;
00080 };
00081
00082 AXIS2_EXTERN xml_schema_content_type_t * AXIS2_CALL
00083 xml_schema_content_type_create(const axis2_env_t *env,
00084 axis2_char_t* value);
00085
00086
00087 #define XML_SCHEMA_CONTENT_TYPE_FREE(content_type, env) \
00088 (((xml_schema_content_type_t *) content_type)->ops->free(content_type, env))
00089
00090 #define XML_SCHEMA_CONTENT_TYPE_GET_BASE_IMPL(content_type, env) \
00091 (((xml_schema_content_type_t *) content_type)->ops->get_base_impl(content_type, env))
00092
00093 #define XML_SCHEMA_CONTENT_TYPE_GET_VALUES(content_type, env) \
00094 (((xml_schema_content_type_t *) content_type)->ops->values(content_type, env))
00095
00096 #define XML_SCHEMA_CONTENT_TYPE_SUPER_OBJS(content_type, env) \
00097 (((xml_schema_content_type_t *) content_type)->ops->super_objs(content_type, env))
00098
00099 #define XML_SCHEMA_CONTENT_TYPE_GET_TYPE(content_type, env) \
00100 (((xml_schema_content_type_t *) content_type) \
00101 content_type)->ops->get_type(content_type, env))
00102
00104 #ifdef __cplusplus
00105 }
00106 #endif
00107 #endif