axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r397864 - in /webservices/axis2/trunk/c/modules/wsdl/woden: ./ src/ src/schema/ src/util/ src/wsdl20/ src/wsdl20/extensions/ src/xml/
Date Fri, 28 Apr 2006 11:22:28 GMT
Author: damitha
Date: Fri Apr 28 04:22:23 2006
New Revision: 397864

URL: http://svn.apache.org/viewcvs?rev=397864&view=rev
Log:
Added and moved files

Added:
    webservices/axis2/trunk/c/modules/wsdl/woden/src/Makefile.am
    webservices/axis2/trunk/c/modules/wsdl/woden/src/schema/Makefile.am
    webservices/axis2/trunk/c/modules/wsdl/woden/src/schema/imported_schema.c
      - copied unchanged from r397827, webservices/axis2/trunk/c/modules/wsdl/woden/imported_schema.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/schema/inlined_schema.c
      - copied unchanged from r397827, webservices/axis2/trunk/c/modules/wsdl/woden/inlined_schema.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/schema/schema.c
      - copied unchanged from r397827, webservices/axis2/trunk/c/modules/wsdl/woden/schema.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/util/Makefile.am
    webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/Makefile.am
    webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/Makefile.am
    webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/attr_extensible.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/component_exts.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/element_extensible.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/wsdl_element.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/Makefile.am
    webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/bool_attr.c
      - copied unchanged from r397827, webservices/axis2/trunk/c/modules/wsdl/woden/bool_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/qname_attr.c
      - copied unchanged from r397827, webservices/axis2/trunk/c/modules/wsdl/woden/qname_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/qname_list_attr.c
      - copied unchanged from r397827, webservices/axis2/trunk/c/modules/wsdl/woden/qname_list_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/qname_list_or_token_any_attr.c
      - copied unchanged from r397827, webservices/axis2/trunk/c/modules/wsdl/woden/qname_list_or_token_any_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/qname_or_token_any_attr.c
      - copied unchanged from r397827, webservices/axis2/trunk/c/modules/wsdl/woden/qname_or_token_any_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/string_attr.c
      - copied unchanged from r397827, webservices/axis2/trunk/c/modules/wsdl/woden/string_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/uri_attr.c
      - copied unchanged from r397827, webservices/axis2/trunk/c/modules/wsdl/woden/uri_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/xml_attr.c
      - copied unchanged from r397827, webservices/axis2/trunk/c/modules/wsdl/woden/xml_attr.c
Removed:
    webservices/axis2/trunk/c/modules/wsdl/woden/bool_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/imported_schema.c
    webservices/axis2/trunk/c/modules/wsdl/woden/inlined_schema.c
    webservices/axis2/trunk/c/modules/wsdl/woden/qname_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/qname_list_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/qname_list_or_token_any_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/qname_or_token_any_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/schema.c
    webservices/axis2/trunk/c/modules/wsdl/woden/string_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/uri_attr.c
    webservices/axis2/trunk/c/modules/wsdl/woden/xml_attr.c
Modified:
    webservices/axis2/trunk/c/modules/wsdl/woden/Makefile.am

Modified: webservices/axis2/trunk/c/modules/wsdl/woden/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/Makefile.am?rev=397864&r1=397863&r2=397864&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/Makefile.am (original)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/Makefile.am Fri Apr 28 04:22:23 2006
@@ -1,6 +1,25 @@
-TESTS =
-lib_LTLIBRARIES = libaxis2_woden.la
+SUBDIRS = src
 libaxis2_woden_la_SOURCES = \
+							schema.c \
+							imported_schema.c \
+							inlined_schema.c \
+							xml_attr.c \
+							qname_attr.c \
+							uri_attr.c \
+							qname_list_attr.c \
+							string_attr.c \
+							qname_list_or_token_any_attr.c \
+							qname_or_token_any_attr.c \
+							bool_attr.c \
+							ext_element.c \
+							element_extensible.c \
+							attr_extensible.c \
+							wsdl_element.c \
+							component_exts.c \
+							wsdl_component.c \
+							wsdl_obj.c \
+							documentation_element.c \
+							documentable_element.c \
 							nested_element.c
 
 INCLUDES = -I$(top_builddir)/include \

Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/Makefile.am?rev=397864&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/Makefile.am (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/Makefile.am Fri Apr 28 04:22:23 2006
@@ -0,0 +1 @@
+SUBDIRS = util schema xml wsdl20

Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/schema/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/schema/Makefile.am?rev=397864&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/schema/Makefile.am (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/schema/Makefile.am Fri Apr 28 04:22:23 2006
@@ -0,0 +1,8 @@
+TESTS =
+lib_LTLIBRARIES = libaxis2_woden_schema.la
+
+libaxis2_woden_schema_la_SOURCES = \
+
+INCLUDES = -I$(top_builddir)/include \
+            -I$(top_builddir)/modules/util \
+            -I$(top_builddir)/modules/platforms

Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/util/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/util/Makefile.am?rev=397864&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/util/Makefile.am (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/util/Makefile.am Fri Apr 28 04:22:23 2006
@@ -0,0 +1,8 @@
+TESTS =
+lib_LTLIBRARIES = libaxis2_woden_util.la
+
+libaxis2_woden_util_la_SOURCES = \
+
+INCLUDES = -I$(top_builddir)/include \
+            -I$(top_builddir)/modules/util \
+            -I$(top_builddir)/modules/platforms

Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/Makefile.am?rev=397864&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/Makefile.am (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/Makefile.am Fri Apr 28 04:22:23 2006
@@ -0,0 +1,8 @@
+SUBDIRS = extensions
+noinst_LTLIBRARIES = libaxis2_woden_wsdl20.la
+
+libaxis2_woden_wsdl20_la_SOURCES = \
+
+INCLUDES = -I$(top_builddir)/include \
+            -I$(top_builddir)/modules/util \
+            -I$(top_builddir)/modules/platforms

Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/Makefile.am?rev=397864&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/Makefile.am (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/Makefile.am Fri Apr 28 04:22:23 2006
@@ -0,0 +1,7 @@
+lib_LTLIBRARIES = libaxis2_woden_extensions.la
+
+libaxis2_woden_extensions_la_SOURCES = \
+
+INCLUDES = -I$(top_builddir)/include \
+            -I$(top_builddir)/modules/util \
+            -I$(top_builddir)/modules/platforms

Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/attr_extensible.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/attr_extensible.c?rev=397864&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/attr_extensible.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/attr_extensible.c Fri Apr 28 04:22:23 2006
@@ -0,0 +1,332 @@
+/*
+ * 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.
+ */
+ 
+#include <woden/axis2_woden_attr_extensible.h>
+#include <woden/axis2_woden_xml_attr.h>
+#include <axis2_url.h>
+#include <axis2_hash.h>
+
+typedef struct axis2_woden_attr_extensible_impl axis2_woden_attr_extensible_impl_t;
+
+/** 
+ * @brief Attribute Extensible Struct Impl
+ *	Axis2 Attribute Extensible  
+ */ 
+struct axis2_woden_attr_extensible_impl
+{
+    axis2_woden_attr_extensible_t extensible;
+    axis2_hash_t *f_ext_attrs;
+    axis2_array_list_t *temp_attrs;
+};
+
+#define INTF_TO_IMPL(extensible) \
+    ((axis2_woden_attr_extensible_impl_t *) extensible)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_attr_extensible_free(void *extensible,
+                axis2_env_t **envv);
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_attr_extensible_set_ext_attr(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_qname_t *attr_type,
+                                    axis2_woden_xml_attr_t *attr); 
+
+axis2_woden_xml_attr_t *AXIS2_CALL 
+axis2_woden_attr_extensible_get_ext_attr(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_qname_t *attr_type); 
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_attr_extensible_get_ext_attrs(void *extensible,
+                                                axis2_env_t **env); 
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_attr_extensible_get_ext_attrs_for_namespace(void *extensible,
+                                                        axis2_env_t **env,
+                                                        axis2_url_t *namespc);
+
+axis2_bool_t AXIS2_CALL 
+axis2_woden_attr_extensible_has_ext_attrs_for_namespace(
+                                                       void *extensible,
+                                                       axis2_env_t **env,
+                                                       axis2_url_t *namespc);
+
+
+
+AXIS2_DECLARE(axis2_woden_attr_extensible_t *)
+axis2_woden_attr_extensible_create(axis2_env_t **env)
+{
+    axis2_woden_attr_extensible_impl_t *extensible_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    extensible_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_attr_extensible_impl_t));
+
+    extensible_impl->f_ext_attrs = NULL;
+    extensible_impl->temp_attrs = NULL;
+
+    extensible_impl->extensible.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_attr_extensible_ops_t)); 
+    
+    extensible_impl->extensible.ops->free = 
+        axis2_woden_attr_extensible_free;
+    extensible_impl->extensible.ops->set_ext_attr = 
+        axis2_woden_attr_extensible_set_ext_attr;
+    extensible_impl->extensible.ops->get_ext_attr = 
+        axis2_woden_attr_extensible_get_ext_attr;
+    extensible_impl->extensible.ops->get_ext_attrs = 
+        axis2_woden_attr_extensible_get_ext_attrs;
+    extensible_impl->extensible.ops->get_ext_attrs_for_namespace = 
+        axis2_woden_attr_extensible_get_ext_attrs_for_namespace;
+    extensible_impl->extensible.ops->has_ext_attrs_for_namespace = 
+        axis2_woden_attr_extensible_has_ext_attrs_for_namespace;
+    
+    return &(extensible_impl->extensible);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_attr_extensible_free(void *extensible,
+                axis2_env_t **env)
+{
+    axis2_woden_attr_extensible_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    if(extensible_impl->f_ext_attrs)
+    {
+        axis2_hash_free(extensible_impl->f_ext_attrs, env);
+        extensible_impl->f_ext_attrs = NULL;
+    }
+    
+    if(extensible_impl->temp_attrs)
+    {
+        int size = 0, i = 0;
+        size = AXIS2_ARRAY_LIST_SIZE(extensible_impl->temp_attrs, env);
+        for(i = 0; i < size; i++)
+        {
+            void *ext_el = NULL;
+
+            ext_el = AXIS2_ARRAY_LIST_GET(extensible_impl->temp_attrs, env, i);
+            AXIS2_WODEN_XML_ATTR_FREE(ext_el, env);
+        }
+        AXIS2_ARRAY_LIST_FREE(extensible_impl->temp_attrs, env);
+        extensible_impl->temp_attrs = NULL;
+    }
+
+    if((&(extensible_impl->extensible))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(extensible_impl->extensible))->ops);
+        (&(extensible_impl->extensible))->ops = NULL;
+    }
+
+    if(extensible_impl)
+    {
+        AXIS2_FREE((*env)->allocator, extensible_impl);
+        extensible_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_attr_extensible_resolve_methods(axis2_woden_attr_extensible_t *extensible,
+                                axis2_env_t **env,
+                                axis2_woden_attr_extensible_t *extensible_impl,
+                                axis2_hash_t *methods)
+{
+    axis2_woden_attr_extensible_impl_t *extensible_impl_l = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, extensible_impl, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    
+    extensible_impl_l = (axis2_woden_attr_extensible_impl_t *) extensible_impl;
+    
+    extensible->ops = AXIS2_MALLOC((*env)->allocator, 
+            sizeof(axis2_woden_attr_extensible_ops_t));
+    extensible->ops->free = axis2_hash_get(methods, "free", AXIS2_HASH_KEY_STRING);
+    extensible->ops->set_ext_attr = 
+        extensible_impl_l->extensible.ops->set_ext_attr;
+    extensible->ops->get_ext_attr = 
+        extensible_impl_l->extensible.ops->get_ext_attr;
+    extensible->ops->get_ext_attrs = 
+        extensible_impl_l->extensible.ops->get_ext_attrs;
+    extensible->ops->get_ext_attrs_for_namespace = 
+        extensible_impl_l->extensible.ops->get_ext_attrs_for_namespace;
+    extensible->ops->has_ext_attrs_for_namespace = 
+        extensible_impl_l->extensible.ops->has_ext_attrs_for_namespace;
+
+    return AXIS2_SUCCESS;    
+}
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_attr_extensible_set_ext_attr(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_qname_t *attr_type,
+                                    axis2_woden_xml_attr_t *attr)
+{
+    axis2_woden_attr_extensible_impl_t *extensible_impl = NULL;
+    axis2_char_t *str_attr_type = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, attr_type, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+    
+    str_attr_type = AXIS2_QNAME_TO_STRING(attr_type, env);
+    if(attr)
+        axis2_hash_set(extensible_impl->f_ext_attrs, str_attr_type, 
+                AXIS2_HASH_KEY_STRING, attr);
+    else
+        axis2_hash_set(extensible_impl->f_ext_attrs, str_attr_type, 
+                AXIS2_HASH_KEY_STRING, NULL);
+    return AXIS2_SUCCESS;
+}
+
+axis2_woden_xml_attr_t *AXIS2_CALL 
+axis2_woden_attr_extensible_get_ext_attr(void *extensible,
+                                            axis2_env_t **env,
+                                            axis2_qname_t *attr_type) 
+{
+    axis2_woden_attr_extensible_impl_t *extensible_impl = NULL;
+    axis2_char_t *str_attr_type = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, attr_type, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    str_attr_type = AXIS2_QNAME_TO_STRING(attr_type, env);
+    return (axis2_woden_xml_attr_t *)axis2_hash_get(extensible_impl->f_ext_attrs, 
+            str_attr_type, AXIS2_HASH_KEY_STRING);
+}
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_attr_extensible_get_ext_attrs(void *extensible,
+                                                axis2_env_t **env) 
+{
+    axis2_woden_attr_extensible_impl_t *extensible_impl = NULL;
+    axis2_hash_index_t *index = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+ 
+    if(extensible_impl->temp_attrs)
+    {
+        int size = 0, i = 0;
+        size = AXIS2_ARRAY_LIST_SIZE(extensible_impl->temp_attrs, env);
+        for(i = 0; i < size; i++)
+        {
+            void *ext_el = NULL;
+
+            ext_el = AXIS2_ARRAY_LIST_GET(extensible_impl->temp_attrs, env, i);
+            AXIS2_WODEN_XML_ATTR_FREE(ext_el, env);
+        }
+        AXIS2_ARRAY_LIST_FREE(extensible_impl->temp_attrs, env);
+        extensible_impl->temp_attrs = NULL;
+    }
+    extensible_impl->temp_attrs = axis2_array_list_create(env, 0);
+    for (index = axis2_hash_first (extensible_impl->f_ext_attrs, env); index; 
+            index = axis2_hash_next (env, index))
+    {
+        void *value = NULL;
+        
+        axis2_hash_this (index, NULL, NULL, &value);
+        AXIS2_ARRAY_LIST_ADD(extensible_impl->temp_attrs, env, value);
+    }   
+    return extensible_impl->temp_attrs;
+}
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_attr_extensible_get_ext_attrs_for_namespace(void *extensible,
+                                                        axis2_env_t **env,
+                                                        axis2_url_t *namespc) 
+{
+    axis2_woden_attr_extensible_impl_t *extensible_impl = NULL;
+    axis2_char_t *str_namespc = NULL;
+    axis2_hash_index_t *index = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, namespc, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    str_namespc = AXIS2_URL_TO_EXTERNAL_FORM(namespc, env);
+    if(extensible_impl->temp_attrs)
+    {
+        int size = 0, i = 0;
+        size = AXIS2_ARRAY_LIST_SIZE(extensible_impl->temp_attrs, env);
+        for(i = 0; i < size; i++)
+        {
+            void *ext_el = NULL;
+
+            ext_el = AXIS2_ARRAY_LIST_GET(extensible_impl->temp_attrs, env, i);
+            AXIS2_WODEN_XML_ATTR_FREE(ext_el, env);
+        }
+        AXIS2_ARRAY_LIST_FREE(extensible_impl->temp_attrs, env);
+        extensible_impl->temp_attrs = NULL;
+    }
+
+    extensible_impl->temp_attrs = axis2_array_list_create(env, 0);
+    for (index = axis2_hash_first (extensible_impl->f_ext_attrs, env); index; 
+            index = axis2_hash_next (env, index))
+    {
+        void *value = NULL;
+        
+        axis2_hash_this (index, NULL, NULL, &value);
+        AXIS2_ARRAY_LIST_ADD(extensible_impl->temp_attrs, env, value);
+    }
+
+    return extensible_impl->temp_attrs;
+}
+
+axis2_bool_t AXIS2_CALL 
+axis2_woden_attr_extensible_has_ext_attrs_for_namespace(void *extensible,
+                                                            axis2_env_t **env,
+                                                            axis2_url_t *namespc)
+{
+    axis2_woden_attr_extensible_impl_t *extensible_impl = NULL;
+    axis2_bool_t result = AXIS2_FALSE;
+    axis2_char_t *str_namespc = NULL;
+    axis2_hash_index_t *index = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, namespc, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    str_namespc = AXIS2_URL_TO_EXTERNAL_FORM(namespc, env);
+    for (index = axis2_hash_first (extensible_impl->f_ext_attrs, env); index; 
+            index = axis2_hash_next (env, index))
+    {
+        void *v = NULL;
+        axis2_qname_t *key = NULL;
+        axis2_char_t *str_ns = NULL;
+        
+        axis2_hash_this (index, &v, NULL, NULL);
+        key = (axis2_qname_t *) v;
+        str_ns = AXIS2_QNAME_GET_URI(key, env);
+        if(0 == AXIS2_STRCMP(str_ns, str_namespc))
+        {
+            result = AXIS2_TRUE;
+            break;
+        }
+    }
+    return result;
+}
+
+

Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/component_exts.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/component_exts.c?rev=397864&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/component_exts.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/component_exts.c Fri Apr 28 04:22:23 2006
@@ -0,0 +1,157 @@
+/*
+ * 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.
+ */
+ 
+#include <woden/axis2_woden_component_exts.h>
+#include <woden/axis2_woden_wsdl_element.h>
+#include <axis2_url.h>
+#include <axis2_hash.h>
+
+typedef struct axis2_woden_component_exts_impl axis2_woden_component_exts_impl_t;
+
+/** 
+ * @brief Component Extensions Struct Impl
+ *	Axis2 Component Extensions  
+ */ 
+struct axis2_woden_component_exts_impl
+{
+    axis2_woden_component_exts_t component_exts;
+    axis2_woden_wsdl_element_t *f_parent_element;
+    axis2_url_t *f_namespc;
+};
+
+#define INTF_TO_IMPL(component_exts) ((axis2_woden_component_exts_impl_t *) component_exts)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_component_exts_free(void *component_exts,
+                axis2_env_t **envv);
+
+axis2_url_t *AXIS2_CALL
+axis2_woden_component_exts_get_namespace(void *component_exts,
+                                axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_component_exts_init(void *component_exts,
+                                axis2_env_t **env,
+                                axis2_woden_wsdl_element_t *parent_el,
+                                axis2_url_t *namespc);
+ 
+AXIS2_DECLARE(axis2_woden_component_exts_t *)
+axis2_woden_component_exts_create(axis2_env_t **env)
+{
+    axis2_woden_component_exts_impl_t *component_exts_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    component_exts_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_component_exts_impl_t));
+
+    component_exts_impl->f_parent_element = NULL;
+    component_exts_impl->f_namespc = NULL;
+
+    component_exts_impl->component_exts.ops = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_component_exts_ops_t)); 
+    
+    component_exts_impl->component_exts.ops->free = axis2_woden_component_exts_free;
+    component_exts_impl->component_exts.ops->init = axis2_woden_component_exts_init;
+    component_exts_impl->component_exts.ops->get_namespace = 
+        axis2_woden_component_exts_get_namespace;
+    
+    return &(component_exts_impl->component_exts);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_component_exts_free(void *component_exts,
+                axis2_env_t **env)
+{
+    axis2_woden_component_exts_impl_t *component_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    component_exts_impl = INTF_TO_IMPL(component_exts);
+
+    if(component_exts_impl->f_parent_element)
+    {
+        AXIS2_WODEN_ELEMENT_FREE(component_exts_impl->f_parent_element, env);
+        component_exts_impl->f_parent_element = NULL;
+    }
+    
+    if(component_exts_impl->f_namespc)
+    {
+        AXIS2_URL_FREE(component_exts_impl->f_namespc, env);
+        component_exts_impl->f_namespc = NULL;
+    }
+    
+    if((&(component_exts_impl->component_exts))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(component_exts_impl->component_exts))->ops);
+        (&(component_exts_impl->component_exts))->ops = NULL;
+    }
+
+    if(component_exts_impl)
+    {
+        AXIS2_FREE((*env)->allocator, component_exts_impl);
+        component_exts_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_component_exts_resolve_methods(axis2_woden_component_exts_t *component_exts,
+                                axis2_env_t **env,
+                                axis2_woden_component_exts_t *component_exts_impl,
+                                axis2_hash_t *methods)
+{
+    axis2_woden_component_exts_impl_t *component_exts_impl_l = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, component_exts_impl, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    
+    component_exts_impl_l = (axis2_woden_component_exts_impl_t *) component_exts_impl;
+    
+    component_exts->ops = AXIS2_MALLOC((*env)->allocator, 
+            sizeof(axis2_woden_component_exts_ops_t));
+    component_exts->ops->free = axis2_hash_get(methods, "free", AXIS2_HASH_KEY_STRING);
+    component_exts->ops->init = component_exts_impl_l->component_exts.ops->init;
+    component_exts->ops->get_namespace = 
+        component_exts_impl_l->component_exts.ops->get_namespace;
+
+    return AXIS2_SUCCESS;    
+}
+
+axis2_url_t *AXIS2_CALL
+axis2_woden_component_exts_get_namespace(void *component_exts,
+                                axis2_env_t **env)
+{
+    axis2_woden_component_exts_impl_t *component_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    component_exts_impl = INTF_TO_IMPL(component_exts);
+    return component_exts_impl->f_namespc;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_component_exts_init(void *component_exts,
+                                axis2_env_t **env,
+                                axis2_woden_wsdl_element_t *parent_el,
+                                axis2_url_t *namespc) 
+{
+    axis2_woden_component_exts_impl_t *component_exts_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    component_exts_impl = INTF_TO_IMPL(component_exts);
+    component_exts_impl->f_parent_element = parent_el;
+    component_exts_impl->f_namespc = namespc;
+    return AXIS2_SUCCESS;
+}

Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/element_extensible.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/element_extensible.c?rev=397864&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/element_extensible.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/extensions/element_extensible.c Fri Apr 28 04:22:23 2006
@@ -0,0 +1,305 @@
+/*
+ * 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.
+ */
+ 
+#include <woden/axis2_woden_element_extensible.h>
+#include <woden/axis2_woden_ext_element.h>
+#include <axis2_url.h>
+#include <axis2_hash.h>
+
+typedef struct axis2_woden_element_extensible_impl axis2_woden_element_extensible_impl_t;
+
+/** 
+ * @brief Element Extensible Struct Impl
+ *	Axis2 Element Extensible  
+ */ 
+struct axis2_woden_element_extensible_impl
+{
+    axis2_woden_element_extensible_t extensible;
+    axis2_array_list_t *f_ext_elements;
+    axis2_array_list_t *temp_elems;
+};
+
+#define INTF_TO_IMPL(extensible) \
+    ((axis2_woden_element_extensible_impl_t *) extensible)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_extensible_free(void *extensible,
+                axis2_env_t **envv);
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_extensible_add_ext_element(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_woden_ext_element_t *ext_el); 
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_extensible_remove_ext_element(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_woden_ext_element_t *ext_el); 
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_element_extensible_get_ext_elements(void *extensible,
+                                                axis2_env_t **env); 
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_element_extensible_get_ext_elements_of_type(void *extensible,
+                                                        axis2_env_t **env,
+                                                        axis2_qname_t *ext_type);
+
+axis2_bool_t AXIS2_CALL 
+axis2_woden_element_extensible_has_ext_elements_for_namespace(
+                                                       void *extensible,
+                                                       axis2_env_t **env,
+                                                       axis2_url_t *namespc);
+
+
+
+AXIS2_DECLARE(axis2_woden_element_extensible_t *)
+axis2_woden_element_extensible_create(axis2_env_t **env)
+{
+    axis2_woden_element_extensible_impl_t *extensible_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    extensible_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_element_extensible_impl_t));
+
+    extensible_impl->f_ext_elements = NULL;
+    extensible_impl->temp_elems = NULL;
+
+    extensible_impl->extensible.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_element_extensible_ops_t)); 
+    
+    extensible_impl->extensible.ops->free = 
+        axis2_woden_element_extensible_free;
+    extensible_impl->extensible.ops->add_ext_element = 
+        axis2_woden_element_extensible_add_ext_element;
+    extensible_impl->extensible.ops->remove_ext_element = 
+        axis2_woden_element_extensible_remove_ext_element;
+    extensible_impl->extensible.ops->get_ext_elements = 
+        axis2_woden_element_extensible_get_ext_elements;
+    extensible_impl->extensible.ops->get_ext_elements_of_type = 
+        axis2_woden_element_extensible_get_ext_elements_of_type;
+    extensible_impl->extensible.ops->has_ext_elements_for_namespace = 
+        axis2_woden_element_extensible_has_ext_elements_for_namespace;
+    
+    return &(extensible_impl->extensible);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_element_extensible_free(void *extensible,
+                axis2_env_t **env)
+{
+    axis2_woden_element_extensible_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    if(extensible_impl->f_ext_elements)
+    {
+        AXIS2_ARRAY_LIST_FREE(extensible_impl->f_ext_elements, env);
+        extensible_impl->f_ext_elements = NULL;
+    }
+    
+    if(extensible_impl->temp_elems)
+    {
+        int size = 0, i = 0;
+        size = AXIS2_ARRAY_LIST_SIZE(extensible_impl->temp_elems, env);
+        for(i = 0; i < size; i++)
+        {
+            void *ext_el = NULL;
+
+            ext_el = AXIS2_ARRAY_LIST_GET(extensible_impl->temp_elems, env, i);
+            AXIS2_WODEN_XML_ATTR_FREE(ext_el, env);
+        }
+        AXIS2_ARRAY_LIST_FREE(extensible_impl->temp_elems, env);
+        extensible_impl->temp_elems = NULL;
+    }
+
+    if((&(extensible_impl->extensible))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(extensible_impl->extensible))->ops);
+        (&(extensible_impl->extensible))->ops = NULL;
+    }
+
+    if(extensible_impl)
+    {
+        AXIS2_FREE((*env)->allocator, extensible_impl);
+        extensible_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_element_extensible_resolve_methods(axis2_woden_element_extensible_t *extensible,
+                                axis2_env_t **env,
+                                axis2_woden_element_extensible_t *extensible_impl,
+                                axis2_hash_t *methods)
+{
+    axis2_woden_element_extensible_impl_t *extensible_impl_l = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, extensible_impl, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    
+    extensible_impl_l = (axis2_woden_element_extensible_impl_t *) extensible_impl;
+    
+    extensible->ops = AXIS2_MALLOC((*env)->allocator, 
+            sizeof(axis2_woden_element_extensible_ops_t));
+    extensible->ops->free = axis2_hash_get(methods, "free", AXIS2_HASH_KEY_STRING);
+    extensible->ops->add_ext_element = 
+        extensible_impl_l->extensible.ops->add_ext_element;
+    extensible->ops->remove_ext_element = 
+        extensible_impl_l->extensible.ops->remove_ext_element;
+    extensible->ops->get_ext_elements = 
+        extensible_impl_l->extensible.ops->get_ext_elements;
+    extensible->ops->get_ext_elements_of_type = 
+        extensible_impl_l->extensible.ops->get_ext_elements_of_type;
+    extensible->ops->has_ext_elements_for_namespace = 
+        extensible_impl_l->extensible.ops->has_ext_elements_for_namespace;
+
+    return AXIS2_SUCCESS;    
+}
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_extensible_add_ext_element(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_woden_ext_element_t *ext_el) 
+{
+    axis2_woden_element_extensible_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, ext_el, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+    
+    return AXIS2_ARRAY_LIST_ADD(extensible_impl->f_ext_elements, env, ext_el);
+}
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_element_extensible_remove_ext_element(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_woden_ext_element_t *ext_el) 
+{
+    axis2_woden_element_extensible_impl_t *extensible_impl = NULL;
+    int index = -1;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, ext_el, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    index = AXIS2_ARRAY_LIST_INDEX_OF(extensible_impl->f_ext_elements, env, ext_el);
+    AXIS2_ARRAY_LIST_REMOVE(extensible_impl->f_ext_elements, env, index);
+    return AXIS2_SUCCESS;
+}
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_element_extensible_get_ext_elements(void *extensible,
+                                                axis2_env_t **env) 
+{
+    axis2_woden_element_extensible_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+    
+    return extensible_impl->f_ext_elements;
+}
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_element_extensible_get_ext_elements_of_type(void *extensible,
+                                                        axis2_env_t **env,
+                                                        axis2_qname_t *ext_type) 
+{
+    axis2_woden_element_extensible_impl_t *extensible_impl = NULL;
+    int i = 0;
+    int size = 0;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, ext_type, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    if(extensible_impl->temp_elems)
+    {
+        int size = 0, i = 0;
+        size = AXIS2_ARRAY_LIST_SIZE(extensible_impl->temp_elems, env);
+        for(i = 0; i < size; i++)
+        {
+            void *ext_el = NULL;
+
+            ext_el = AXIS2_ARRAY_LIST_GET(extensible_impl->temp_elems, env, i);
+            AXIS2_WODEN_XML_ATTR_FREE(ext_el, env);
+        }
+        AXIS2_ARRAY_LIST_FREE(extensible_impl->temp_elems, env);
+        extensible_impl->temp_elems = NULL;
+    }
+
+    extensible_impl->temp_elems = axis2_array_list_create(env, 0);
+    size = AXIS2_ARRAY_LIST_SIZE(extensible_impl->f_ext_elements, env);
+    for(i = 0; i < size; i++)
+    {
+        axis2_woden_ext_element_t *ext_elem = NULL;
+        axis2_qname_t *ext_type_l = NULL;
+        
+        ext_elem = (axis2_woden_ext_element_t *)AXIS2_ARRAY_LIST_GET(
+                extensible_impl->f_ext_elements, env, i);
+        ext_type_l = AXIS2_WODEN_EXT_ELEMENT_GET_EXT_TYPE(ext_elem, env);
+        if(AXIS2_TRUE == AXIS2_QNAME_EQUALS(ext_type, env, ext_type_l))
+        {
+            AXIS2_ARRAY_LIST_ADD(extensible_impl->temp_elems, env, ext_elem);
+        }
+    }
+    return extensible_impl->temp_elems;
+}
+
+axis2_bool_t AXIS2_CALL 
+axis2_woden_element_extensible_has_ext_elements_for_namespace(void *extensible,
+                                                                axis2_env_t **env,
+                                                                axis2_url_t *namespc)
+{
+    axis2_woden_element_extensible_impl_t *extensible_impl = NULL;
+    axis2_bool_t result = AXIS2_FALSE;
+    axis2_char_t *ext_ns = NULL;
+    int i = 0;
+    int size = 0;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, namespc, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    ext_ns = AXIS2_URL_TO_EXTERNAL_FORM(namespc, env);
+    size = AXIS2_ARRAY_LIST_SIZE(extensible_impl->f_ext_elements, env);
+    for(i = 0; i < size; i++)
+    {
+        axis2_woden_ext_element_t *ext_elem = NULL;
+        axis2_qname_t *ext_type = NULL;
+        axis2_char_t *uri = NULL;
+        
+        ext_elem = (axis2_woden_ext_element_t *) AXIS2_ARRAY_LIST_GET(
+                extensible_impl->f_ext_elements, env, i);
+        ext_type = AXIS2_WODEN_EXT_ELEMENT_GET_EXT_TYPE(ext_elem, env);
+        uri = AXIS2_QNAME_GET_URI(ext_type, env);
+        if(0 == AXIS2_STRCMP(uri, ext_ns))
+        {
+            result = AXIS2_TRUE;
+            break;
+        }
+    }
+    return result;
+}
+
+

Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/wsdl_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/wsdl_element.c?rev=397864&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/wsdl_element.c (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/wsdl20/wsdl_element.c Fri Apr 28 04:22:23 2006
@@ -0,0 +1,405 @@
+/*
+ * 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.
+ */
+ 
+#include <woden/axis2_woden_wsdl_element.h>
+#include <woden/axis2_woden_element_extensible.h>
+#include <woden/axis2_woden_attr_extensible.h>
+#include <woden/axis2_woden_xml_attr.h>
+#include <woden/axis2_woden_ext_element.h>
+#include <axis2_url.h>
+#include <axis2_hash.h>
+
+typedef struct axis2_woden_wsdl_element_impl axis2_woden_wsdl_element_impl_t;
+
+/** 
+ * @brief Wsdl Element Struct Impl
+ *	Axis2 Wsdl Element  
+ */ 
+struct axis2_woden_wsdl_element_impl
+{
+    axis2_woden_wsdl_element_t extensible;
+    axis2_woden_attr_extensible_t *f_attr_ext;
+    axis2_woden_element_extensible_t *f_elem_ext;
+};
+
+#define INTF_TO_IMPL(extensible) \
+    ((axis2_woden_wsdl_element_impl_t *) extensible)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_wsdl_element_free(void *extensible,
+                axis2_env_t **envv);
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_wsdl_element_set_ext_attr(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_qname_t *attr_type,
+                                    axis2_woden_xml_attr_t *attr); 
+
+axis2_woden_xml_attr_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_attr(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_qname_t *attr_type); 
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_attrs(void *extensible,
+                                                axis2_env_t **env); 
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_attrs_for_namespace(void *extensible,
+                                                        axis2_env_t **env,
+                                                        axis2_url_t *namespc);
+
+axis2_bool_t AXIS2_CALL 
+axis2_woden_wsdl_element_has_ext_attrs_for_namespace(
+                                                       void *extensible,
+                                                       axis2_env_t **env,
+                                                       axis2_url_t *namespc);
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_wsdl_element_add_ext_element(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_woden_ext_element_t *ext_el); 
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_wsdl_element_remove_ext_element(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_woden_ext_element_t *ext_el); 
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_elements(void *extensible,
+                                                axis2_env_t **env); 
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_elements_of_type(void *extensible,
+                                                  axis2_env_t **env,
+                                                  axis2_qname_t *elem_type);
+
+axis2_bool_t AXIS2_CALL 
+axis2_woden_wsdl_element_has_ext_elements_for_namespace(
+                                                       void *extensible,
+                                                       axis2_env_t **env,
+                                                       axis2_url_t *namespc);
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_wsdl_element_add_ext_element(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_woden_ext_element_t *ext_el); 
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_wsdl_element_remove_ext_element(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_woden_ext_element_t *ext_el);
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_elements(void *extensible,
+                                            axis2_env_t **env); 
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_elements_of_type(void *extensible,
+                                                    axis2_env_t **env,
+                                                    axis2_qname_t *ext_type);
+
+axis2_bool_t AXIS2_CALL 
+axis2_woden_wsdl_element_has_ext_elements_for_namespace(void *extensible,
+                                                            axis2_env_t **env,
+                                                            axis2_url_t *namespc);
+
+
+AXIS2_DECLARE(axis2_woden_wsdl_element_t *)
+axis2_woden_wsdl_element_create(axis2_env_t **env)
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    extensible_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_wsdl_element_impl_t));
+
+    extensible_impl->f_attr_ext = NULL;
+    extensible_impl->f_elem_ext = NULL;
+
+    extensible_impl->f_attr_ext = axis2_woden_attr_extensible_create(env);
+    if(!extensible_impl->f_attr_ext)
+    {
+        return NULL;
+    }
+    extensible_impl->f_elem_ext = axis2_woden_element_extensible_create(env);
+    if(!extensible_impl->f_elem_ext)
+    {
+        return NULL;
+    }
+    extensible_impl->extensible.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_wsdl_element_ops_t)); 
+    
+    extensible_impl->extensible.ops->free = 
+        axis2_woden_wsdl_element_free;
+    extensible_impl->extensible.ops->set_ext_attr = 
+        axis2_woden_wsdl_element_set_ext_attr;
+    extensible_impl->extensible.ops->get_ext_attr = 
+        axis2_woden_wsdl_element_get_ext_attr;
+    extensible_impl->extensible.ops->get_ext_attrs = 
+        axis2_woden_wsdl_element_get_ext_attrs;
+    extensible_impl->extensible.ops->get_ext_attrs_for_namespace = 
+        axis2_woden_wsdl_element_get_ext_attrs_for_namespace;
+    extensible_impl->extensible.ops->has_ext_attrs_for_namespace = 
+        axis2_woden_wsdl_element_has_ext_attrs_for_namespace;
+    extensible_impl->extensible.ops->add_ext_element = 
+        axis2_woden_wsdl_element_add_ext_element;
+    extensible_impl->extensible.ops->remove_ext_element = 
+        axis2_woden_wsdl_element_remove_ext_element;
+    extensible_impl->extensible.ops->get_ext_elements = 
+        axis2_woden_wsdl_element_get_ext_elements;
+    extensible_impl->extensible.ops->get_ext_elements_of_type = 
+        axis2_woden_wsdl_element_get_ext_elements_of_type;
+    extensible_impl->extensible.ops->has_ext_elements_for_namespace = 
+        axis2_woden_wsdl_element_has_ext_elements_for_namespace;
+    
+    return &(extensible_impl->extensible);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_wsdl_element_free(void *extensible,
+                axis2_env_t **env)
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    if(extensible_impl->f_attr_ext)
+    {
+        AXIS2_WODEN_ATTR_EXTENSIBLE_FREE(extensible_impl->f_attr_ext, env);
+        extensible_impl->f_attr_ext = NULL;
+    }
+    
+    if(extensible_impl->f_elem_ext)
+    {
+        AXIS2_WODEN_ELEMENT_EXTENSIBLE_FREE(extensible_impl->f_elem_ext, env);
+        extensible_impl->f_elem_ext = NULL;
+    }
+
+    if((&(extensible_impl->extensible))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(extensible_impl->extensible))->ops);
+        (&(extensible_impl->extensible))->ops = NULL;
+    }
+
+    if(extensible_impl)
+    {
+        AXIS2_FREE((*env)->allocator, extensible_impl);
+        extensible_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_wsdl_element_resolve_methods(axis2_woden_wsdl_element_t *extensible,
+                                axis2_env_t **env,
+                                axis2_woden_wsdl_element_t *extensible_impl,
+                                axis2_hash_t *methods)
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl_l = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, extensible_impl, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    
+    extensible_impl_l = (axis2_woden_wsdl_element_impl_t *) extensible_impl;
+    
+    extensible->ops = AXIS2_MALLOC((*env)->allocator, 
+            sizeof(axis2_woden_wsdl_element_ops_t));
+    extensible->ops->free = axis2_hash_get(methods, "free", AXIS2_HASH_KEY_STRING);
+    extensible->ops->set_ext_attr = 
+        extensible_impl_l->extensible.ops->set_ext_attr;
+    extensible->ops->get_ext_attr = 
+        extensible_impl_l->extensible.ops->get_ext_attr;
+    extensible->ops->get_ext_attrs = 
+        extensible_impl_l->extensible.ops->get_ext_attrs;
+    extensible->ops->get_ext_attrs_for_namespace = 
+        extensible_impl_l->extensible.ops->get_ext_attrs_for_namespace;
+    extensible->ops->has_ext_attrs_for_namespace = 
+        extensible_impl_l->extensible.ops->has_ext_attrs_for_namespace;
+    extensible->ops->add_ext_element = 
+        extensible_impl_l->extensible.ops->add_ext_element;
+    extensible->ops->remove_ext_element = 
+        extensible_impl_l->extensible.ops->remove_ext_element;
+    extensible->ops->get_ext_elements = 
+        extensible_impl_l->extensible.ops->get_ext_elements;
+    extensible->ops->get_ext_elements_of_type = 
+        extensible_impl_l->extensible.ops->get_ext_elements_of_type;
+    extensible->ops->has_ext_elements_for_namespace = 
+        extensible_impl_l->extensible.ops->has_ext_elements_for_namespace;
+
+    return AXIS2_SUCCESS;    
+}
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_wsdl_element_set_ext_attr(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_qname_t *attr_type,
+                                    axis2_woden_xml_attr_t *attr)
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, attr_type, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, attr, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+    return AXIS2_WODEN_ATTR_EXTENSIBLE_SET_EXT_ATTR(extensible_impl->f_attr_ext, 
+            env, attr_type, attr);    
+}
+
+axis2_woden_xml_attr_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_attr(void *extensible,
+                                            axis2_env_t **env,
+                                            axis2_qname_t *attr_type) 
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, attr_type, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+    
+    return AXIS2_WODEN_ATTR_EXTENSIBLE_GET_EXT_ATTR(extensible_impl->f_attr_ext, 
+            env, attr_type);
+}
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_attrs(void *extensible,
+                                                axis2_env_t **env) 
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    return AXIS2_WODEN_ATTR_EXTENSIBLE_GET_EXT_ATTRS(extensible_impl->f_attr_ext, 
+            env);
+}
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_attrs_for_namespace(void *extensible,
+                                                        axis2_env_t **env,
+                                                        axis2_url_t *namespc) 
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, namespc, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    return AXIS2_WODEN_ATTR_EXTENSIBLE_GET_EXT_ATTRS_FOR_NAMESPACE(
+            extensible_impl->f_attr_ext, env, namespc);
+}
+
+axis2_bool_t AXIS2_CALL 
+axis2_woden_wsdl_element_has_ext_attrs_for_namespace(void *extensible,
+                                                            axis2_env_t **env,
+                                                            axis2_url_t *namespc)
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, namespc, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    return AXIS2_WODEN_ATTR_EXTENSIBLE_HAS_EXT_ATTRS_FOR_NAMESPACE(
+            extensible_impl->f_attr_ext, env, namespc);
+}
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_wsdl_element_add_ext_element(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_woden_ext_element_t *ext_el) 
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, ext_el, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+    
+    return AXIS2_WODEN_ELEMENT_EXTENSIBLE_ADD_EXT_ELEMENT(extensible_impl->
+            f_elem_ext, env, ext_el);
+}
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_wsdl_element_remove_ext_element(
+                                    void *extensible,
+                                    axis2_env_t **env,
+                                    axis2_woden_ext_element_t *ext_el) 
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, ext_el, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    return AXIS2_WODEN_ELEMENT_EXTENSIBLE_REMOVE_EXT_ELEMENT(extensible_impl->
+            f_elem_ext, env, ext_el);
+}
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_elements(void *extensible,
+                                            axis2_env_t **env) 
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+    
+    return AXIS2_WODEN_ELEMENT_EXTENSIBLE_GET_EXT_ELEMENTS(extensible_impl->
+            f_elem_ext, env);
+}
+
+axis2_array_list_t *AXIS2_CALL 
+axis2_woden_wsdl_element_get_ext_elements_of_type(void *extensible,
+                                                    axis2_env_t **env,
+                                                    axis2_qname_t *ext_type) 
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, ext_type, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    return AXIS2_WODEN_ELEMENT_EXTENSIBLE_GET_EXT_ELEMENTS_OF_TYPE(
+            extensible_impl->f_elem_ext, env, ext_type);
+}
+
+axis2_bool_t AXIS2_CALL 
+axis2_woden_wsdl_element_has_ext_elements_for_namespace(void *extensible,
+                                                            axis2_env_t **env,
+                                                            axis2_url_t *namespc)
+{
+    axis2_woden_wsdl_element_impl_t *extensible_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, namespc, AXIS2_FAILURE);
+    extensible_impl = INTF_TO_IMPL(extensible);
+
+    return AXIS2_WODEN_ELEMENT_EXTENSIBLE_HAS_EXT_ELEMENTS_FOR_NAMESPACE(
+            extensible_impl->f_elem_ext, env, namespc);
+}
+
+

Added: webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/Makefile.am?rev=397864&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/Makefile.am (added)
+++ webservices/axis2/trunk/c/modules/wsdl/woden/src/xml/Makefile.am Fri Apr 28 04:22:23 2006
@@ -0,0 +1,8 @@
+TESTS =
+lib_LTLIBRARIES = libaxis2_woden_xml.la
+
+libaxis2_woden_xml_la_SOURCES = \
+
+INCLUDES = -I$(top_builddir)/include \
+            -I$(top_builddir)/modules/util \
+            -I$(top_builddir)/modules/platforms



Mime
View raw message