00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef XML_SCHEMA_ANNOTATION_H
00019 #define XML_SCHEMA_ANNOTATION_H
00020
00031 #include <xml_schema_defines.h>
00032 #include <xml_schema_obj.h>
00033 #include <xml_schema_obj_collection.h>
00034 #include <axis2_hash.h>
00035
00036 #ifdef __cplusplus
00037 extern "C"
00038 {
00039 #endif
00040
00042 typedef struct xml_schema_annotation xml_schema_annotation_t;
00044 typedef struct xml_schema_annotation_ops xml_schema_annotation_ops_t;
00045
00046 struct xml_schema_annotation_ops
00047 {
00054 axis2_status_t (AXIS2_CALL *
00055 free) (
00056 void *annotation,
00057 const axis2_env_t *env);
00058
00066 axis2_hash_t *(AXIS2_CALL *
00067 super_objs) (
00068 void *annotation,
00069 const axis2_env_t *env);
00070
00077 xml_schema_types_t (AXIS2_CALL *
00078 get_type) (
00079 void *annotation,
00080 const axis2_env_t *env);
00087 xml_schema_obj_t *(AXIS2_CALL *
00088 get_base_impl) (
00089 void *annotation,
00090 const axis2_env_t *env);
00091
00098 xml_schema_obj_collection_t* (AXIS2_CALL *
00099 get_items)(
00100 void *annotation,
00101 const axis2_env_t *env);
00102
00103 };
00104
00108 struct xml_schema_annotation
00109 {
00110 xml_schema_obj_t base;
00111 xml_schema_annotation_ops_t *ops;
00112 };
00113
00119 AXIS2_EXTERN xml_schema_annotation_t * AXIS2_CALL
00120 xml_schema_annotation_create(const axis2_env_t *env);
00121
00124 #define XML_SCHEMA_ANNOTATION_FREE(annotation, env) \
00125 (((xml_schema_annotation_t *) annotation)->ops->\
00126 free(annotation, env))
00127
00130 #define XML_SCHEMA_ANNOTATION_SUPER_OBJS(annotation, env) \
00131 (((xml_schema_annotation_t *) annotation)->ops->\
00132 super_objs(annotation, env))
00133
00136 #define XML_SCHEMA_ANNOTATION_GET_TYPE(annotation, env) \
00137 (((xml_schema_annotation_t *) annotation)->ops->\
00138 get_type(annotation, env))
00139
00142 #define XML_SCHEMA_ANNOTATION_GET_ITEMS(annotation, env) \
00143 (((xml_schema_annotation_t *) annotation)->ops->\
00144 get_items(annotation, env))
00145
00148 #define XML_SCHEMA_ANNOTATION_GET_BASE_IMPL(annotation, env) \
00149 (((xml_schema_annotation_t *) annotation)->ops->\
00150 get_base_impl(annotation, env))
00151
00153 #ifdef __cplusplus
00154 }
00155 #endif
00156 #endif