xml_schema_group.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_GROUP_H
00018 #define XML_SCHEMA_GROUP_H
00019 
00029 #include <xml_schema_defines.h>
00030 #include <xml_schema_annotated.h>
00031 #include <axis2_hash.h>
00032 
00038 typedef struct xml_schema_group xml_schema_group_t;
00039 typedef struct xml_schema_group_ops xml_schema_group_ops_t;
00040 struct xml_schema_group_base;
00041 
00042 #ifdef __cplusplus
00043 extern "C"
00044 {
00045 #endif
00046 
00047 struct xml_schema_group_ops
00048 {
00053     axis2_status_t (AXIS2_CALL *
00054     free) (void *group,
00055             const axis2_env_t *env);
00056 
00057     axis2_hash_t *(AXIS2_CALL *
00058     super_objs) (void *group,
00059             const axis2_env_t *env);
00060 
00061     xml_schema_types_t (AXIS2_CALL *
00062     get_type) (void *group,
00063             const axis2_env_t *env);
00064 
00065     xml_schema_annotated_t *(AXIS2_CALL *
00066     get_base_impl) (void *group,
00067                     const axis2_env_t *env);
00068 
00069     axis2_char_t *(AXIS2_CALL *
00070     get_name)(void *group,
00071                 const axis2_env_t *env);
00072     
00073     axis2_status_t (AXIS2_CALL *
00074     set_name)(void *group,
00075                     const axis2_env_t *env,
00076                     axis2_char_t *name);
00077     
00078     struct xml_schema_group_base *(AXIS2_CALL *
00079     get_particle)(void *group,
00080                 const axis2_env_t *env);
00081     
00082     axis2_status_t (AXIS2_CALL *
00083     set_particle)(void *group,
00084                     const axis2_env_t *env,
00085                     struct xml_schema_group_base *particle);
00086 };
00087 
00088 struct xml_schema_group
00089 {
00090     xml_schema_annotated_t base;
00091     xml_schema_group_ops_t *ops;
00092 };
00093 
00097 AXIS2_EXTERN xml_schema_group_t * AXIS2_CALL
00098 xml_schema_group_create(const axis2_env_t *env);
00099 
00100 /**************************** Macros *************************************/
00101 #define XML_SCHEMA_GROUP_FREE(group, env) \
00102       (((xml_schema_group_t *) group)->ops->\
00103             free(group, env))
00104 
00105 #define XML_SCHEMA_GROUP_SUPER_OBJS(group, env) \
00106       (((xml_schema_group_t *) group)->ops->\
00107             super_objs(group, env))
00108 
00109 #define XML_SCHEMA_GROUP_GET_TYPE(group, env) \
00110       (((xml_schema_group_t *) group)->ops->\
00111             get_type(group, env))
00112 
00113 #define XML_SCHEMA_GROUP_GET_BASE_IMPL(group, env) \
00114       (((xml_schema_group_t *) group)->ops->\
00115             get_base_impl(group, env))
00116 
00117 #define XML_SCHEMA_GROUP_GET_NAME(group, env) \
00118       (((xml_schema_group_t *) group)->ops->\
00119             get_name(group, env))
00120 
00121 #define XML_SCHEMA_GROUP_SET_NAME(group, env, name) \
00122       (((xml_schema_group_t *) group)->ops->\
00123             set_name(group, env, name))
00124 
00125 #define XML_SCHEMA_GROUP_GET_PARTICLE(group, env) \
00126       (((xml_schema_group_t *) group)->ops->\
00127             get_particle(group, env))
00128 
00129 #define XML_SCHEMA_GROUP_SET_PARTICLE(group, env, particle) \
00130       (((xml_schema_group_t *) group)->ops->\
00131             set_particle(group, env, particle))
00132 
00134 #ifdef __cplusplus
00135 }
00136 #endif
00137 #endif /* XML_SCHEMA_GROUP_H */

Generated on Tue Oct 3 22:35:49 2006 for Axis2/C by  doxygen 1.4.7