xml_schema_complex_content_restriction.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_COMPLEX_CONTENT_RESTRICTION_H
00018 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_H
00019 
00024 #include <xml_schema_annotated.h>
00025 #include <xml_schema_obj_collection.h>
00026 #include <xml_schema_any_attribute.h>
00027 #include <xml_schema_simple_type.h>
00028 #include <axis2_hash.h>
00029 #include <axis2_qname.h>
00030 
00036 #ifdef __cplusplus
00037 extern "C"
00038 {
00039 #endif
00040 
00041 typedef struct xml_schema_complex_content_restriction 
00042                 xml_schema_complex_content_restriction_t;
00043                 
00044 typedef struct xml_schema_complex_content_restriction_ops 
00045                 xml_schema_complex_content_restriction_ops_t;
00046 
00047 struct xml_schema_complex_content_restriction_ops
00048 {
00049     axis2_status_t (AXIS2_CALL *
00050     free)(void *cmp_content_res,
00051            const axis2_env_t *env);
00052 
00053     xml_schema_annotated_t *(AXIS2_CALL *
00054     get_base_impl)(
00055             void *cmp_content_res,
00056             const axis2_env_t *env);
00057             
00058     axis2_hash_t* (AXIS2_CALL *
00059     super_objs)(
00060             void *cmp_content_res,
00061             const axis2_env_t *env);
00062             
00063     xml_schema_types_t (AXIS2_CALL *
00064     get_type)(
00065             void *cmp_content_res,
00066             const axis2_env_t *env);                        
00067 
00068     xml_schema_any_attribute_t* (AXIS2_CALL *
00069     get_any_attribute)(
00070             void *cmp_content_res,
00071             const axis2_env_t *env);
00072     
00073     axis2_status_t (AXIS2_CALL *
00074     set_any_attribute)(
00075             void *cmp_content_res,
00076             const axis2_env_t *env,
00077             xml_schema_any_attribute_t *any_attr);
00078     
00079     xml_schema_obj_collection_t* (AXIS2_CALL *
00080     get_attributes)(
00081             void *cmp_content_res,
00082             const axis2_env_t *env);
00083             
00084     axis2_qname_t* (AXIS2_CALL*
00085     get_base_type_name)(
00086             void *cmp_content_res,
00087             const axis2_env_t *env);
00088             
00089     axis2_status_t (AXIS2_CALL *
00090     set_base_type_name)(
00091             void *cmp_content_res,
00092             const axis2_env_t *env,
00093             axis2_qname_t *qname); 
00094             
00095     xml_schema_particle_t* (AXIS2_CALL *
00096     get_particle)(
00097             void *cmp_content_res,
00098             const axis2_env_t *env);
00099                   
00100     axis2_status_t (AXIS2_CALL *
00101     set_particle)(
00102             void *cmp_content_res,
00103             const axis2_env_t *env,
00104             xml_schema_particle_t *particle);
00105                   
00106     axis2_char_t* (AXIS2_CALL *
00107     to_string)(
00108             void *cmp_content_res,
00109             const axis2_env_t *env,
00110             axis2_char_t *prefix,
00111             int tab);
00112 };
00113 
00114 struct xml_schema_complex_content_restriction
00115 {
00116     xml_schema_annotated_t base;
00117     xml_schema_complex_content_restriction_ops_t *ops;
00118 };
00119 
00123 AXIS2_EXTERN xml_schema_complex_content_restriction_t * AXIS2_CALL
00124 xml_schema_complex_content_restriction_create(const axis2_env_t *env);
00125 
00126 
00127 
00128 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_FREE(cmp_content_res, env) \
00129       (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00130       free(cmp_content_res, env))
00131 
00132 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_GET_BASE_IMPL(cmp_content_res, env) \
00133       (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00134           get_base_impl(cmp_content_res, env))
00135 
00136 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_GET_TYPE(cmp_content_res, env) \
00137       (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00138           get_type(cmp_content_res, env))
00139 
00140 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_SUPER_OBJS(cmp_content_res, env) \
00141       (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00142           super_objs(cmp_content_res, env))
00143 
00144 
00145 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_GET_ANY_ATTRIBUTE(cmp_content_res, env) \
00146       (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00147           get_any_attribute(cmp_content_res, env))
00148 
00149 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_SET_ANY_ATTRIBUTE(cmp_content_res,\
00150          env, any_attr)\
00151       (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00152           set_any_attribute(cmp_content_res, env, any_attr ))
00153 
00154 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_GET_ATTRIBUTES(cmp_content_res, env) \
00155       (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00156           get_attributes(cmp_content_res, env))
00157             
00158 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_GET_BASE_TYPE_NAME(cmp_content_res, env)\
00159         (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00160             get_base_type_name(cmp_content_res, env))            
00161 
00162 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_SET_BASE_TYPE_NAME(cmp_content_res,\
00163          env, base_type_name) \
00164         (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00165             set_base_type_name(cmp_content_res, env, base_type_name))
00166             
00167 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_GET_PARTICLE(cmp_content_res, env) \
00168         (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00169             get_particle(cmp_content_res, env))
00170             
00171 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_SET_PARTICLE(cmp_content_res, env, particle) \
00172         (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00173             set_particle(cmp_content_res, env, particle))
00174                         
00175 #define XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_TO_STRING(cmp_content_res, env) \
00176         (((xml_schema_complex_content_restriction_t *) cmp_content_res)->ops->\
00177             to_string(cmp_content_res, env))
00178 
00179 #ifdef __cplusplus
00180 }
00181 #endif
00182 #endif /* XML_SCHEMA_COMPLEX_CONTENT_RESTRICTION_H */

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