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

Generated on Wed Dec 20 20:14:11 2006 for Axis2/C by  doxygen 1.5.1