xml_schema_attribute_group.h

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

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