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

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