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

xml_schema_attribute_group.h

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_ATTRIBUTE_GROUP_H
00018 #define XML_SCHEMA_ATTRIBUTE_GROUP_H
00019 
00028 #include <axis2_qname.h>
00029 #include <xml_schema_particle.h>
00030 #include <xml_schema_obj_collection.h>
00031 #include <xml_schema_any_attribute.h>
00032 #include <xml_schema_content_processing.h>
00033 #include <xml_schema_simple_type.h>
00034 
00035 
00041 typedef struct xml_schema_attribute_group 
00042                     xml_schema_attribute_group_t;
00043 typedef struct xml_schema_attribute_group_ops 
00044                 xml_schema_attribute_group_ops_t;
00045 
00046 #ifdef __cplusplus
00047 extern "C"
00048 {
00049 #endif
00050 
00051 struct xml_schema_attribute_group_ops
00052 {
00053     axis2_status_t (AXIS2_CALL *
00054     free) (
00055             void *attr_grp,
00056             const axis2_env_t *env);
00057             
00058     xml_schema_types_t (AXIS2_CALL *
00059     get_type)(
00060             void *attr_grp,
00061             const axis2_env_t *env);
00062           
00063     axis2_hash_t* (AXIS2_CALL *
00064     super_objs)(
00065             void *attr_grp,
00066             const axis2_env_t *env);
00067                                       
00068 
00069     xml_schema_annotated_t *(AXIS2_CALL *
00070     get_base_impl)(
00071             void *attr_grp,
00072             const axis2_env_t *env);
00073     
00074     xml_schema_any_attribute_t* (AXIS2_CALL *
00075     get_any_attribute)(
00076             void *attr_grp,
00077             const axis2_env_t *env);
00078 
00079     axis2_status_t (AXIS2_CALL *
00080     set_any_attribute)(
00081             void *attr_grp,
00082             const axis2_env_t *env,
00083             xml_schema_any_attribute_t* any_attr);  
00084     
00085     xml_schema_obj_collection_t* (AXIS2_CALL *
00086     get_attributes)(void *attr_grp,
00087                     const axis2_env_t *env);
00088 
00089     axis2_status_t (AXIS2_CALL *
00090     set_attributes)(void *attr_grp,
00091                      const axis2_env_t *env,
00092                      xml_schema_obj_collection_t* attributes);
00093 
00094     axis2_char_t* (AXIS2_CALL *
00095     get_name)(void *attr_grp,
00096               const axis2_env_t *env);
00097               
00098     axis2_status_t (AXIS2_CALL *
00099     set_name)(void *attr_grp,
00100               const axis2_env_t *env,
00101               axis2_char_t *name);
00102               
00103 };
00104 
00105 struct xml_schema_attribute_group
00106 {
00107     xml_schema_annotated_t base;
00108     xml_schema_attribute_group_ops_t *ops;
00109 };
00110 
00111 AXIS2_EXTERN xml_schema_attribute_group_t * AXIS2_CALL
00112 xml_schema_attribute_group_create(const axis2_env_t *env);
00113 
00114 /******************************* Macros *************************************************/ 
00115  
00116 #define XML_SCHEMA_ATTRIBUTE_GROUP_FREE(attr_grp, env) \
00117       (((xml_schema_attribute_group_t *) attr_grp)->ops->free(attr_grp, env))
00118 
00119 #define XML_SCHEMA_ATTRIBUTE_GROUP_GET_BASE_IMPL(attr_grp, env) \
00120       (((xml_schema_attribute_group_t *) attr_grp)->ops->get_base_impl(attr_grp, env))
00121 
00122 #define XML_SCHEMA_ATTRIBUTE_GROUP_GET_TYPE(attr_grp, env) \
00123       (((xml_schema_attribute_group_t *) attr_grp)->ops->get_type(attr_grp, env))
00124       
00125 #define XML_SCHEMA_ATTRIBUTE_GROUP_SUPER_OBJS(attr_grp, env) \
00126       (((xml_schema_attribute_group_t *) attr_grp)->ops->super_objs(attr_grp, env))
00127       
00128 
00129 #define XML_SCHEMA_ATTRIBUTE_GROUP_GET_ANY_ATTRIBUTE(attr_grp, env) \
00130       (((xml_schema_attribute_group_t *) attr_grp)->ops->\
00131           get_any_attribute(attr_grp, env))
00132 
00133 #define XML_SCHEMA_ATTRIBUTE_GROUP_SET_ANY_ATTRIBUTE(attr_grp, env, any_attr) \
00134       (((xml_schema_attribute_group_t *) attr_grp)->ops->\
00135           set_any_attribute(attr_grp, env, any_attr))
00136 
00137 #define XML_SCHEMA_ATTRIBUTE_GROUP_SET_ATTRIBUTES(attr_grp, env, attrs) \
00138       (((xml_schema_attribute_group_t *) attr_grp)->ops->\
00139           set_attributes(attr_grp, env, attrs))
00140 
00141 #define XML_SCHEMA_ATTRIBUTE_GROUP_GET_ATTRIBUTES(attr_grp, env) \
00142       (((xml_schema_attribute_group_t *) attr_grp)->ops->\
00143           get_attributes(attr_grp, env))
00144 
00145 #define XML_SCHEMA_ATTRIBUTE_GROUP_GET_NAME(attr_grp, env) \
00146       (((xml_schema_attribute_group_t *) attr_grp)->ops->\
00147           get_name(attr_grp, env))
00148           
00149 #define XML_SCHEMA_ATTRIBUTE_GROUP_SET_NAME(attr_grp, env, name) \
00150       (((xml_schema_attribute_group_t *) attr_grp)->ops->\
00151           set_name(attr_grp, env, name))
00152 
00153 /******************************* end macros ***********************************************/
00155 #ifdef __cplusplus
00156 }
00157 #endif
00158 #endif /* XML_SCHEMA_ATTRIBUTE_GROUP_H */

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