xml_schema_content_type.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_CONTENT_TYPE_H
00019 #define XML_SCHEMA_CONTENT_TYPE_H
00020 
00029 #include <xml_schema_enum.h>
00030 
00031 
00032 
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037 
00043 typedef struct xml_schema_content_type 
00044                     xml_schema_content_type_t;
00045 typedef struct xml_schema_content_type_ops 
00046                     xml_schema_content_type_ops_t;
00047 
00048 struct xml_schema_content_type_ops
00049 {
00054     axis2_status_t (AXIS2_CALL *
00055     free) (void *content_type,
00056             const axis2_env_t *env);
00057             
00058     axis2_hash_t *(AXIS2_CALL *
00059     super_objs) (void *content_type,
00060             const axis2_env_t *env);
00061 
00062     xml_schema_types_t (AXIS2_CALL *
00063     get_type) (void *content_type,
00064             const axis2_env_t *env);                
00065 
00066     xml_schema_enum_t *(AXIS2_CALL *
00067     get_base_impl) (void *content_type,
00068                     const axis2_env_t *env);
00069     
00070     axis2_array_list_t *(AXIS2_CALL *
00071     get_values)(void *content_type,
00072                 const axis2_env_t *env);
00073     
00074 };
00075 
00076 struct xml_schema_content_type
00077 {
00078     xml_schema_enum_t base;
00079     xml_schema_content_type_ops_t *ops;
00080 };
00081 
00082 AXIS2_EXTERN xml_schema_content_type_t * AXIS2_CALL
00083 xml_schema_content_type_create(const axis2_env_t *env,
00084                                     axis2_char_t* value);
00085 
00086 /************************* Macros ************************************************/
00087 #define XML_SCHEMA_CONTENT_TYPE_FREE(content_type, env) \
00088       (((xml_schema_content_type_t *) content_type)->ops->free(content_type, env))
00089 
00090 #define XML_SCHEMA_CONTENT_TYPE_GET_BASE_IMPL(content_type, env) \
00091       (((xml_schema_content_type_t *) content_type)->ops->get_base_impl(content_type, env))
00092 
00093 #define XML_SCHEMA_CONTENT_TYPE_GET_VALUES(content_type, env) \
00094       (((xml_schema_content_type_t *) content_type)->ops->values(content_type, env))
00095 
00096 #define XML_SCHEMA_CONTENT_TYPE_SUPER_OBJS(content_type, env) \
00097         (((xml_schema_content_type_t *) content_type)->ops->super_objs(content_type, env))
00098         
00099 #define XML_SCHEMA_CONTENT_TYPE_GET_TYPE(content_type, env) \
00100         (((xml_schema_content_type_t *) content_type) \
00101          content_type)->ops->get_type(content_type, env))        
00102 
00104 #ifdef __cplusplus
00105 }
00106 #endif
00107 #endif /* XML_SCHEMA_CONTENT_TYPE_H */

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