xml_schema_simple_content.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_H
00019 #define XML_SCHEMA_SIMPLE_CONTENT_H
00020 
00030 #include <xml_schema_annotated.h>
00031 #include <axis2_hash.h>
00032 
00040 #ifdef __cplusplus
00041 extern "C"
00042 {
00043 #endif
00044 
00045 typedef struct xml_schema_simple_content 
00046                 xml_schema_simple_content_t;
00047                 
00048 typedef struct xml_schema_simple_content_ops 
00049                 xml_schema_simple_content_ops_t;
00050 
00051 struct xml_schema_simple_content_ops
00052 {
00053     axis2_status_t (AXIS2_CALL *
00054     free) (void *sim_content,
00055             const axis2_env_t *env);
00056 
00057     xml_schema_annotated_t *(AXIS2_CALL *
00058     get_base_impl) (void *sim_content,
00059                     const axis2_env_t *env);
00060                     
00061     axis2_hash_t *(AXIS2_CALL *
00062     super_objs) (void *sim_content,
00063                 const axis2_env_t *env);
00064                     
00065     xml_schema_types_t (AXIS2_CALL *
00066     get_type) (void *sim_content,
00067            const axis2_env_t *env);                                        
00068 
00069     void* (AXIS2_CALL *
00070     get_content)(
00071             void *sim_content,
00072             const axis2_env_t *env);
00073     
00074     axis2_status_t (AXIS2_CALL *
00075     set_content)(
00076             void *sim_content,
00077             const axis2_env_t *env,
00078             void *content);
00079     
00080     axis2_char_t* (AXIS2_CALL*
00081     to_string)(void *sim_content,
00082                const axis2_env_t *env,
00083                axis2_char_t *prefix,
00084                int tab);
00085     
00086 };
00087 
00088 struct xml_schema_simple_content
00089 {
00090     xml_schema_annotated_t base;
00091     xml_schema_simple_content_ops_t *ops;
00092 };
00093 
00097 AXIS2_EXTERN xml_schema_simple_content_t * AXIS2_CALL
00098 xml_schema_simple_content_create(const axis2_env_t *env);
00099 
00100  
00101 #define XML_SCHEMA_SIMPLE_CONTENT_FREE(sim_content, env) \
00102       (((xml_schema_simple_content_t *) sim_content)->ops->\
00103             free(sim_content, env))
00104 
00105 #define XML_SCHEMA_SIMPLE_CONTENT_GET_BASE_IMPL(sim_content, env) \
00106       (((xml_schema_simple_content_t *) sim_content)->ops->\
00107             get_base_impl(sim_content, env))
00108 
00109 #define XML_SCHEMA_SIMPLE_CONTENT_SUPER_OBJS(sim_content, env) \
00110       (((xml_schema_simple_content_t *) sim_content)->ops->\
00111             super_objs(sim_content, env))
00112             
00113 #define XML_SCHEMA_SIMPLE_CONTENT_GET_TYPE(sim_content, env) \
00114       (((xml_schema_simple_content_t *) sim_content)->ops->\
00115             get_type(sim_content, env))
00116                         
00117 #define XML_SCHEMA_SIMPLE_CONTENT_GET_CONTENT(sim_content, env) \
00118       (((xml_schema_simple_content_t *) sim_content)->ops->\
00119             get_content(sim_content, env))
00120 
00121 #define XML_SCHEMA_SIMPLE_CONTENT_SET_CONTENT(sim_content, env, content) \
00122       (((xml_schema_simple_content_t *) sim_content)->ops->\
00123             set_content(sim_content, env, content))
00124 
00125 #define XML_SCHEMA_SIMPLE_CONTENT_TO_STRING(sim_content, env, prefix, tab) \
00126         (((xml_schema_simple_content_t *) sim_content)->ops->\
00127             to_string(sim_content, env, prefix, tab))            
00128 
00130 #ifdef __cplusplus
00131 }
00132 #endif
00133 #endif /* XML_SCHEMA_SIMPLE_CONTENT_H */

Generated on Wed Dec 20 20:14:11 2006 for Axis2/C by  doxygen 1.5.1