Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Examples

xml_schema_any_attribute.h

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_ANY_ATTRIBUTE_H
00018 #define XML_SCHEMA_ANY_ATTRIBUTE_H
00019 
00029 #include <xml_schema_particle.h>
00030 #include <xml_schema_content_processing.h>
00031 
00037 typedef struct xml_schema_any_attribute 
00038                     xml_schema_any_attribute_t;
00039 typedef struct xml_schema_any_attribute_ops 
00040                 xml_schema_any_attribute_ops_t;
00041 
00042 #ifdef __cplusplus
00043 extern "C"
00044 {
00045 #endif
00046 
00047 struct xml_schema_any_attribute_ops
00048 {
00053     axis2_status_t (AXIS2_CALL *
00054     free) (void *any_attr,
00055             const axis2_env_t *env);
00056             
00057     xml_schema_types_t (AXIS2_CALL *
00058     get_type)(void *any_attr,
00059           const axis2_env_t *env);
00060           
00061     axis2_hash_t* (AXIS2_CALL *
00062     super_objs)(void *any_attr,
00063                 const axis2_env_t *env);
00064                                       
00065 
00066     xml_schema_annotated_t *(AXIS2_CALL *
00067     get_base_impl) (void *any_attr,
00068                     const axis2_env_t *env);
00069     
00070     axis2_char_t *(AXIS2_CALL *
00071     get_namespace)(void *any_attr,
00072                     const axis2_env_t *env);
00073 
00074     axis2_status_t (AXIS2_CALL *
00075     set_namespace) (void *any_attr,
00076                     const axis2_env_t *env,
00077                     axis2_char_t *ns);
00078 
00079     struct xml_schema_content_processing *(AXIS2_CALL *
00080     get_process_content) (void *any_attr,
00081                           const axis2_env_t *env);
00082 
00083     axis2_status_t (AXIS2_CALL *
00084     set_process_content)(void *any_attr,
00085                         const axis2_env_t *env,
00086                         struct xml_schema_content_processing *process_content);
00087 };
00088 
00089 struct xml_schema_any_attribute
00090 {
00091     xml_schema_annotated_t base;
00092     xml_schema_any_attribute_ops_t *ops;
00093 };
00094 
00095 AXIS2_EXTERN xml_schema_any_attribute_t * AXIS2_CALL
00096 xml_schema_any_attribute_create(const axis2_env_t *env);
00097 
00108 /******************************* Macros *************************************************/ 
00109  
00110 #define XML_SCHEMA_ANY_ATTRIBUTE_FREE(any_attr, env) \
00111       (((xml_schema_any_attribute_t *) any_attr)->ops->free(any_attr, env))
00112 
00113 #define XML_SCHEMA_ANY_ATTRIBUTE_GET_BASE_IMPL(any_attr, env) \
00114       (((xml_schema_any_attribute_t *) any_attr)->ops->get_base_impl(any_attr, env))
00115 
00116 
00117 #define XML_SCHEMA_ANY_ATTRIBUTE_GET_TYPE(any_attr, env) \
00118       (((xml_schema_any_attribute_t *) any_attr)->ops->get_type(any_attr, env))
00119       
00120       
00121 #define XML_SCHEMA_ANY_ATTRIBUTE_SUPER_OBJS(any_attr, env) \
00122       (((xml_schema_any_attribute_t *) any_attr)->ops->super_objs(any_attr, env))
00123       
00124       
00125 #define XML_SCHEMA_ANY_ATTRIBUTE_GET_NAMESPACE(any_attr, env) \
00126       (((xml_schema_any_attribute_t *) any_attr)->ops->get_namespace(any_attr, env))
00127 
00128 #define XML_SCHEMA_ANY_ATTRIBUTE_SET_NAMESPACE(any_attr, env, namespc) \
00129       (((xml_schema_any_attribute_t *) any_attr)->ops->set_namespace(any_attr, env, namespc))
00130 
00131 #define XML_SCHEMA_ANY_ATTRIBUTE_GET_PROCESS_CONTENT(any_attr, env) \
00132       (((xml_schema_any_attribute_t *) any_attr)->ops->get_process_content(any_attr, env))
00133 
00134 #define XML_SCHEMA_ANY_ATTRIBUTE_SET_PROCESS_CONTENT(any_attr, env, process_content) \
00135       (((xml_schema_any_attribute_t *) any_attr)->ops->set_process_content(any_attr, env, process_content))
00136 
00137 /******************************* end macros ***********************************************/
00139 #ifdef __cplusplus
00140 }
00141 #endif
00142 #endif /* XML_SCHEMA_ANY_ATTRIBUTE_H */

Generated on Fri Jun 16 18:02:32 2006 for Axis2/C by  doxygen 1.4.2