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

Generated on Thu Oct 26 21:11:25 2006 for Axis2/C by  doxygen 1.4.7