xml_schema_simple_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_SIMPLE_CONTENT_RESTRICTION_H
00018 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_H
00019 
00029 #include <xml_schema_annotated.h>
00030 #include <xml_schema_obj_collection.h>
00031 #include <xml_schema_any_attribute.h>
00032 #include <xml_schema_simple_type.h>
00033 #include <axis2_hash.h>
00034 #include <axis2_qname.h>
00035 
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045 
00046 typedef struct xml_schema_simple_content_restriction 
00047                 xml_schema_simple_content_restriction_t;
00048                 
00049 typedef struct xml_schema_simple_content_restriction_ops 
00050                 xml_schema_simple_content_restriction_ops_t;
00051 
00052 struct xml_schema_simple_content_restriction_ops
00053 {
00054     axis2_status_t (AXIS2_CALL *
00055     free) (void *sim_content_res,
00056            const axis2_env_t *env);
00057 
00058     xml_schema_annotated_t *(AXIS2_CALL *
00059     get_base_impl)(
00060             void *sim_content_res,
00061             const axis2_env_t *env);
00062             
00063     axis2_hash_t* (AXIS2_CALL *
00064     super_objs)(
00065             void *sim_content_res,
00066             const axis2_env_t *env);
00067             
00068     xml_schema_types_t (AXIS2_CALL *
00069     get_type)(
00070             void *sim_content_res,
00071             const axis2_env_t *env);                        
00072 
00073     xml_schema_any_attribute_t* (AXIS2_CALL *
00074     get_any_attribute)(
00075             void *sim_content_res,
00076             const axis2_env_t *env);
00077     
00078     axis2_status_t (AXIS2_CALL *
00079     set_any_attribute)(
00080             void *sim_content_res,
00081             const axis2_env_t *env,
00082             xml_schema_any_attribute_t *any_attr);
00083     
00084     xml_schema_obj_collection_t* (AXIS2_CALL *
00085     get_attributes)(
00086             void *sim_content_res,
00087             const axis2_env_t *env);
00088             
00089     axis2_qname_t* (AXIS2_CALL*
00090     get_base_type_name)(
00091             void *sim_content_res,
00092             const axis2_env_t *env);
00093             
00094     axis2_status_t (AXIS2_CALL *
00095     set_base_type_name)(
00096             void *sim_content_res,
00097             const axis2_env_t *env,
00098             axis2_qname_t *qname); 
00099             
00100     xml_schema_simple_type_t* (AXIS2_CALL*
00101     get_base_type)(
00102             void *sim_content_res,
00103             const axis2_env_t *env);
00104                    
00105     axis2_status_t (AXIS2_CALL *
00106     set_base_type)(
00107             void *sim_content_res,
00108             const axis2_env_t *env,
00109             xml_schema_simple_type_t *base_type); 
00110                    
00111     xml_schema_obj_collection_t* (AXIS2_CALL *
00112     get_facets)(
00113             void *sim_content_res,
00114             const axis2_env_t *env);                   
00115 };
00116 
00117 struct xml_schema_simple_content_restriction
00118 {
00119     xml_schema_annotated_t base;
00120     xml_schema_simple_content_restriction_ops_t *ops;
00121 };
00122 
00126 AXIS2_EXTERN xml_schema_simple_content_restriction_t * AXIS2_CALL
00127 xml_schema_simple_content_restriction_create(const axis2_env_t *env);
00128 
00129 
00130 
00131 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_FREE(sim_content_res, env) \
00132       (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00133       free(sim_content_res, env))
00134 
00135 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_GET_BASE_IMPL(sim_content_res, env) \
00136       (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00137       get_base_impl(sim_content_res, env))
00138 
00139 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_GET_ANY_ATTRIBUTE(sim_content_res, env) \
00140       (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00141         get_any_attribute(sim_content_res, env))
00142 
00143 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_SET_ANY_ATTRIBUTE(sim_content_res,\
00144          env, any_attr)\
00145       (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00146           set_content(sim_content_res, env, any_attr ))
00147 
00148 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_GET_ATTRIBUTES(sim_content_res, env) \
00149       (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00150           get_attributes(sim_content_res, env))
00151             
00152 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_GET_BASE_TYPE_NAME(sim_content_res, env)\
00153         (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00154             get_base_type_name(sim_content_res, env))            
00155     
00156 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_SET_BASE_TYPE_NAME(sim_content_res, env, base_type_name) \
00157         (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00158         set_base_type_name(sim_content_res, env, base_type_name))
00159                 
00160 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_SET_BASE_TYPE(sim_content_res, env, base_type) \
00161         (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00162             set_base_type(sim_content_res, env, base_type)) 
00163             
00164 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_GET_BASE_TYPE(sim_content_res, env)\
00165         (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00166             get_base_type(sim_content_res, env))
00167             
00168 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_GET_FACETS(sim_content_res, env)\
00169         (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00170             get_facets(sim_content_res, env))            
00171             
00172 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_SUPER_OBJS(sim_content_res, env) \
00173       (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00174       super_objs(sim_content_res, env))  
00175       
00176 #define XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_GET_TYPE(sim_content_res, env) \
00177       (((xml_schema_simple_content_restriction_t *)sim_content_res)->ops->\
00178       get_type(sim_content_res, env))                                          
00179 
00180 #ifdef __cplusplus
00181 }
00182 #endif
00183 #endif /* XML_SCHEMA_SIMPLE_CONTENT_RESTRICTION_H */

Generated on Tue Oct 3 18:21:11 2006 for Axis2/C by  doxygen 1.4.7