axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r410740 [3/7] - in /webservices/axis2/trunk/c/woden: include/woden/wsdl20/ include/woden/wsdl20/extensions/ include/woden/wsdl20/xml/ include/woden/xml/ src/wsdl20/ src/wsdl20/extensions/ src/xml/
Date Thu, 01 Jun 2006 04:34:48 GMT
Added: webservices/axis2/trunk/c/woden/src/wsdl20/feature.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/feature.c?rev=410740&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/feature.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/feature.c Wed May 31 21:34:47 2006
@@ -0,0 +1,816 @@
+/*
+ * 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_obj.h>
+#include <woden/wsdl20/axis2_woden_feature.h>
+#include <woden/wsdl20/extensions/axis2_woden_ext_element.h>
+#include <woden/wsdl20/extensions/axis2_woden_component_exts.h>
+#include <woden/xml/axis2_woden_xml_attr.h>
+#include <woden/wsdl20/xml/axis2_woden_documentation_element.h>
+
+typedef struct axis2_woden_feature_impl axis2_woden_feature_impl_t;
+
+/** 
+ * @brief Feature Struct Impl
+ *	Axis2 Feature  
+ */ 
+struct axis2_woden_feature_impl
+{
+    axis2_woden_feature_t feature;
+    axis2_woden_obj_types_t obj_type;
+    axis2_woden_documentable_t *documentable;
+    axis2_hash_t *super;
+    axis2_hash_t *methods;
+    axis2_url_t *f_ref;
+    axis2_bool_t f_required;
+    void *f_parent;
+};
+
+#define INTF_TO_IMPL(feature) ((axis2_woden_feature_impl_t *) feature)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_feature_free(
+        void *feature,
+        axis2_env_t **env);
+
+axis2_hash_t *AXIS2_CALL 
+axis2_woden_feature_super_objs(
+        void *feature,
+        axis2_env_t **env);
+
+axis2_woden_obj_types_t AXIS2_CALL 
+axis2_woden_feature_type(
+        void *feature,
+        axis2_env_t **env);
+
+axis2_woden_documentable_t *AXIS2_CALL
+axis2_woden_feature_get_base_impl(
+        void *feature,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_feature_set_ref(
+        void *feature,
+        axis2_env_t **env,
+        axis2_url_t *ref);
+
+axis2_url_t *AXIS2_CALL
+axis2_woden_feature_get_ref(
+        void *feature,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_feature_set_required(
+        void *feature,
+        axis2_env_t **env,
+        axis2_bool_t required);
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_feature_is_required(
+        void *feature,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_feature_set_parent_element(
+        void *feature,
+        axis2_env_t **env,
+        axis2_woden_wsdl_element_t *parent);
+
+void *AXIS2_CALL
+axis2_woden_feature_get_parent_element(
+        void *feature,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_feature_get_parent(
+        void *feature,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_feature_to_element(
+        void *feature,
+        axis2_env_t **env);
+
+static axis2_woden_feature_t *
+create(axis2_env_t **env);
+
+static axis2_status_t
+axis2_woden_feature_free_ops(
+        void *feature,
+        axis2_env_t **env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_DECLARE(axis2_woden_feature_t *)
+axis2_woden_feature_to_feature_element(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!feature)
+    {
+        feature_impl = (axis2_woden_feature_impl_t *) create(env);
+    }
+    else
+        feature_impl = (axis2_woden_feature_impl_t *) feature;
+    axis2_woden_feature_free_ops(feature, env);
+
+    feature_impl->feature.base.feature_element.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_feature_element_ops_t));
+    axis2_woden_feature_element_resolve_methods(&(feature_impl->feature.base.
+            feature_element), env, feature_impl->methods);
+    return feature;
+}
+
+AXIS2_DECLARE(axis2_woden_feature_t *)
+axis2_woden_feature_to_nested_element(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!feature)
+    {
+        feature_impl = (axis2_woden_feature_impl_t *) create(env);
+    }
+    else
+        feature_impl = (axis2_woden_feature_impl_t *) feature;
+    axis2_woden_feature_free_ops(feature, env);
+
+    feature_impl->feature.base.feature_element.base.nested_element.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_nested_element_ops_t));
+    axis2_woden_nested_element_resolve_methods(&(feature_impl->feature.base.
+            feature_element.base.nested_element), env, feature_impl->methods);
+    return feature;
+}
+
+AXIS2_DECLARE(axis2_woden_feature_t *)
+axis2_woden_feature_to_documentable_element(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!feature)
+    {
+        feature_impl = (axis2_woden_feature_impl_t *) create(env);
+    }
+    else
+        feature_impl = (axis2_woden_feature_impl_t *) feature;
+    axis2_woden_feature_free_ops(feature, env);
+
+    feature_impl->feature.base.feature_element.base.documentable_element.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_documentable_element_ops_t));
+    axis2_woden_documentable_element_resolve_methods(&(feature_impl->feature.base.
+            feature_element.base.documentable_element), env, 
+            feature_impl->methods);
+    return feature;
+}
+
+AXIS2_DECLARE(axis2_woden_feature_t *)
+axis2_woden_feature_to_documentable(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!feature)
+    {
+        feature_impl = (axis2_woden_feature_impl_t *) create(env);
+    }
+    else
+        feature_impl = (axis2_woden_feature_impl_t *) feature;
+    axis2_woden_feature_free_ops(feature, env);
+
+    feature_impl->feature.base.documentable.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_documentable_ops_t));
+    axis2_woden_documentable_resolve_methods(&(feature_impl->feature.base.
+            documentable), env, feature_impl->documentable, 
+            feature_impl->methods);
+    return feature;
+}
+
+AXIS2_DECLARE(axis2_woden_feature_t *)
+axis2_woden_feature_to_wsdl_obj(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+    void *wsdl_obj = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!feature)
+    {
+        feature_impl = (axis2_woden_feature_impl_t *) create(env);
+    }
+    else
+        feature_impl = (axis2_woden_feature_impl_t *) feature;
+    axis2_woden_feature_free_ops(feature, env);
+
+    feature_impl->feature.base.documentable.base.wsdl_obj.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_wsdl_obj_ops_t));
+    wsdl_obj = AXIS2_WODEN_DOCUMENTABLE_GET_BASE_IMPL(
+            feature_impl->documentable, env);
+    axis2_woden_wsdl_obj_resolve_methods(&(feature_impl->feature.base.
+            documentable.base.wsdl_obj), env, wsdl_obj, feature_impl->methods);
+    return feature;
+}
+
+AXIS2_DECLARE(axis2_woden_feature_t *)
+axis2_woden_feature_to_nested_component(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!feature)
+    {
+        feature_impl = (axis2_woden_feature_impl_t *) create(env);
+    }
+    else
+        feature_impl = (axis2_woden_feature_impl_t *) feature;
+    axis2_woden_feature_free_ops(feature, env);
+  
+    feature_impl->feature.base.nested_component.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_nested_component_ops_t));
+    axis2_woden_nested_component_resolve_methods(&(feature_impl->feature.base.
+            nested_component), env, feature_impl->methods);
+    return feature;
+}
+
+AXIS2_DECLARE(axis2_woden_feature_t *)
+axis2_woden_feature_to_wsdl_component(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+    if(!feature)
+    {
+        feature_impl = (axis2_woden_feature_impl_t *) create(env);
+    }
+    else
+        feature_impl = (axis2_woden_feature_impl_t *) feature;
+    axis2_woden_feature_free_ops(feature, env);
+    feature_impl->feature.base.nested_component.wsdl_component.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+        sizeof(axis2_woden_wsdl_component_ops_t));
+    axis2_woden_wsdl_component_resolve_methods(&(feature_impl->feature.base.
+            nested_component.wsdl_component), env, feature_impl->methods);
+    return feature;
+}
+
+AXIS2_DECLARE(axis2_woden_feature_t *)
+axis2_woden_feature_to_attr_extensible(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+    if(!feature)
+    {
+        feature_impl = (axis2_woden_feature_impl_t *) create(env);
+    }
+    else
+        feature_impl = (axis2_woden_feature_impl_t *) feature;
+    axis2_woden_feature_free_ops(feature, env);
+
+    feature_impl->feature.base.documentable.base.wsdl_obj.base.
+            wsdl_element.base.attr_extensible.ops =
+            AXIS2_MALLOC((*env)->allocator, 
+            sizeof(axis2_woden_attr_extensible_ops_t));
+    axis2_woden_attr_extensible_resolve_methods(&(feature_impl->feature.base.
+            documentable.base.wsdl_obj.base.wsdl_element.base.attr_extensible), 
+            env, NULL, feature_impl->methods);
+    return feature;
+
+}
+
+AXIS2_DECLARE(axis2_woden_feature_t *)
+axis2_woden_feature_to_element_extensible(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+    if(!feature)
+    {
+        feature_impl = (axis2_woden_feature_impl_t *) create(env);
+    }
+    else
+        feature_impl = (axis2_woden_feature_impl_t *) feature;
+    axis2_woden_feature_free_ops(feature, env);
+    feature_impl->feature.base.documentable.base.wsdl_obj.base.wsdl_element.
+                base.element_extensible.ops = AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_element_extensible_ops_t));
+    axis2_woden_element_extensible_resolve_methods(&(feature_impl->feature.base.
+            documentable.base.wsdl_obj.base.wsdl_element.base.element_extensible), 
+            env, NULL, feature_impl->methods);
+    return feature;
+
+}
+
+/************************End of Woden C Internal Methods***********************/
+static axis2_woden_feature_t *
+create(axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    feature_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_feature_impl_t));
+
+    feature_impl->obj_type= AXIS2_WODEN_FEATURE;
+    feature_impl->super = NULL;
+    feature_impl->methods = NULL;
+    feature_impl->f_parent = NULL;
+    feature_impl->f_ref = NULL;
+    feature_impl->f_required = AXIS2_FALSE;
+    
+    feature_impl->feature.base.feature_element.ops = NULL;
+    feature_impl->feature.base.feature_element.base.nested_element.ops = NULL;
+    feature_impl->feature.base.feature_element.base.documentable_element.ops = 
+            NULL;
+    feature_impl->feature.base.documentable.ops = NULL;
+    feature_impl->feature.base.nested_component.ops = NULL; 
+    feature_impl->feature.base.nested_component.wsdl_component.ops = NULL;
+    feature_impl->feature.base.documentable.base.wsdl_obj.ops = NULL;
+    feature_impl->feature.base.documentable.base.wsdl_obj.base.wsdl_element.
+            base.attr_extensible.ops = NULL;
+    feature_impl->feature.base.documentable.base.wsdl_obj.base.wsdl_element.
+            base.element_extensible.ops = NULL;
+    
+    feature_impl->feature.ops = AXIS2_MALLOC((*env)->allocator, 
+            sizeof(axis2_woden_feature_ops_t));
+
+    feature_impl->feature.ops->free = axis2_woden_feature_free;
+    feature_impl->feature.ops->super_objs = axis2_woden_feature_super_objs;
+    feature_impl->feature.ops->type = axis2_woden_feature_type;
+    feature_impl->feature.ops->get_base_impl = axis2_woden_feature_get_base_impl;
+    feature_impl->feature.ops->get_ref = axis2_woden_feature_get_ref;
+    feature_impl->feature.ops->is_required = axis2_woden_feature_is_required;
+    feature_impl->feature.ops->get_parent = 
+        axis2_woden_feature_get_parent;
+    feature_impl->feature.ops->to_element = 
+        axis2_woden_feature_to_element;
+ 
+    feature_impl->methods = axis2_hash_make(env);
+    if(!feature_impl->methods) 
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(feature_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            axis2_woden_feature_free);
+    axis2_hash_set(feature_impl->methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_feature_super_objs);
+    axis2_hash_set(feature_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_feature_type);
+
+    axis2_hash_set(feature_impl->methods, "get_parent", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_feature_get_parent);
+    axis2_hash_set(feature_impl->methods, "set_parent_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_feature_set_parent_element);
+    axis2_hash_set(feature_impl->methods, "get_parent_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_feature_get_parent_element);
+    axis2_hash_set(feature_impl->methods, "set_ref", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_feature_set_ref);
+    axis2_hash_set(feature_impl->methods, "get_ref", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_feature_get_ref);
+    axis2_hash_set(feature_impl->methods, "set_required", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_feature_set_required);
+    axis2_hash_set(feature_impl->methods, "is_required", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_feature_is_required);
+    axis2_hash_set(feature_impl->methods, "to_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_feature_to_element);
+
+    return &(feature_impl->feature);
+}
+
+AXIS2_DECLARE(axis2_woden_feature_t *)
+axis2_woden_feature_create(axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    feature_impl = (axis2_woden_feature_impl_t *) create(env);
+
+    feature_impl->documentable = axis2_woden_documentable_create(env);
+
+    feature_impl->super = axis2_hash_make(env);
+    if(!feature_impl->super) 
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(feature_impl->super, "AXIS2_WODEN_FEATURE", AXIS2_HASH_KEY_STRING, 
+            &(feature_impl->feature));
+    axis2_hash_set(feature_impl->super, "AXIS2_WODEN_DOCUMENTABLE", AXIS2_HASH_KEY_STRING, 
+            feature_impl->documentable);
+ 
+    return &(feature_impl->feature);
+}
+
+static axis2_status_t
+axis2_woden_feature_free_ops(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    feature_impl = INTF_TO_IMPL(feature);
+
+    if(feature_impl->feature.base.feature_element.ops)
+    {
+        AXIS2_FREE((*env)->allocator, feature_impl->feature.base.
+                feature_element.ops);
+        feature_impl->feature.base.feature_element.ops = NULL;
+    }
+
+    if(feature_impl->feature.base.feature_element.base.nested_element.ops)
+    {
+        AXIS2_FREE((*env)->allocator, feature_impl->feature.base.
+                feature_element.base.nested_element.ops);
+        feature_impl->feature.base.feature_element.base.nested_element.ops = 
+            NULL;
+    }
+    
+    if(feature_impl->feature.base.feature_element.base.documentable_element.ops)
+    {
+        AXIS2_FREE((*env)->allocator, feature_impl->feature.base.
+                feature_element.base.documentable_element.ops);
+        feature_impl->feature.base.feature_element.base.documentable_element.ops = 
+            NULL;
+    }
+    
+    if(feature_impl->feature.base.documentable.ops)
+    {
+        AXIS2_FREE((*env)->allocator, feature_impl->feature.base.
+                documentable.ops);
+        feature_impl->feature.base.documentable.ops = 
+            NULL;
+    }
+    
+    if(feature_impl->feature.base.documentable.base.wsdl_obj.ops)
+    {
+        AXIS2_FREE((*env)->allocator, feature_impl->feature.base.
+                documentable.base.wsdl_obj.ops);
+        feature_impl->feature.base.documentable.base.wsdl_obj.ops = 
+            NULL;
+    }
+
+    if(feature_impl->feature.base.nested_component.ops)
+    {
+        AXIS2_FREE((*env)->allocator, feature_impl->feature.base.
+                nested_component.ops);
+        feature_impl->feature.base.nested_component.ops = NULL;
+    }
+
+    if(feature_impl->feature.base.nested_component.wsdl_component.ops)
+    {
+        AXIS2_FREE((*env)->allocator, feature_impl->feature.base.
+                nested_component.wsdl_component.ops);
+        feature_impl->feature.base.nested_component.wsdl_component.ops = NULL;
+    }
+
+
+    if(feature_impl->feature.base.documentable.base.wsdl_obj.base.
+            wsdl_element.base.attr_extensible.ops)
+    {
+        AXIS2_FREE((*env)->allocator, feature_impl->feature.base.documentable.
+                base.wsdl_obj.base.wsdl_element.base.attr_extensible.ops);
+        feature_impl->feature.base.documentable.base.wsdl_obj.base.wsdl_element.
+                base.attr_extensible.ops = NULL;
+    }
+
+    if(feature_impl->feature.base.documentable.base.wsdl_obj.base.
+            wsdl_element.base.element_extensible.ops)
+    {
+        AXIS2_FREE((*env)->allocator, feature_impl->feature.base.documentable.
+                base.wsdl_obj.base.wsdl_element.base.element_extensible.ops);
+        feature_impl->feature.base.documentable.base.wsdl_obj.base.wsdl_element.
+                base.element_extensible.ops = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_woden_feature_free(void *feature,
+                        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    feature_impl = INTF_TO_IMPL(feature);
+
+    if(feature_impl->f_ref)
+    {
+        AXIS2_URL_FREE(feature_impl->f_ref, env);
+        feature_impl->f_ref = NULL;
+    }
+   
+    /* TODO free f_parent */
+    
+    if(feature_impl->super)
+    {
+        axis2_hash_free(feature_impl->super, env);
+        feature_impl->super = NULL;
+    }
+    
+    if(feature_impl->methods)
+    {
+        axis2_hash_free(feature_impl->methods, env);
+        feature_impl->methods = NULL;
+    }
+
+    if(feature_impl->documentable)
+    {
+        AXIS2_WODEN_DOCUMENTABLE_FREE(feature_impl->documentable, env);
+        feature_impl->documentable = NULL;
+    }
+
+    axis2_woden_feature_free_ops(feature, env);
+
+    if((&(feature_impl->feature))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(feature_impl->feature))->ops);
+        (&(feature_impl->feature))->ops = NULL;
+    }
+    
+    if(feature_impl)
+    {
+        AXIS2_FREE((*env)->allocator, feature_impl);
+        feature_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+axis2_woden_feature_super_objs(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    feature_impl = INTF_TO_IMPL(feature);
+
+    return feature_impl->super;
+}
+
+axis2_woden_obj_types_t AXIS2_CALL
+axis2_woden_feature_type(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    feature_impl = INTF_TO_IMPL(feature);
+
+    return feature_impl->obj_type;
+}
+
+axis2_woden_documentable_t *AXIS2_CALL
+axis2_woden_feature_get_base_impl(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    feature_impl = INTF_TO_IMPL(feature);
+
+    return feature_impl->documentable;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_feature_resolve_methods(
+        axis2_woden_feature_t *feature,
+        axis2_env_t **env,
+        axis2_woden_feature_t *feature_impl,
+        axis2_hash_t *methods)
+{
+    axis2_woden_feature_impl_t *feature_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    feature_impl_l = INTF_TO_IMPL(feature_impl);
+    
+    feature->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    feature->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    feature->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    feature->ops->get_ref = axis2_hash_get(methods, 
+            "get_ref", AXIS2_HASH_KEY_STRING);
+    if(!feature->ops->get_ref && feature_impl_l)
+            feature->ops->get_ref = 
+            feature_impl_l->feature.ops->get_ref;
+    
+    feature->ops->is_required = axis2_hash_get(methods, 
+            "is_required", AXIS2_HASH_KEY_STRING);
+    if(!feature->ops->is_required && feature_impl_l)
+            feature->ops->is_required = 
+            feature_impl_l->feature.ops->is_required;
+    
+    feature->ops->get_parent = axis2_hash_get(methods, 
+            "get_parent", AXIS2_HASH_KEY_STRING);
+    if(!feature->ops->get_parent && feature_impl_l)
+            feature->ops->get_parent = 
+            feature_impl_l->feature.ops->get_parent;
+
+    feature->ops->to_element = axis2_hash_get(methods, 
+            "to_element", AXIS2_HASH_KEY_STRING);
+    if(!feature->ops->to_element && feature_impl_l)
+            feature->ops->to_element = 
+            feature_impl_l->feature.ops->to_element;
+   
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_feature_set_ref(
+        void *feature,
+        axis2_env_t **env,
+        axis2_url_t *ref)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_FEATURE_SUPER_OBJS(feature, env);
+    feature_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_FEATURE", AXIS2_HASH_KEY_STRING));
+
+    if(feature_impl->f_ref)
+    {
+        AXIS2_URL_FREE(feature_impl->f_ref, env);
+    }
+    feature_impl->f_ref = ref;
+    return AXIS2_SUCCESS;
+}
+
+axis2_url_t *AXIS2_CALL
+axis2_woden_feature_get_ref(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_FEATURE_SUPER_OBJS(feature, env);
+    feature_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_FEATURE", AXIS2_HASH_KEY_STRING));
+    
+    return feature_impl->f_ref;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_feature_set_required(
+        void *feature,
+        axis2_env_t **env,
+        axis2_bool_t required)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_FEATURE_SUPER_OBJS(feature, env);
+    feature_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_FEATURE", AXIS2_HASH_KEY_STRING));
+
+    feature_impl->f_required = required;
+    return AXIS2_SUCCESS;
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_feature_is_required(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_FEATURE_SUPER_OBJS(feature, env);
+    feature_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_FEATURE", AXIS2_HASH_KEY_STRING));
+
+    return feature_impl->f_required;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_feature_set_parent_element(
+        void *feature,
+        axis2_env_t **env,
+        axis2_woden_wsdl_element_t *parent)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_FEATURE_SUPER_OBJS(feature, env);
+    feature_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_FEATURE", AXIS2_HASH_KEY_STRING));
+
+    if(feature_impl->f_parent)
+    {
+        /* TODO free this */
+    }
+    feature_impl->f_parent = parent;
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+axis2_woden_feature_get_parent_element(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_FEATURE_SUPER_OBJS(feature, env);
+    feature_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_FEATURE", AXIS2_HASH_KEY_STRING));
+
+    return feature_impl->f_parent;
+}
+
+void *AXIS2_CALL
+axis2_woden_feature_get_parent(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_FEATURE_SUPER_OBJS(feature, env);
+    feature_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_FEATURE", AXIS2_HASH_KEY_STRING));
+
+    /* TODO complete this */
+    return NULL;
+}
+
+void *AXIS2_CALL
+axis2_woden_feature_to_element(
+        void *feature,
+        axis2_env_t **env)
+{
+    axis2_woden_feature_impl_t *feature_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_FEATURE_SUPER_OBJS(feature, env);
+    feature_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_FEATURE", AXIS2_HASH_KEY_STRING));
+    
+    return &(feature_impl->feature);
+}
+

Added: webservices/axis2/trunk/c/woden/src/wsdl20/interface.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/interface.c?rev=410740&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/interface.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/interface.c Wed May 31 21:34:47 2006
@@ -0,0 +1,985 @@
+/*
+ * 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_obj.h>
+#include <woden/wsdl20/axis2_woden_interface.h>
+#include <woden/wsdl20/extensions/axis2_woden_ext_element.h>
+#include <woden/wsdl20/extensions/axis2_woden_component_exts.h>
+#include <woden/xml/axis2_woden_xml_attr.h>
+#include <woden/wsdl20/xml/axis2_woden_documentation_element.h>
+#include <woden/wsdl20/axis2_woden_interface_fault.h>
+
+typedef struct axis2_woden_interface_impl axis2_woden_interface_impl_t;
+
+/** 
+ * @brief Interface Struct Impl
+ *	Axis2 Interface  
+ */ 
+struct axis2_woden_interface_impl
+{
+    axis2_woden_interface_t interface;
+    axis2_woden_configurable_t *configurable;
+    axis2_woden_obj_types_t obj_type;
+    axis2_hash_t *super;
+    axis2_hash_t *methods;
+    axis2_array_list_t *f_extended_interfaces;
+    axis2_qname_t *f_qname;
+    axis2_array_list_t *f_extends_qnames;
+    axis2_array_list_t *f_style_default;
+    axis2_array_list_t *f_interface_fault_elements;
+    axis2_array_list_t *f_interface_op_elements;
+};
+
+#define INTF_TO_IMPL(interface) ((axis2_woden_interface_impl_t *) interface)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_interface_free(
+        void *interface,
+        axis2_env_t **env);
+
+axis2_hash_t *AXIS2_CALL 
+axis2_woden_interface_super_objs(
+        void *interface,
+        axis2_env_t **env);
+
+axis2_woden_obj_types_t AXIS2_CALL 
+axis2_woden_interface_type(
+        void *interface,
+        axis2_env_t **env);
+
+axis2_woden_configurable_t *AXIS2_CALL
+axis2_woden_interface_get_base_impl(
+        void *interface,
+        axis2_env_t **env);
+
+/* ************************************************************
+ *  Interface interface methods (the WSDL Component model)
+ * ************************************************************/
+axis2_qname_t *AXIS2_CALL
+axis2_woden_interface_get_qname(
+        void *interface,
+        axis2_env_t **env);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_extended_interfaces(
+        void *interface,
+        axis2_env_t **env);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_interface_faults(
+        void *interface,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_interface_get_interface_fault(
+        void *interface,
+        axis2_env_t **env,
+        axis2_qname_t *qname);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_interface_ops(
+        void *interface,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_interface_to_element(
+        void *interface,
+        axis2_env_t **env);
+
+/* ************************************************************
+ *  InterfaceElement interface methods (the XML Element model)
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_set_qname(
+        void *interface,
+        axis2_env_t **env,
+        axis2_qname_t *qname);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_add_style_default_uri(
+        void *interface,
+        axis2_env_t **env,
+        axis2_url_t *uri);
+
+void *AXIS2_CALL
+axis2_woden_interface_get_style_default(
+        void *interface,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_add_extended_qname(
+        void *interface,
+        axis2_env_t **env,
+        axis2_woden_wsdl_element_t *qname);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_extends_qnames(
+        void *interface,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_add_interface_fault_element(
+        void *interface,
+        axis2_env_t **env,
+        void *fault);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_interface_fault_elements(
+        void *interface,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_add_interface_op_element(
+        void *interface,
+        axis2_env_t **env,
+        void *op);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_interface_op_elements(
+        void *interface,
+        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_add_extended_interface(
+        void *interface,
+        axis2_env_t **env,
+        void *extended_interface);
+
+
+static axis2_woden_interface_t *
+create(axis2_env_t **env);
+
+static axis2_status_t
+axis2_woden_interface_free_ops(
+        void *interface,
+        axis2_env_t **env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_DECLARE(axis2_woden_interface_t *)
+axis2_woden_interface_to_interface_element(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!interface)
+    {
+        interface_impl = (axis2_woden_interface_impl_t *) create(env);
+    }
+    else
+        interface_impl = (axis2_woden_interface_impl_t *) interface;
+
+    axis2_woden_interface_free_ops(interface, env);
+
+    interface_impl->interface.base.interface_element.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_interface_element_ops_t));
+    axis2_woden_interface_element_resolve_methods(&(interface_impl->interface.base.
+            interface_element), env, interface_impl->methods);
+    return interface;
+}
+
+AXIS2_DECLARE(axis2_woden_interface_t *)
+axis2_woden_interface_to_configurable_element(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!interface)
+    {
+        interface_impl = (axis2_woden_interface_impl_t *) create(env);
+    }
+    else
+        interface_impl = (axis2_woden_interface_impl_t *) interface;
+
+    axis2_woden_interface_free_ops(interface, env);
+
+    interface_impl->interface.base.interface_element.base.configurable_element.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_configurable_element_ops_t));
+    axis2_woden_configurable_element_resolve_methods(&(interface_impl->interface.base.
+            interface_element.base.configurable_element), env, interface_impl->methods);
+    return interface;
+}
+
+AXIS2_DECLARE(axis2_woden_interface_t *)
+axis2_woden_interface_to_documentable_element(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!interface)
+    {
+        interface_impl = (axis2_woden_interface_impl_t *) create(env);
+    }
+    else
+        interface_impl = (axis2_woden_interface_impl_t *) interface;
+
+    axis2_woden_interface_free_ops(interface, env);
+
+    interface_impl->interface.base.interface_element.base.documentable_element.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_documentable_element_ops_t));
+    axis2_woden_documentable_element_resolve_methods(&(interface_impl->interface.base.
+            interface_element.base.documentable_element), env, 
+            interface_impl->methods);
+    return interface;
+}
+
+AXIS2_DECLARE(axis2_woden_interface_t *)
+axis2_woden_interface_to_configurable(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!interface)
+    {
+        interface_impl = (axis2_woden_interface_impl_t *) create(env);
+    }
+    else
+        interface_impl = (axis2_woden_interface_impl_t *) interface;
+
+    axis2_woden_interface_free_ops(interface, env);
+
+    interface_impl->interface.base.configurable.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_configurable_ops_t));
+    axis2_woden_configurable_resolve_methods(&(interface_impl->interface.base.
+            configurable), env, interface_impl->configurable, 
+            interface_impl->methods);
+    return interface;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static axis2_woden_interface_t *
+create(axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_interface_impl_t));
+
+    interface_impl->obj_type= AXIS2_WODEN_INTERFACE;
+    interface_impl->super = NULL;
+    interface_impl->methods = NULL;
+    interface_impl->f_qname = NULL;
+    interface_impl->f_extended_interfaces = NULL;
+    interface_impl->f_extends_qnames = NULL;
+    interface_impl->f_style_default = NULL;
+    interface_impl->f_interface_fault_elements = NULL;
+    interface_impl->f_interface_op_elements = NULL;
+    
+    interface_impl->interface.base.interface_element.ops = NULL;
+    interface_impl->interface.base.interface_element.base.documentable_element.ops = NULL;
+    interface_impl->interface.base.interface_element.base.configurable_element.ops = NULL;
+    interface_impl->interface.base.configurable.ops = NULL;
+    
+    interface_impl->interface.ops = AXIS2_MALLOC((*env)->allocator, 
+            sizeof(axis2_woden_interface_ops_t));
+
+    interface_impl->interface.ops->free = axis2_woden_interface_free;
+    interface_impl->interface.ops->super_objs = axis2_woden_interface_super_objs;
+    interface_impl->interface.ops->type = axis2_woden_interface_type;
+    interface_impl->interface.ops->get_base_impl = axis2_woden_interface_get_base_impl;
+    
+    interface_impl->interface.ops->get_qname = axis2_woden_interface_get_qname;
+    interface_impl->interface.ops->get_extended_interfaces = 
+        axis2_woden_interface_get_extended_interfaces;
+    interface_impl->interface.ops->get_interface_faults = 
+        axis2_woden_interface_get_interface_faults;
+    interface_impl->interface.ops->get_interface_fault = 
+        axis2_woden_interface_get_interface_fault;
+    interface_impl->interface.ops->get_interface_ops = 
+        axis2_woden_interface_get_interface_ops;
+    interface_impl->interface.ops->to_element = 
+        axis2_woden_interface_to_element;
+ 
+    interface_impl->methods = axis2_hash_make(env);
+    if(!interface_impl->methods) 
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(interface_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_free);
+    axis2_hash_set(interface_impl->methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_interface_super_objs);
+    axis2_hash_set(interface_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_interface_type);
+
+    axis2_hash_set(interface_impl->methods, "get_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_get_qname);
+    axis2_hash_set(interface_impl->methods, "get_extended_interfaces", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_get_extended_interfaces);
+    axis2_hash_set(interface_impl->methods, "get_interface_faults", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_get_interface_faults);
+    axis2_hash_set(interface_impl->methods, "get_interface_fault", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_get_interface_fault);
+    axis2_hash_set(interface_impl->methods, "get_interface_ops", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_get_interface_ops);
+    axis2_hash_set(interface_impl->methods, "to_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_to_element);
+    axis2_hash_set(interface_impl->methods, "set_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_set_qname);
+    axis2_hash_set(interface_impl->methods, "add_style_default_uri", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_add_style_default_uri);
+    axis2_hash_set(interface_impl->methods, "get_style_default", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_get_style_default);
+    axis2_hash_set(interface_impl->methods, "add_extends_qnames", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_get_extends_qnames);
+    axis2_hash_set(interface_impl->methods, "get_extends_qnames", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_get_extends_qnames);
+    axis2_hash_set(interface_impl->methods, "add_interface_fault_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_add_interface_fault_element);
+    axis2_hash_set(interface_impl->methods, "get_interface_fault_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_get_interface_fault_elements);
+    axis2_hash_set(interface_impl->methods, "add_interface_op_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_add_interface_op_element);
+    axis2_hash_set(interface_impl->methods, "get_interface_op_elements", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_get_interface_op_elements);
+    axis2_hash_set(interface_impl->methods, "add_extended_interface", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_add_extended_interface);
+
+    return &(interface_impl->interface);
+}
+
+AXIS2_DECLARE(axis2_woden_interface_t *)
+axis2_woden_interface_create(axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_impl = (axis2_woden_interface_impl_t *) create(env);
+
+    interface_impl->configurable = axis2_woden_configurable_create(env);
+
+    interface_impl->super = axis2_hash_make(env);
+    if(!interface_impl->super) 
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(interface_impl->super, "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING, 
+            &(interface_impl->interface));
+    axis2_hash_set(interface_impl->super, "AXIS2_WODEN_CONFIGURABLE", AXIS2_HASH_KEY_STRING, 
+            interface_impl->configurable);
+ 
+    return &(interface_impl->interface);
+}
+
+static axis2_status_t
+axis2_woden_interface_free_ops(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_impl = INTF_TO_IMPL(interface);
+
+    if(interface_impl->interface.base.interface_element.ops)
+    {
+        AXIS2_FREE((*env)->allocator, interface_impl->interface.base.
+                interface_element.ops);
+        interface_impl->interface.base.interface_element.ops = NULL;
+    }
+
+    if(interface_impl->interface.base.interface_element.base.configurable_element.ops)
+    {
+        AXIS2_FREE((*env)->allocator, interface_impl->interface.base.
+                interface_element.base.configurable_element.ops);
+        interface_impl->interface.base.interface_element.base.configurable_element.ops = 
+            NULL;
+    }
+    
+    if(interface_impl->interface.base.interface_element.base.documentable_element.ops)
+    {
+        AXIS2_FREE((*env)->allocator, interface_impl->interface.base.
+                interface_element.base.documentable_element.ops);
+        interface_impl->interface.base.interface_element.base.documentable_element.ops = 
+            NULL;
+    }
+    
+    if(interface_impl->interface.base.configurable.ops)
+    {
+        AXIS2_FREE((*env)->allocator, interface_impl->interface.base.
+                configurable.ops);
+        interface_impl->interface.base.configurable.ops = 
+            NULL;
+    }
+    
+    return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_free(void *interface,
+                        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_impl = INTF_TO_IMPL(interface);
+
+    if(interface_impl->f_extended_interfaces)
+    {
+        AXIS2_ARRAY_LIST_FREE(interface_impl->f_extended_interfaces, env);
+        interface_impl->f_extended_interfaces = NULL;
+    }
+
+    if(interface_impl->f_qname)
+    {
+        AXIS2_QNAME_FREE(interface_impl->f_qname, env);
+        interface_impl->f_qname = NULL;
+    }
+
+    if(interface_impl->f_extends_qnames)
+    {
+        AXIS2_ARRAY_LIST_FREE(interface_impl->f_extends_qnames, env);
+        interface_impl->f_extends_qnames = NULL;
+    }
+
+    if(interface_impl->f_style_default)
+    {
+        AXIS2_ARRAY_LIST_FREE(interface_impl->f_style_default, env);
+        interface_impl->f_style_default = NULL;
+    }
+
+    if(interface_impl->f_interface_fault_elements)
+    {
+        AXIS2_ARRAY_LIST_FREE(interface_impl->f_interface_fault_elements, env);
+        interface_impl->f_interface_fault_elements = NULL;
+    }
+
+    if(interface_impl->f_interface_op_elements)
+    {
+        AXIS2_ARRAY_LIST_FREE(interface_impl->f_interface_op_elements, env);
+        interface_impl->f_interface_op_elements = NULL;
+    }
+   
+    if(interface_impl->super)
+    {
+        axis2_hash_free(interface_impl->super, env);
+        interface_impl->super = NULL;
+    }
+    
+    if(interface_impl->methods)
+    {
+        axis2_hash_free(interface_impl->methods, env);
+        interface_impl->methods = NULL;
+    }
+
+    if(interface_impl->configurable)
+    {
+        AXIS2_WODEN_CONFIGURABLE_FREE(interface_impl->configurable, env);
+        interface_impl->configurable = NULL;
+    }
+
+    axis2_woden_interface_free_ops(interface, env);
+
+    if((&(interface_impl->interface))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(interface_impl->interface))->ops);
+        (&(interface_impl->interface))->ops = NULL;
+    }
+    
+    if(interface_impl)
+    {
+        AXIS2_FREE((*env)->allocator, interface_impl);
+        interface_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+axis2_woden_interface_super_objs(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_impl = INTF_TO_IMPL(interface);
+
+    return interface_impl->super;
+}
+
+axis2_woden_obj_types_t AXIS2_CALL
+axis2_woden_interface_type(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_impl = INTF_TO_IMPL(interface);
+
+    return interface_impl->obj_type;
+}
+
+axis2_woden_configurable_t *AXIS2_CALL
+axis2_woden_interface_get_base_impl(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    interface_impl = INTF_TO_IMPL(interface);
+
+    return interface_impl->configurable;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_resolve_methods(
+        axis2_woden_interface_t *interface,
+        axis2_env_t **env,
+        axis2_woden_interface_t *interface_impl,
+        axis2_hash_t *methods)
+{
+    axis2_woden_interface_impl_t *interface_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    interface_impl_l = INTF_TO_IMPL(interface_impl);
+    
+    interface->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    interface->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    interface->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    interface->ops->get_qname = axis2_hash_get(methods, 
+            "get_qname", AXIS2_HASH_KEY_STRING);
+    if(!interface->ops->get_qname && interface_impl_l)
+            interface->ops->get_qname = 
+            interface_impl_l->interface.ops->get_qname;
+    
+    interface->ops->get_extended_interfaces = axis2_hash_get(methods, 
+            "get_extended_interfaces", AXIS2_HASH_KEY_STRING);
+    if(!interface->ops->get_extended_interfaces && interface_impl_l)
+            interface->ops->get_extended_interfaces = 
+            interface_impl_l->interface.ops->get_extended_interfaces;
+    
+    interface->ops->get_interface_faults = axis2_hash_get(methods, 
+            "get_interface_faults", AXIS2_HASH_KEY_STRING);
+    if(!interface->ops->get_interface_faults && interface_impl_l)
+            interface->ops->get_interface_faults = 
+            interface_impl_l->interface.ops->get_interface_faults;
+
+    interface->ops->get_interface_fault = axis2_hash_get(methods, 
+            "get_interface_fault", AXIS2_HASH_KEY_STRING);
+    if(!interface->ops->get_interface_fault && interface_impl_l)
+            interface->ops->get_interface_fault = 
+            interface_impl_l->interface.ops->get_interface_fault;
+
+    interface->ops->get_interface_ops = axis2_hash_get(methods, 
+            "get_interface_ops", AXIS2_HASH_KEY_STRING);
+    if(!interface->ops->get_interface_ops && interface_impl_l)
+            interface->ops->get_interface_ops = 
+            interface_impl_l->interface.ops->get_interface_ops;
+
+    interface->ops->to_element = axis2_hash_get(methods, 
+            "to_element", AXIS2_HASH_KEY_STRING);
+    if(!interface->ops->to_element && interface_impl_l)
+            interface->ops->to_element = 
+            interface_impl_l->interface.ops->to_element;
+   
+    return AXIS2_SUCCESS;
+}
+
+/* ************************************************************
+ *  Interface interface methods (the WSDL Component model)
+ * ************************************************************/
+axis2_qname_t *AXIS2_CALL
+axis2_woden_interface_get_qname(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+    
+    return interface_impl->f_qname;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_extended_interfaces(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+
+    return interface_impl->f_extended_interfaces;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_interface_faults(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+
+    return interface_impl->f_interface_fault_elements;
+}
+
+void *AXIS2_CALL
+axis2_woden_interface_get_interface_fault(
+        void *interface,
+        axis2_env_t **env,
+        axis2_qname_t *qname)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+    int i = 0, size = 0;
+    void *fault;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, qname, NULL);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+
+    size = AXIS2_ARRAY_LIST_SIZE(interface_impl->f_interface_fault_elements, env);
+    for(i = 0; i < size; i++)
+    {
+        void *flt = NULL;
+        axis2_qname_t *qname_l = NULL;
+        
+        flt = AXIS2_ARRAY_LIST_GET(interface_impl->f_interface_fault_elements, 
+                env, i);
+        qname_l = (axis2_qname_t *) AXIS2_INTERFACE_FAULT_GET_QNAME(flt, env);
+        if(AXIS2_TRUE == AXIS2_QNAME_EQUALS(qname, env, qname_l))
+        {
+            fault = flt;
+            break;
+        }
+    }
+
+    return fault;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_interface_ops(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+
+    return interface_impl->f_interface_op_elements;
+}
+
+void *AXIS2_CALL
+axis2_woden_interface_to_element(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+    
+    return &(interface_impl->interface);
+}
+
+/* ************************************************************
+ *  InterfaceElement interface methods (the XML Element model)
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_set_qname(
+        void *interface,
+        axis2_env_t **env,
+        axis2_qname_t *qname)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, qname, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+
+    if(interface_impl->f_qname)
+    {
+        AXIS2_QNAME_FREE(interface_impl->f_qname, env);
+    }
+    interface_impl->f_qname = AXIS2_QNAME_CLONE(qname, env);
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_add_style_default_uri(
+        void *interface,
+        axis2_env_t **env,
+        axis2_url_t *uri)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, uri, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+
+    if(!interface_impl->f_style_default)
+    {
+        interface_impl->f_style_default = axis2_array_list_create(env, 0);
+        if(!interface_impl->f_style_default)
+        {
+            AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
+    AXIS2_ARRAY_LIST_ADD(interface_impl->f_style_default, env, uri);
+
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+axis2_woden_interface_get_style_default(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+
+    return interface_impl->f_style_default;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_add_extended_qname(
+        void *interface,
+        axis2_env_t **env,
+        axis2_woden_wsdl_element_t *qname)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, qname, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+    
+    if(!interface_impl->f_extends_qnames)
+    {
+        interface_impl->f_extends_qnames = axis2_array_list_create(env, 0);
+        if(!interface_impl->f_extends_qnames)
+        {
+            AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
+    AXIS2_ARRAY_LIST_ADD(interface_impl->f_extends_qnames, env, qname);
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_extends_qnames(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+
+    return interface_impl->f_extends_qnames;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_add_interface_fault_element(
+        void *interface,
+        axis2_env_t **env,
+        void *fault)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, fault, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+    
+    if(!interface_impl->f_interface_fault_elements)
+    {
+        interface_impl->f_interface_fault_elements = axis2_array_list_create(env, 0);
+        if(!interface_impl->f_interface_fault_elements)
+        {
+            AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
+    AXIS2_ARRAY_LIST_ADD(interface_impl->f_interface_fault_elements, env, fault);
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_interface_fault_elements(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+
+    return interface_impl->f_interface_fault_elements;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_add_interface_op_element(
+        void *interface,
+        axis2_env_t **env,
+        void *op)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, op, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+    
+    if(!interface_impl->f_interface_op_elements)
+    {
+        interface_impl->f_interface_op_elements = axis2_array_list_create(env, 0);
+        if(!interface_impl->f_interface_op_elements)
+        {
+            AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
+    AXIS2_ARRAY_LIST_ADD(interface_impl->f_interface_op_elements, env, op);
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_interface_get_interface_op_elements(
+        void *interface,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+
+    return interface_impl->f_interface_op_elements;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_add_extended_interface(
+        void *interface,
+        axis2_env_t **env,
+        void *extended_interface)
+{
+    axis2_woden_interface_impl_t *interface_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, interface, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_SUPER_OBJS(interface, env);
+    interface_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE", AXIS2_HASH_KEY_STRING));
+
+    if(!interface_impl->f_extended_interfaces)
+    {
+        interface_impl->f_extended_interfaces = axis2_array_list_create(env, 0);
+        if(!interface_impl->f_extended_interfaces)
+        {
+            AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+            return AXIS2_FAILURE;
+        }
+    }
+    AXIS2_ARRAY_LIST_ADD(interface_impl->f_extended_interfaces, env, extended_interface);
+    return AXIS2_SUCCESS;
+}
+
+
+
+
+

Added: webservices/axis2/trunk/c/woden/src/wsdl20/interface_fault.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/interface_fault.c?rev=410740&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/interface_fault.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/interface_fault.c Wed May 31 21:34:47 2006
@@ -0,0 +1,694 @@
+/*
+ * 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_obj.h>
+#include <woden/wsdl20/axis2_woden_interface_fault.h>
+#include <woden/wsdl20/extensions/axis2_woden_ext_element.h>
+#include <woden/wsdl20/extensions/axis2_woden_component_exts.h>
+#include <woden/xml/axis2_woden_xml_attr.h>
+#include <woden/wsdl20/xml/axis2_woden_documentation_element.h>
+#include <xml_schema/axis2_xml_schema_element.h>
+
+typedef struct axis2_woden_interface_fault_impl axis2_woden_interface_fault_impl_t;
+
+/** 
+ * @brief Interface Fault Struct Impl
+ *	Axis2 Interface Fault  
+ */ 
+struct axis2_woden_interface_fault_impl
+{
+    axis2_woden_interface_fault_t interface_fault;
+    axis2_woden_nested_configurable_t *nested_configurable;
+    axis2_woden_obj_types_t obj_type;
+    axis2_hash_t *super;
+    axis2_hash_t *methods;
+    axis2_qname_t *f_qname;
+    void *f_element_decl;
+    axis2_qname_t *f_element_qname;
+    void *f_types;
+};
+
+#define INTF_TO_IMPL(interface_fault) ((axis2_woden_interface_fault_impl_t *) interface_fault)
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_interface_fault_free(
+        void *interface_fault,
+        axis2_env_t **env);
+
+axis2_hash_t *AXIS2_CALL 
+axis2_woden_interface_fault_super_objs(
+        void *interface_fault,
+        axis2_env_t **env);
+
+axis2_woden_obj_types_t AXIS2_CALL 
+axis2_woden_interface_fault_type(
+        void *interface_fault,
+        axis2_env_t **env);
+
+axis2_woden_nested_configurable_t *AXIS2_CALL
+axis2_woden_interface_fault_get_base_impl(
+        void *interface_fault,
+        axis2_env_t **env);
+
+/* ************************************************************
+ *  Interface Fault methods (the WSDL Component model)
+ * ************************************************************/
+axis2_qname_t *AXIS2_CALL
+axis2_woden_interface_fault_get_qname(
+        void *interface_fault,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_interface_fault_get_element_declaration(
+        void *interface_fault,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_interface_fault_to_element(
+        void *interface_fault,
+        axis2_env_t **env);
+
+/* ************************************************************
+ *  Interface FaultElement interface_fault methods (the XML Element model)
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_fault_set_qname(
+        void *interface_fault,
+        axis2_env_t **env,
+        axis2_qname_t *qname);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_fault_set_element_qname(
+        void *interface_fault,
+        axis2_env_t **env,
+        axis2_qname_t *qname);
+
+axis2_qname_t *AXIS2_CALL
+axis2_woden_interface_fault_get_element_qname(
+        void *interface_fault,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_interface_fault_get_element(
+        void *interface_fault,
+        axis2_env_t **env);
+
+/* ******************************************************************
+ * Non-API implementation methods
+ * ******************************************************************/
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_fault_set_element_declaration(
+        void *interface_fault,
+        axis2_env_t **env,
+        void *element_decl);
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_fault_set_types(
+        void *interface_fault,
+        axis2_env_t **env,
+        void *types);
+
+static axis2_woden_interface_fault_t *
+create(axis2_env_t **env);
+
+static axis2_status_t
+axis2_woden_interface_fault_free_ops(
+        void *interface_fault,
+        axis2_env_t **env);
+
+/************************Woden C Internal Methods******************************/
+AXIS2_DECLARE(axis2_woden_interface_fault_t *)
+axis2_woden_interface_fault_to_interface_fault_element(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!interface_fault)
+    {
+        interface_fault_impl = (axis2_woden_interface_fault_impl_t *) create(env);
+    }
+    else
+        interface_fault_impl = (axis2_woden_interface_fault_impl_t *) interface_fault;
+
+    axis2_woden_interface_fault_free_ops(interface_fault, env);
+
+    interface_fault_impl->interface_fault.base.interface_fault_element.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_interface_fault_element_ops_t));
+    axis2_woden_interface_fault_element_resolve_methods(&(interface_fault_impl->interface_fault.base.
+            interface_fault_element), env, interface_fault_impl->methods);
+    return interface_fault;
+}
+
+AXIS2_DECLARE(axis2_woden_interface_fault_t *)
+axis2_woden_interface_fault_to_nested_configurable(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!interface_fault)
+    {
+        interface_fault_impl = (axis2_woden_interface_fault_impl_t *) create(env);
+    }
+    else
+        interface_fault_impl = (axis2_woden_interface_fault_impl_t *) interface_fault;
+
+    axis2_woden_interface_fault_free_ops(interface_fault, env);
+
+    interface_fault_impl->interface_fault.base.nested_configurable.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_nested_configurable_ops_t));
+    axis2_woden_nested_configurable_resolve_methods(&(interface_fault_impl->interface_fault.base.
+            nested_configurable), env, interface_fault_impl->nested_configurable, 
+            interface_fault_impl->methods);
+    return interface_fault;
+}
+
+AXIS2_DECLARE(axis2_woden_interface_fault_t *)
+axis2_woden_interface_fault_to_configurable(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+    void *configurable = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    if(!interface_fault)
+    {
+        interface_fault_impl = (axis2_woden_interface_fault_impl_t *) create(env);
+    }
+    else
+        interface_fault_impl = (axis2_woden_interface_fault_impl_t *) interface_fault;
+
+    axis2_woden_interface_fault_free_ops(interface_fault, env);
+
+    interface_fault_impl->interface_fault.base.nested_configurable.base.configurable.ops = 
+        AXIS2_MALLOC((*env)->allocator, 
+                sizeof(axis2_woden_configurable_ops_t));
+    configurable = AXIS2_WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(
+            interface_fault_impl->nested_configurable, env);
+    axis2_woden_configurable_resolve_methods(&(interface_fault_impl->interface_fault.base.
+            nested_configurable.base.configurable), env, configurable, interface_fault_impl->methods);
+    return interface_fault;
+}
+
+/************************End of Woden C Internal Methods***********************/
+static axis2_woden_interface_fault_t *
+create(axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_fault_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_interface_fault_impl_t));
+
+    interface_fault_impl->obj_type= AXIS2_WODEN_INTERFACE_FAULT;
+    interface_fault_impl->super = NULL;
+    interface_fault_impl->methods = NULL;
+    interface_fault_impl->f_qname = NULL;
+    interface_fault_impl->f_element_decl = NULL;
+    interface_fault_impl->f_element_qname = NULL;
+    interface_fault_impl->f_types = NULL;
+    
+    interface_fault_impl->interface_fault.base.interface_fault_element.ops = NULL;
+    interface_fault_impl->interface_fault.base.nested_configurable.ops = NULL;
+    interface_fault_impl->interface_fault.base.nested_configurable.base.configurable.ops = 
+            NULL;
+    
+    interface_fault_impl->interface_fault.ops = AXIS2_MALLOC((*env)->allocator, 
+            sizeof(axis2_woden_interface_fault_ops_t));
+
+    interface_fault_impl->interface_fault.ops->free = axis2_woden_interface_fault_free;
+    interface_fault_impl->interface_fault.ops->super_objs = axis2_woden_interface_fault_super_objs;
+    interface_fault_impl->interface_fault.ops->type = axis2_woden_interface_fault_type;
+    interface_fault_impl->interface_fault.ops->get_base_impl = axis2_woden_interface_fault_get_base_impl;
+    
+    interface_fault_impl->interface_fault.ops->get_qname = axis2_woden_interface_fault_get_qname;
+    interface_fault_impl->interface_fault.ops->get_element_declaration = 
+        axis2_woden_interface_fault_get_element_declaration;
+    interface_fault_impl->interface_fault.ops->to_element = 
+        axis2_woden_interface_fault_to_element;
+ 
+    interface_fault_impl->methods = axis2_hash_make(env);
+    if(!interface_fault_impl->methods) 
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(interface_fault_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_fault_free);
+    axis2_hash_set(interface_fault_impl->methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_interface_fault_super_objs);
+    axis2_hash_set(interface_fault_impl->methods, "type", 
+            AXIS2_HASH_KEY_STRING, axis2_woden_interface_fault_type);
+
+    axis2_hash_set(interface_fault_impl->methods, "get_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_fault_get_qname);
+    axis2_hash_set(interface_fault_impl->methods, "get_element_declaration", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_fault_get_element_declaration);
+    axis2_hash_set(interface_fault_impl->methods, "to_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_fault_to_element);
+    axis2_hash_set(interface_fault_impl->methods, "set_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_fault_set_qname);
+    axis2_hash_set(interface_fault_impl->methods, "set_element_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_fault_set_element_qname);
+    axis2_hash_set(interface_fault_impl->methods, "get_element_qname", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_fault_get_element_qname);
+    axis2_hash_set(interface_fault_impl->methods, "get_element", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_fault_get_element);
+    axis2_hash_set(interface_fault_impl->methods, "set_element_declaration", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_fault_set_element_declaration);
+    axis2_hash_set(interface_fault_impl->methods, "set_types", 
+            AXIS2_HASH_KEY_STRING, 
+            axis2_woden_interface_fault_set_types);
+
+    return &(interface_fault_impl->interface_fault);
+}
+
+AXIS2_DECLARE(axis2_woden_interface_fault_t *)
+axis2_woden_interface_fault_create(axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+    void *configurable = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_fault_impl = (axis2_woden_interface_fault_impl_t *) create(env);
+
+    interface_fault_impl->nested_configurable = axis2_woden_nested_configurable_create(env);
+
+    interface_fault_impl->super = axis2_hash_make(env);
+    if(!interface_fault_impl->super) 
+    {
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        return NULL;
+    }
+    axis2_hash_set(interface_fault_impl->super, "AXIS2_WODEN_INTERFACE_FAULT", 
+            AXIS2_HASH_KEY_STRING, 
+            &(interface_fault_impl->interface_fault));
+    axis2_hash_set(interface_fault_impl->super, "AXIS2_WODEN_NESTED_CONFIGURABLE", 
+            AXIS2_HASH_KEY_STRING, 
+            interface_fault_impl->nested_configurable);
+    configurable = AXIS2_WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(
+            interface_fault_impl->nested_configurable, env);
+    axis2_hash_set(interface_fault_impl->super, "AXIS2_WODEN_CONFIGURABLE", 
+            AXIS2_HASH_KEY_STRING, configurable);
+ 
+    return &(interface_fault_impl->interface_fault);
+}
+
+static axis2_status_t
+axis2_woden_interface_fault_free_ops(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_fault_impl = INTF_TO_IMPL(interface_fault);
+
+    if(interface_fault_impl->interface_fault.base.interface_fault_element.ops)
+    {
+        AXIS2_FREE((*env)->allocator, interface_fault_impl->interface_fault.base.
+                interface_fault_element.ops);
+        interface_fault_impl->interface_fault.base.interface_fault_element.ops = NULL;
+    }
+
+    if(interface_fault_impl->interface_fault.base.nested_configurable.ops)
+    {
+        AXIS2_FREE((*env)->allocator, interface_fault_impl->interface_fault.base.
+                nested_configurable.ops);
+        interface_fault_impl->interface_fault.base.nested_configurable.ops = 
+            NULL;
+    }
+    
+    if(interface_fault_impl->interface_fault.base.nested_configurable.base.configurable.ops)
+    {
+        AXIS2_FREE((*env)->allocator, interface_fault_impl->interface_fault.base.
+                nested_configurable.base.configurable.ops);
+        interface_fault_impl->interface_fault.base.nested_configurable.base.configurable.ops = 
+            NULL;
+    }
+    
+    return AXIS2_SUCCESS;
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_fault_free(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_fault_impl = INTF_TO_IMPL(interface_fault);
+
+    if(interface_fault_impl->f_qname)
+    {
+        AXIS2_QNAME_FREE(interface_fault_impl->f_qname, env);
+        interface_fault_impl->f_qname = NULL;
+    }
+
+    if(interface_fault_impl->f_element_decl)
+    {
+        AXIS2_WODEN_ELEMENT_DECLARATION_FREE(interface_fault_impl->
+                f_element_decl, env);
+        interface_fault_impl->f_element_decl = NULL;
+    }
+
+    if(interface_fault_impl->f_element_qname)
+    {
+        AXIS2_QNAME_FREE(interface_fault_impl->f_element_qname, env);
+        interface_fault_impl->f_element_qname = NULL;
+    }
+
+    if(interface_fault_impl->f_types)
+    {
+        AXIS2_WODEN_TYPES_IMPL_FREE(interface_fault_impl->f_types, env);
+        interface_fault_impl->f_types = NULL;
+    }
+
+    if(interface_fault_impl->super)
+    {
+        axis2_hash_free(interface_fault_impl->super, env);
+        interface_fault_impl->super = NULL;
+    }
+    
+    if(interface_fault_impl->methods)
+    {
+        axis2_hash_free(interface_fault_impl->methods, env);
+        interface_fault_impl->methods = NULL;
+    }
+
+    if(interface_fault_impl->nested_configurable)
+    {
+        AXIS2_WODEN_NESTED_CONFIGURABLE_FREE(interface_fault_impl->
+                nested_configurable, env);
+        interface_fault_impl->nested_configurable = NULL;
+    }
+
+    axis2_woden_interface_fault_free_ops(interface_fault, env);
+
+    if(interface_fault_impl)
+    {
+        AXIS2_FREE((*env)->allocator, interface_fault_impl);
+        interface_fault_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+axis2_hash_t *AXIS2_CALL
+axis2_woden_interface_fault_super_objs(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_fault_impl = INTF_TO_IMPL(interface_fault);
+
+    return interface_fault_impl->super;
+}
+
+axis2_woden_obj_types_t AXIS2_CALL
+axis2_woden_interface_fault_type(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    interface_fault_impl = INTF_TO_IMPL(interface_fault);
+
+    return interface_fault_impl->obj_type;
+}
+
+axis2_woden_nested_configurable_t *AXIS2_CALL
+axis2_woden_interface_fault_get_base_impl(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    interface_fault_impl = INTF_TO_IMPL(interface_fault);
+
+    return interface_fault_impl->nested_configurable;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_fault_resolve_methods(
+        axis2_woden_interface_fault_t *interface_fault,
+        axis2_env_t **env,
+        axis2_woden_interface_fault_t *interface_fault_impl,
+        axis2_hash_t *methods)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl_l = NULL;
+    
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    interface_fault_impl_l = INTF_TO_IMPL(interface_fault_impl);
+    
+    interface_fault->ops->free = axis2_hash_get(methods, "free", 
+            AXIS2_HASH_KEY_STRING);
+    interface_fault->ops->super_objs = axis2_hash_get(methods, "super_objs", 
+            AXIS2_HASH_KEY_STRING);
+    interface_fault->ops->type = axis2_hash_get(methods, "type", 
+            AXIS2_HASH_KEY_STRING);
+    
+    interface_fault->ops->get_qname = axis2_hash_get(methods, 
+            "get_qname", AXIS2_HASH_KEY_STRING);
+    if(!interface_fault->ops->get_qname && interface_fault_impl_l)
+            interface_fault->ops->get_qname = 
+            interface_fault_impl_l->interface_fault.ops->get_qname;
+    
+    interface_fault->ops->get_element_declaration = axis2_hash_get(methods, 
+            "get_element_declaration", AXIS2_HASH_KEY_STRING);
+    if(!interface_fault->ops->get_element_declaration && interface_fault_impl_l)
+            interface_fault->ops->get_element_declaration = 
+            interface_fault_impl_l->interface_fault.ops->get_element_declaration;
+    
+    interface_fault->ops->to_element = axis2_hash_get(methods, 
+            "to_element", AXIS2_HASH_KEY_STRING);
+    if(!interface_fault->ops->to_element && interface_fault_impl_l)
+            interface_fault->ops->to_element = 
+            interface_fault_impl_l->interface_fault.ops->to_element;
+   
+    return AXIS2_SUCCESS;
+}
+
+/* ************************************************************
+ *  Interface Fault interface_fault methods (the WSDL Component model)
+ * ************************************************************/
+axis2_qname_t *AXIS2_CALL
+axis2_woden_interface_fault_get_qname(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, NULL);
+    super = AXIS2_WODEN_INTERFACE_FAULT_SUPER_OBJS(interface_fault, env);
+    interface_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE_FAULT", AXIS2_HASH_KEY_STRING));
+    
+    return interface_fault_impl->f_qname;
+}
+
+void *AXIS2_CALL
+axis2_woden_interface_fault_get_element_declaration(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_FAULT_SUPER_OBJS(interface_fault, env);
+    interface_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE_FAULT", AXIS2_HASH_KEY_STRING));
+
+    return interface_fault_impl->f_element_decl;
+}
+
+void *AXIS2_CALL
+axis2_woden_interface_fault_to_element(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_FAULT_SUPER_OBJS(interface_fault, env);
+    interface_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE_FAULT", AXIS2_HASH_KEY_STRING));
+    
+    return &(interface_fault_impl->interface_fault);
+}
+
+/* ************************************************************
+ *  Interface Fault Element interface_fault methods (the XML Element model)
+ * ************************************************************/
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_fault_set_qname(
+        void *interface_fault,
+        axis2_env_t **env,
+        axis2_qname_t *qname)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, qname, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_FAULT_SUPER_OBJS(interface_fault, env);
+    interface_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE_FAULT", AXIS2_HASH_KEY_STRING));
+
+    if(interface_fault_impl->f_qname)
+    {
+        AXIS2_QNAME_FREE(interface_fault_impl->f_qname, env);
+    }
+    interface_fault_impl->f_qname = AXIS2_QNAME_CLONE(qname, env);
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_fault_set_element_qname(
+        void *interface_fault,
+        axis2_env_t **env,
+        axis2_qname_t *qname)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, qname, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_FAULT_SUPER_OBJS(interface_fault, env);
+    interface_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE_FAULT", AXIS2_HASH_KEY_STRING));
+
+    if(!interface_fault_impl->f_element_qname)
+    {
+        AXIS2_QNAME_FREE(interface_fault_impl->f_element_qname, env);
+    }
+    interface_fault_impl->f_element_qname = AXIS2_QNAME_CLONE(qname, env);
+
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_qname_t *AXIS2_CALL
+axis2_woden_interface_fault_get_element_qname(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_FAULT_SUPER_OBJS(interface_fault, env);
+    interface_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE_FAULT", AXIS2_HASH_KEY_STRING));
+
+    return interface_fault_impl->f_element_qname;
+}
+
+void *AXIS2_CALL
+axis2_woden_interface_fault_get_element(
+        void *interface_fault,
+        axis2_env_t **env)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+    axis2_xml_schema_element_t *xse = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_FAULT_SUPER_OBJS(interface_fault, env);
+    interface_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE_FAULT", AXIS2_HASH_KEY_STRING));
+
+    if(interface_fault_impl->f_types)
+    {
+        xse = (axis2_xml_schema_element_t *) AXIS2_WODEN_TYPES_IMPL_GET_ELEMENT_DECLARATION(
+                interface_fault_impl->f_element_qname, env);
+    }
+    return xse;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_fault_set_element_declaration(
+        void *interface_fault,
+        axis2_env_t **env,
+        void *element_decl)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, element_decl, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_FAULT_SUPER_OBJS(interface_fault, env);
+    interface_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE_FAULT", AXIS2_HASH_KEY_STRING));
+
+    if(!interface_fault_impl->f_element_decl)
+    {
+        /* TODO */
+    }
+    interface_fault_impl->f_element_decl = element_decl;
+    
+
+    return AXIS2_SUCCESS;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_interface_fault_set_types(
+        void *interface_fault,
+        axis2_env_t **env,
+        void *types)
+{
+    axis2_woden_interface_fault_impl_t *interface_fault_impl = NULL;
+    axis2_hash_t *super = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, types, AXIS2_FAILURE);
+    super = AXIS2_WODEN_INTERFACE_FAULT_SUPER_OBJS(interface_fault, env);
+    interface_fault_impl = INTF_TO_IMPL(axis2_hash_get(super, 
+                "AXIS2_WODEN_INTERFACE_FAULT", AXIS2_HASH_KEY_STRING));
+
+    if(!interface_fault_impl->f_types)
+    {
+        /* TODO */
+    }
+    interface_fault_impl->f_types = types;
+    
+    return AXIS2_SUCCESS;
+}
+



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message