00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef XML_SCHEMA_FORM_H
00018 #define XML_SCHEMA_FORM_H
00019
00028 #include <xml_schema_defines.h>
00029 #include <xml_schema_enum.h>
00030
00036 typedef struct xml_schema_form xml_schema_form_t;
00037 typedef struct xml_schema_form_ops xml_schema_form_ops_t;
00038
00039 #define XML_SCHEMA_FORM_QUALIFIED "qualified"
00040 #define XML_SCHEMA_FORM_UNQUALIFIED "unqualified"
00041 #define XML_SCHEMA_FORM_NONE "none"
00042
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047
00048 struct xml_schema_form_ops
00049 {
00050 axis2_status_t (AXIS2_CALL *
00051 free) (void *form,
00052 const axis2_env_t *env);
00053
00054 axis2_hash_t *(AXIS2_CALL *
00055 super_objs) (void *form,
00056 const axis2_env_t *env);
00057
00058 xml_schema_types_t (AXIS2_CALL *
00059 get_type) (void *form,
00060 const axis2_env_t *env);
00061
00062 xml_schema_enum_t *(AXIS2_CALL *
00063 get_base_impl) (void *form,
00064 const axis2_env_t *env);
00065
00066 axis2_array_list_t *(AXIS2_CALL *
00067 get_values)(void *form,
00068 const axis2_env_t *env);
00069
00070 };
00071
00072 struct xml_schema_form
00073 {
00074 xml_schema_enum_t base;
00075 xml_schema_form_ops_t *ops;
00076 };
00077
00078 AXIS2_EXTERN xml_schema_form_t * AXIS2_CALL
00079 xml_schema_form_create(const axis2_env_t *env,
00080 axis2_char_t* value);
00081
00082
00083
00084 #define XML_SCHEMA_FORM_FREE(form, env) \
00085 (((xml_schema_form_t *) form)->ops->free(form, env))
00086
00087 #define XML_SCHEMA_FORM_SUPER_OBJS(form, env) \
00088 (((xml_schema_form_t *) form)->ops->super_objs(form, env))
00089
00090 #define XML_SCHEMA_FORM_GET_TYPE(form, env) \
00091 (((xml_schema_form_t *) form)->ops->type(form, env))
00092
00093 #define XML_SCHEMA_FORM_GET_BASE_IMPL(form, env) \
00094 (((xml_schema_form_t *) form)->ops->get_base_impl(form, env))
00095
00096 #define XML_SCHEMA_FORM_GET_VALUES(form, env) \
00097 (((xml_schema_form_t *) form)->ops->values(form, env))
00098
00100 #ifdef __cplusplus
00101 }
00102 #endif
00103 #endif