xml_schema_annotation.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
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 /* XML_SCHEMA_ANNOTATION_H */

Generated on Wed Dec 20 20:34:50 2006 for Axis2/C by  doxygen 1.5.1