Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Examples

xml_schema_annotation.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef XML_SCHEMA_ANNOTATION_H
00018 #define XML_SCHEMA_ANNOTATION_H
00019 
00025 #include <xml_schema_defines.h>
00026 #include <xml_schema_obj.h>
00027 #include <xml_schema_obj_collection.h>
00028 #include <axis2_hash.h>
00029 
00035 typedef struct xml_schema_annotation xml_schema_annotation_t;
00036 typedef struct xml_schema_annotation_ops xml_schema_annotation_ops_t;
00037 
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042 
00043 struct xml_schema_annotation_ops
00044 {
00049     axis2_status_t (AXIS2_CALL *
00050     free) (void *annotation,
00051             const axis2_env_t *env);
00052     
00053     axis2_hash_t *(AXIS2_CALL *
00054     super_objs) (
00055             void *annotation,
00056             const axis2_env_t *env);
00057 
00058     xml_schema_types_t (AXIS2_CALL *
00059     get_type) (
00060             void *annotation,
00061             const axis2_env_t *env);
00062 
00063     xml_schema_obj_t *(AXIS2_CALL *
00064     get_base_impl) (void *annotation,
00065                         const axis2_env_t *env);
00066     
00067     xml_schema_obj_collection_t *(AXIS2_CALL *
00068     get_items)(void *annotation,
00069                 const axis2_env_t *env);
00070     
00071 };
00072 
00073 struct xml_schema_annotation
00074 {
00075     xml_schema_obj_t base;
00076     xml_schema_annotation_ops_t *ops;
00077 };
00078 
00079 AXIS2_EXTERN xml_schema_annotation_t * AXIS2_CALL
00080 xml_schema_annotation_create(const axis2_env_t *env);
00081 
00082 /***************** Macros *****************************************/
00083 
00084 #define XML_SCHEMA_ANNOTATION_FREE(annotation, env) \
00085       (((xml_schema_annotation_t *) annotation)->ops->\
00086             free(annotation, env))
00087 
00088 #define XML_SCHEMA_ANNOTATION_SUPER_OBJS(annotation, env) \
00089       (((xml_schema_annotation_t *) annotation)->ops->\
00090             super_objs(annotation, env))
00091 
00092 #define XML_SCHEMA_ANNOTATION_GET_TYPE(annotation, env) \
00093       (((xml_schema_annotation_t *) annotation)->ops->\
00094             get_type(annotation, env))
00095 
00096 #define XML_SCHEMA_ANNOTATION_GET_ITEMS(annotation, env) \
00097       (((xml_schema_annotation_t *) annotation)->ops->\
00098             get_items(annotation, env))
00099 
00100 #define XML_SCHEMA_ANNOTATION_GET_BASE_IMPL(annotation, env) \
00101       (((xml_schema_annotation_t *) annotation)->ops->\
00102             get_base_impl(annotation, env))
00103 
00104 /************************ end macros *******************************/
00106 #ifdef __cplusplus
00107 }
00108 #endif
00109 #endif /* XML_SCHEMA_ANNOTATION_H */

Generated on Fri Jun 16 18:02:32 2006 for Axis2/C by  doxygen 1.4.2