| /* |
| * Copyright 2004,2005 The Apache Software Foundation. |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| #ifndef XML_SCHEMA_ANY_H |
| #define XML_SCHEMA_ANY_H |
| |
| /** |
| * @file xml_schema_any.h |
| * @brief Axis2 Xml Schema Any Interface |
| * Enables any element from the specified namespace or namespaces |
| * to appear in the containing complexType element. Represents the |
| * World Wide Web Consortium (W3C) any element. |
| * |
| */ |
| |
| #include <xml_schema_defines.h> |
| #include <xml_schema_particle.h> |
| #include <xml_schema_content_processing.h> |
| |
| |
| #ifdef __cplusplus |
| extern "C" |
| { |
| #endif |
| |
| /** @defgroup xml_schema_any Xml Schema Any |
| * @ingroup xml_schema |
| * @{ |
| */ |
| |
| typedef struct xml_schema_any xml_schema_any_t; |
| typedef struct xml_schema_any_ops xml_schema_any_ops_t; |
| struct xml_schema_content_processing_t; |
| |
| |
| struct xml_schema_any_ops |
| { |
| /** |
| * Deallocate memory |
| * @return status code |
| */ |
| axis2_status_t (AXIS2_CALL * |
| free) ( |
| void *any, |
| const axis2_env_t *env); |
| |
| axis2_hash_t *(AXIS2_CALL * |
| super_objs) ( |
| void *any, |
| const axis2_env_t *env); |
| |
| xml_schema_types_t (AXIS2_CALL * |
| get_type) ( |
| void *any, |
| const axis2_env_t *env); |
| |
| xml_schema_particle_t *(AXIS2_CALL * |
| get_base_impl) (void *any, |
| const axis2_env_t *env); |
| |
| axis2_char_t *(AXIS2_CALL * |
| get_namespace)(void *any, |
| const axis2_env_t *env); |
| |
| axis2_status_t (AXIS2_CALL * |
| set_namespace) (void *any, |
| const axis2_env_t *env, |
| axis2_char_t *ns); |
| |
| xml_schema_content_processing_t *(AXIS2_CALL * |
| get_process_content) (void *any, |
| const axis2_env_t *env); |
| |
| axis2_status_t (AXIS2_CALL * |
| set_process_content)( |
| void *any, |
| const axis2_env_t *env, |
| xml_schema_content_processing_t *process_content); |
| }; |
| |
| struct xml_schema_any |
| { |
| xml_schema_particle_t base; |
| xml_schema_any_ops_t *ops; |
| }; |
| |
| AXIS2_EXTERN xml_schema_any_t * AXIS2_CALL |
| xml_schema_any_create(const axis2_env_t *env); |
| |
| /** |
| * This method is internal to Axis2 C. It is called from Child Constructor |
| |
| AXIS2_EXTERN axis2_status_t AXIS2_CALL |
| xml_schema_any_resolve_methods( |
| xml_schema_any_t *any, |
| const axis2_env_t *env, |
| xml_schema_any_t *any_impl, |
| axis2_hash_t *methods); |
| */ |
| /************************ Macros *******************************************/ |
| |
| #define XML_SCHEMA_ANY_FREE(any, env) \ |
| (((xml_schema_any_t *) any)->ops->free(any, env)) |
| |
| #define XML_SCHEMA_ANY_SUPER_OBJS(any, env) \ |
| (((xml_schema_any_t *) any)->ops->super_objs(any, env)) |
| |
| #define XML_SCHEMA_ANY_GET_TYPE(any, env) \ |
| (((xml_schema_any_t *) any)->ops->get_type(any, env)) |
| |
| #define XML_SCHEMA_ANY_GET_BASE_IMPL(any, env) \ |
| (((xml_schema_any_t *) any)->ops->get_base_impl(any, env)) |
| |
| #define XML_SCHEMA_ANY_GET_NAMESPACE(any, env) \ |
| (((xml_schema_any_t *) any)->ops->get_namespace(any, env)) |
| |
| #define XML_SCHEMA_ANY_SET_NAMESPACE(any, env, namespc) \ |
| (((xml_schema_any_t *) any)->ops->set_namespace(any, env, namespc)) |
| |
| #define XML_SCHEMA_ANY_GET_PROCESS_CONTENT(any, env) \ |
| (((xml_schema_any_t *) any)->ops->get_process_content(any, env)) |
| |
| #define XML_SCHEMA_ANY_SET_PROCESS_CONTENT(any, env, process_content) \ |
| (((xml_schema_any_t *) any)->ops->set_process_content(any, env, process_content)) |
| |
| /*********************************** Macros ***************************************************/ |
| /** @} */ |
| #ifdef __cplusplus |
| } |
| #endif |
| #endif /* XML_SCHEMA_ANY_H */ |