axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r410735 - in /webservices/axis2/trunk/c/woden/src/wsdl20/enumeration: ./ Makefile.am direction.c msg_label.c soap_fault_code.c soap_fault_subcodes.c
Date Thu, 01 Jun 2006 04:03:08 GMT
Author: damitha
Date: Wed May 31 21:03:07 2006
New Revision: 410735

URL: http://svn.apache.org/viewvc?rev=410735&view=rev
Log:
Added new folder and files

Added:
    webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/
    webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/Makefile.am
    webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/direction.c
    webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/msg_label.c
    webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/soap_fault_code.c
    webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/soap_fault_subcodes.c

Added: webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/Makefile.am?rev=410735&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/Makefile.am (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/Makefile.am Wed May 31 21:03:07
2006
@@ -0,0 +1,12 @@
+noinst_LTLIBRARIES = libaxis2_woden_enumeration.la
+
+libaxis2_woden_enumeration_la_SOURCES = \
+							msg_label.c \
+							direction.c \
+							soap_fault_code.c \
+							soap_fault_subcodes.c
+
+INCLUDES = -I$(top_builddir)/include \
+			@AXIOMINC@ \
+			@UTILINC@ \
+			@XMLSCHEMAINC@

Added: webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/direction.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/direction.c?rev=410735&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/direction.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/direction.c Wed May 31 21:03:07
2006
@@ -0,0 +1,171 @@
+/*
+ * 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/wsdl20/enumeration/axis2_woden_direction.h>
+
+typedef struct axis2_woden_direction_impl axis2_woden_direction_impl_t;
+
+/** 
+ * @brief Direction Struct Impl
+ *	Axis2 Direction  
+ */ 
+struct axis2_woden_direction_impl
+{
+    axis2_woden_direction_t direction;
+    axis2_char_t *f_value;
+};
+
+#define INTF_TO_IMPL(direction) ((axis2_woden_direction_impl_t *) direction)
+
+static axis2_woden_direction_t *WODEN_DIRECTION_IN = NULL;
+static axis2_woden_direction_t *WODEN_DIRECTION_OUT = NULL;
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_direction_free(
+        void *direction,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_direction_get_direction_in(
+        void *direction,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_direction_get_direction_out(
+        void *direction,
+        axis2_env_t **env);
+
+axis2_char_t *AXIS2_CALL
+axis2_woden_direction_to_string(
+        void *direction,
+        axis2_env_t **env);
+
+static axis2_woden_direction_t *
+create(
+        axis2_env_t **env)
+{
+    axis2_woden_direction_impl_t *direction_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    direction_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_direction_impl_t));
+
+    direction_impl->f_value = NULL;
+   
+    direction_impl->direction.ops = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_direction_ops_t));
+    
+    direction_impl->direction.ops->free = axis2_woden_direction_free;
+
+    direction_impl->direction.ops->get_direction_in = 
+        axis2_woden_direction_get_direction_in;
+    direction_impl->direction.ops->get_direction_out = 
+        axis2_woden_direction_get_direction_out;
+    direction_impl->direction.ops->to_string = axis2_woden_direction_to_string;
+    
+
+    return &(direction_impl->direction);
+}
+
+AXIS2_DECLARE(axis2_woden_direction_t *)
+axis2_woden_direction_create(
+        axis2_env_t **env,
+        axis2_char_t *value)
+{
+    axis2_woden_direction_impl_t *direction_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    direction_impl = (axis2_woden_direction_impl_t *) create(env);
+
+    direction_impl->f_value = AXIS2_STRDUP(value, env);
+
+    return &(direction_impl->direction);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_direction_free(
+        void *direction,
+        axis2_env_t **env)
+{
+    axis2_woden_direction_impl_t *direction_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    direction_impl = INTF_TO_IMPL(direction);
+
+    if(direction_impl->f_value)
+    {
+        AXIS2_FREE((*env)->allocator, direction_impl->f_value);
+        direction_impl->f_value = NULL;
+    }
+
+    if((&(direction_impl->direction))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(direction_impl->direction))->ops);
+        (&(direction_impl->direction))->ops = NULL;
+    }
+
+    if(direction_impl)
+    {
+        AXIS2_FREE((*env)->allocator, direction_impl);
+        direction_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+axis2_woden_direction_get_direction_in(
+        void *direction,
+        axis2_env_t **env)
+{
+    axis2_woden_direction_impl_t *direction_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    direction_impl = INTF_TO_IMPL(direction);
+    
+    if(!WODEN_DIRECTION_IN)
+        WODEN_DIRECTION_IN = axis2_woden_direction_create(env, "in");
+
+    return WODEN_DIRECTION_IN;
+}
+
+void *AXIS2_CALL
+axis2_woden_direction_get_direction_out(
+        void *direction,
+        axis2_env_t **env)
+{
+    axis2_woden_direction_impl_t *direction_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    direction_impl = INTF_TO_IMPL(direction);
+
+    if(!WODEN_DIRECTION_OUT)
+        WODEN_DIRECTION_OUT = axis2_woden_direction_create(env, "out");
+    return WODEN_DIRECTION_OUT;
+}
+
+axis2_char_t *AXIS2_CALL
+axis2_woden_direction_to_string(
+        void *direction,
+        axis2_env_t **env)
+{
+    axis2_woden_direction_impl_t *direction_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    direction_impl = INTF_TO_IMPL(direction);
+
+    return direction_impl->f_value;
+}
+

Added: webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/msg_label.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/msg_label.c?rev=410735&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/msg_label.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/msg_label.c Wed May 31 21:03:07
2006
@@ -0,0 +1,224 @@
+/*
+ * 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/wsdl20/enumeration/axis2_woden_msg_label.h>
+
+typedef struct axis2_woden_msg_label_impl axis2_woden_msg_label_impl_t;
+
+/** 
+ * @brief Message Label Struct Impl
+ *	Axis2 Message Label  
+ */ 
+struct axis2_woden_msg_label_impl
+{
+    axis2_woden_msg_label_t msg_label;
+    axis2_char_t *f_value;
+    axis2_bool_t f_valid;
+};
+
+#define INTF_TO_IMPL(msg_label) ((axis2_woden_msg_label_impl_t *) msg_label)
+
+static axis2_woden_msg_label_t *WODEN_MSG_LABEL_IN = NULL;
+static axis2_woden_msg_label_t *WODEN_MSG_LABEL_OUT = NULL;
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_msg_label_free(
+        void *msg_label,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_msg_label_get_msg_label_in(
+        void *msg_label,
+        axis2_env_t **env);
+
+void *AXIS2_CALL
+axis2_woden_msg_label_get_msg_label_out(
+        void *msg_label,
+        axis2_env_t **env);
+
+axis2_char_t *AXIS2_CALL
+axis2_woden_msg_label_to_string(
+        void *msg_label,
+        axis2_env_t **env);
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_msg_label_is_valid(
+        void *msg_label,
+        axis2_env_t **env);
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_msg_label_equals(
+        void *msg_label,
+        axis2_env_t **env,
+        axis2_woden_msg_label_t *other);
+
+static axis2_woden_msg_label_t *
+create(
+        axis2_env_t **env)
+{
+    axis2_woden_msg_label_impl_t *msg_label_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    msg_label_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_msg_label_impl_t));
+
+    msg_label_impl->f_value = NULL;
+    msg_label_impl->f_valid = AXIS2_TRUE;
+   
+    msg_label_impl->msg_label.ops = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_msg_label_ops_t));
+    
+    msg_label_impl->msg_label.ops->free = axis2_woden_msg_label_free;
+
+    msg_label_impl->msg_label.ops->get_msg_label_in = 
+        axis2_woden_msg_label_get_msg_label_in;
+    msg_label_impl->msg_label.ops->get_msg_label_out = 
+        axis2_woden_msg_label_get_msg_label_out;
+    msg_label_impl->msg_label.ops->to_string = axis2_woden_msg_label_to_string;
+    msg_label_impl->msg_label.ops->is_valid = axis2_woden_msg_label_is_valid;
+    msg_label_impl->msg_label.ops->equals = axis2_woden_msg_label_equals;
+    
+
+    return &(msg_label_impl->msg_label);
+}
+
+AXIS2_DECLARE(axis2_woden_msg_label_t *)
+axis2_woden_msg_label_create(
+        axis2_env_t **env,
+        axis2_char_t *value,
+        axis2_bool_t valid)
+{
+    axis2_woden_msg_label_impl_t *msg_label_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    msg_label_impl = (axis2_woden_msg_label_impl_t *) create(env);
+
+    msg_label_impl->f_value = AXIS2_STRDUP(value, env);
+    msg_label_impl->f_valid = valid;
+
+    return &(msg_label_impl->msg_label);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_msg_label_free(
+        void *msg_label,
+        axis2_env_t **env)
+{
+    axis2_woden_msg_label_impl_t *msg_label_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    msg_label_impl = INTF_TO_IMPL(msg_label);
+
+    if(msg_label_impl->f_value)
+    {
+        AXIS2_FREE((*env)->allocator, msg_label_impl->f_value);
+        msg_label_impl->f_value = NULL;
+    }
+
+    if((&(msg_label_impl->msg_label))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(msg_label_impl->msg_label))->ops);
+        (&(msg_label_impl->msg_label))->ops = NULL;
+    }
+
+    if(msg_label_impl)
+    {
+        AXIS2_FREE((*env)->allocator, msg_label_impl);
+        msg_label_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+axis2_woden_msg_label_get_msg_label_in(
+        void *msg_label,
+        axis2_env_t **env)
+{
+    axis2_woden_msg_label_impl_t *msg_label_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    msg_label_impl = INTF_TO_IMPL(msg_label);
+
+    if(!WODEN_MSG_LABEL_IN)
+        WODEN_MSG_LABEL_IN = axis2_woden_msg_label_create(env, "In", AXIS2_TRUE);
+
+    return WODEN_MSG_LABEL_IN;
+}
+
+void *AXIS2_CALL
+axis2_woden_msg_label_get_msg_label_out(
+        void *msg_label,
+        axis2_env_t **env)
+{
+    axis2_woden_msg_label_impl_t *msg_label_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    msg_label_impl = INTF_TO_IMPL(msg_label);
+
+    if(!WODEN_MSG_LABEL_OUT)
+        WODEN_MSG_LABEL_OUT = axis2_woden_msg_label_create(env, "Out", AXIS2_TRUE);
+
+    return WODEN_MSG_LABEL_OUT;
+}
+
+axis2_char_t *AXIS2_CALL
+axis2_woden_msg_label_to_string(
+        void *msg_label,
+        axis2_env_t **env)
+{
+    axis2_woden_msg_label_impl_t *msg_label_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    msg_label_impl = INTF_TO_IMPL(msg_label);
+
+    return msg_label_impl->f_value;
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_msg_label_is_valid(
+        void *msg_label,
+        axis2_env_t **env)
+{
+    axis2_woden_msg_label_impl_t *msg_label_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    msg_label_impl = INTF_TO_IMPL(msg_label);
+
+    return msg_label_impl->f_valid;
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_msg_label_equals(
+        void *msg_label,
+        axis2_env_t **env,
+        axis2_woden_msg_label_t *other)
+{
+    axis2_woden_msg_label_impl_t *msg_label_impl = NULL;
+    axis2_char_t *value = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, other, AXIS2_FAILURE);
+    msg_label_impl = INTF_TO_IMPL(msg_label);
+
+    value = AXIS2_WODEN_MSG_LABEL_TO_STRING(other, env);
+    if(0 == AXIS2_STRCMP(msg_label_impl->f_value, value))
+    {
+        return AXIS2_TRUE;
+    }
+
+    return AXIS2_FALSE;
+}
+

Added: webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/soap_fault_code.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/soap_fault_code.c?rev=410735&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/soap_fault_code.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/soap_fault_code.c Wed May 31 21:03:07
2006
@@ -0,0 +1,211 @@
+/*
+ * 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/wsdl20/enumeration/axis2_woden_soap_fault_code.h>
+
+typedef struct axis2_woden_soap_fault_code_impl axis2_woden_soap_fault_code_impl_t;
+
+/** 
+ * @brief Soap Fault Code Struct Impl
+ *	Axis2 Soap Fault Code  
+ */ 
+struct axis2_woden_soap_fault_code_impl
+{
+    axis2_woden_soap_fault_code_t soap_fault_code;
+    axis2_char_t *f_token;
+    axis2_qname_t *f_code_qn;
+};
+
+#define INTF_TO_IMPL(soap_fault_code) ((axis2_woden_soap_fault_code_impl_t *) soap_fault_code)
+
+static void *WODEN_SOAP_FAULT_CODE_ANY = NULL;
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_soap_fault_code_free(
+        void *soap_fault_code,
+        axis2_env_t **env);
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_soap_fault_code_is_qname(
+        void *soap_fault_code,
+        axis2_env_t **env);
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_soap_fault_code_is_token(
+        void *soap_fault_code,
+        axis2_env_t **env);
+
+axis2_qname_t *AXIS2_CALL
+axis2_woden_soap_fault_code_get_qname(
+        void *soap_fault_code,
+        axis2_env_t **env);
+
+axis2_char_t *AXIS2_CALL
+axis2_woden_soap_fault_code_get_token(
+        void *soap_fault_code,
+        axis2_env_t **env);
+
+
+static axis2_woden_soap_fault_code_t *
+create(
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_code_impl_t *soap_fault_code_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_code_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_soap_fault_code_impl_t));
+
+    soap_fault_code_impl->f_token = NULL;
+    soap_fault_code_impl->f_code_qn = NULL;
+   
+    soap_fault_code_impl->soap_fault_code.ops = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_soap_fault_code_ops_t));
+    
+    soap_fault_code_impl->soap_fault_code.ops->free = axis2_woden_soap_fault_code_free;
+
+    soap_fault_code_impl->soap_fault_code.ops->is_qname = 
+        axis2_woden_soap_fault_code_is_qname;
+    soap_fault_code_impl->soap_fault_code.ops->is_token = 
+        axis2_woden_soap_fault_code_is_token;
+    soap_fault_code_impl->soap_fault_code.ops->get_qname = 
+        axis2_woden_soap_fault_code_get_qname;
+    soap_fault_code_impl->soap_fault_code.ops->get_token = 
+        axis2_woden_soap_fault_code_get_token;
+    
+
+    return &(soap_fault_code_impl->soap_fault_code);
+}
+
+AXIS2_DECLARE(axis2_woden_soap_fault_code_t *)
+axis2_woden_soap_fault_code_create(
+        axis2_env_t **env,
+        axis2_char_t *token,
+        axis2_qname_t *code_qn)
+{
+    axis2_woden_soap_fault_code_impl_t *soap_fault_code_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_code_impl = (axis2_woden_soap_fault_code_impl_t *) create(env);
+
+    soap_fault_code_impl->f_token = AXIS2_STRDUP(token, env);
+    soap_fault_code_impl->f_code_qn = AXIS2_QNAME_CLONE(code_qn, env);
+
+    return &(soap_fault_code_impl->soap_fault_code);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_soap_fault_code_free(
+        void *soap_fault_code,
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_code_impl_t *soap_fault_code_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_code_impl = INTF_TO_IMPL(soap_fault_code);
+
+    if(soap_fault_code_impl->f_token)
+    {
+        AXIS2_FREE((*env)->allocator, soap_fault_code_impl->f_token);
+        soap_fault_code_impl->f_token = NULL;
+    }
+
+    if(soap_fault_code_impl->f_code_qn)
+    {
+        AXIS2_QNAME_FREE(soap_fault_code_impl->f_code_qn, env);
+        soap_fault_code_impl->f_code_qn = NULL;
+    }
+
+    if((&(soap_fault_code_impl->soap_fault_code))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(soap_fault_code_impl->soap_fault_code))->ops);
+        (&(soap_fault_code_impl->soap_fault_code))->ops = NULL;
+    }
+
+    if(soap_fault_code_impl)
+    {
+        AXIS2_FREE((*env)->allocator, soap_fault_code_impl);
+        soap_fault_code_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+axis2_woden_soap_fault_code_get_soap_fault_code_any(
+        axis2_env_t **env)
+{
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+    if(!WODEN_SOAP_FAULT_CODE_ANY)
+        WODEN_SOAP_FAULT_CODE_ANY = axis2_woden_soap_fault_code_create(env, 
+                "#any", NULL);
+
+    return WODEN_SOAP_FAULT_CODE_ANY;
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_soap_fault_code_get_soap_fault_code_is_qname(
+        void *soap_fault_code,
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_code_impl_t *soap_fault_code_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_code_impl = INTF_TO_IMPL(soap_fault_code);
+
+    return (NULL != soap_fault_code_impl->f_code_qn);
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_soap_fault_code_is_token(
+        void *soap_fault_code,
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_code_impl_t *soap_fault_code_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_code_impl = INTF_TO_IMPL(soap_fault_code);
+
+    return (NULL != soap_fault_code_impl->f_token);
+}
+
+axis2_qname_t *AXIS2_CALL
+axis2_woden_soap_fault_code_get_qname(
+        void *soap_fault_code,
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_code_impl_t *soap_fault_code_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_code_impl = INTF_TO_IMPL(soap_fault_code);
+
+    return soap_fault_code_impl->f_code_qn;
+}
+
+axis2_char_t *AXIS2_CALL
+axis2_woden_soap_fault_code_get_token(
+        void *soap_fault_code,
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_code_impl_t *soap_fault_code_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_code_impl = INTF_TO_IMPL(soap_fault_code);
+
+    return soap_fault_code_impl->f_token;
+}
+

Added: webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/soap_fault_subcodes.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/soap_fault_subcodes.c?rev=410735&view=auto
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/soap_fault_subcodes.c (added)
+++ webservices/axis2/trunk/c/woden/src/wsdl20/enumeration/soap_fault_subcodes.c Wed May 31
21:03:07 2006
@@ -0,0 +1,222 @@
+/*
+ * 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/wsdl20/enumeration/axis2_woden_soap_fault_subcodes.h>
+
+typedef struct axis2_woden_soap_fault_subcodes_impl axis2_woden_soap_fault_subcodes_impl_t;
+
+/** 
+ * @brief Soap Fault Subcodes Struct Impl
+ *	Axis2 Soap Fault Subcodes  
+ */ 
+struct axis2_woden_soap_fault_subcodes_impl
+{
+    axis2_woden_soap_fault_subcodes_t soap_fault_subcodes;
+    axis2_char_t *f_token;
+    axis2_array_list_t *f_subcode_qns;
+};
+
+#define INTF_TO_IMPL(soap_fault_subcodes) ((axis2_woden_soap_fault_subcodes_impl_t *) soap_fault_subcodes)
+
+static void *WODEN_SOAP_FAULT_SUBCODES_ANY = NULL;
+
+axis2_status_t AXIS2_CALL 
+axis2_woden_soap_fault_subcodes_free(
+        void *soap_fault_subcodes,
+        axis2_env_t **env);
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_soap_fault_subcodes_is_qnames(
+        void *soap_fault_subcodes,
+        axis2_env_t **env);
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_soap_fault_subcodes_is_token(
+        void *soap_fault_subcodes,
+        axis2_env_t **env);
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_soap_fault_subcodes_get_qnames(
+        void *soap_fault_subcodes,
+        axis2_env_t **env);
+
+axis2_char_t *AXIS2_CALL
+axis2_woden_soap_fault_subcodes_get_token(
+        void *soap_fault_subcodes,
+        axis2_env_t **env);
+
+
+static axis2_woden_soap_fault_subcodes_t *
+create(
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_subcodes_impl_t *soap_fault_subcodes_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_subcodes_impl = AXIS2_MALLOC((*env)->allocator, 
+                    sizeof(axis2_woden_soap_fault_subcodes_impl_t));
+
+    soap_fault_subcodes_impl->f_token = NULL;
+    soap_fault_subcodes_impl->f_subcode_qns = NULL;
+   
+    soap_fault_subcodes_impl->soap_fault_subcodes.ops = AXIS2_MALLOC((*env)->allocator,

+                    sizeof(axis2_woden_soap_fault_subcodes_ops_t));
+    
+    soap_fault_subcodes_impl->soap_fault_subcodes.ops->free = axis2_woden_soap_fault_subcodes_free;
+
+    soap_fault_subcodes_impl->soap_fault_subcodes.ops->is_qnames = 
+        axis2_woden_soap_fault_subcodes_is_qnames;
+    soap_fault_subcodes_impl->soap_fault_subcodes.ops->is_token = 
+        axis2_woden_soap_fault_subcodes_is_token;
+    soap_fault_subcodes_impl->soap_fault_subcodes.ops->get_qnames = 
+        axis2_woden_soap_fault_subcodes_get_qnames;
+    soap_fault_subcodes_impl->soap_fault_subcodes.ops->get_token = 
+        axis2_woden_soap_fault_subcodes_get_token;
+    
+
+    return &(soap_fault_subcodes_impl->soap_fault_subcodes);
+}
+
+AXIS2_DECLARE(axis2_woden_soap_fault_subcodes_t *)
+axis2_woden_soap_fault_subcodes_create(
+        axis2_env_t **env,
+        axis2_char_t *token,
+        axis2_array_list_t *subcode_qns)
+{
+    axis2_woden_soap_fault_subcodes_impl_t *soap_fault_subcodes_impl = NULL;
+   
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_subcodes_impl = (axis2_woden_soap_fault_subcodes_impl_t *) create(env);
+
+    soap_fault_subcodes_impl->f_token = AXIS2_STRDUP(token, env);
+    soap_fault_subcodes_impl->f_subcode_qns = subcode_qns;
+
+    return &(soap_fault_subcodes_impl->soap_fault_subcodes);
+}
+
+axis2_status_t AXIS2_CALL
+axis2_woden_soap_fault_subcodes_free(
+        void *soap_fault_subcodes,
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_subcodes_impl_t *soap_fault_subcodes_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_subcodes_impl = INTF_TO_IMPL(soap_fault_subcodes);
+
+    if(soap_fault_subcodes_impl->f_token)
+    {
+        AXIS2_FREE((*env)->allocator, soap_fault_subcodes_impl->f_token);
+        soap_fault_subcodes_impl->f_token = NULL;
+    }
+
+    if(soap_fault_subcodes_impl->f_subcode_qns)
+    {
+        int i = 0, size = 0;
+
+        size = AXIS2_ARRAY_LIST_SIZE(soap_fault_subcodes_impl->f_subcode_qns,
+                env);
+        for(i = 0; i < size; i++)
+        {
+            axis2_qname_t *qname = AXIS2_ARRAY_LIST_GET(soap_fault_subcodes_impl->
+                    f_subcode_qns, env, i);
+            AXIS2_QNAME_FREE(qname, env);
+        }
+        AXIS2_ARRAY_LIST_FREE(soap_fault_subcodes_impl->f_subcode_qns, env);
+        soap_fault_subcodes_impl->f_subcode_qns = NULL;
+    }
+
+    if((&(soap_fault_subcodes_impl->soap_fault_subcodes))->ops)
+    {
+        AXIS2_FREE((*env)->allocator, (&(soap_fault_subcodes_impl->soap_fault_subcodes))->ops);
+        (&(soap_fault_subcodes_impl->soap_fault_subcodes))->ops = NULL;
+    }
+
+    if(soap_fault_subcodes_impl)
+    {
+        AXIS2_FREE((*env)->allocator, soap_fault_subcodes_impl);
+        soap_fault_subcodes_impl = NULL;
+    }
+    return AXIS2_SUCCESS;
+}
+
+void *AXIS2_CALL
+axis2_woden_soap_fault_subcodes_get_soap_fault_subcodes_any(
+        axis2_env_t **env)
+{
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+    if(!WODEN_SOAP_FAULT_SUBCODES_ANY)
+        WODEN_SOAP_FAULT_SUBCODES_ANY = axis2_woden_soap_fault_subcodes_create(env, 
+                "#any", NULL);
+
+    return WODEN_SOAP_FAULT_SUBCODES_ANY;
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_soap_fault_subcodes_get_soap_fault_subcodes_is_qnames(
+        void *soap_fault_subcodes,
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_subcodes_impl_t *soap_fault_subcodes_impl = NULL;
+    int size = 0;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_subcodes_impl = INTF_TO_IMPL(soap_fault_subcodes);
+
+    size = AXIS2_ARRAY_LIST_SIZE(soap_fault_subcodes_impl->f_subcode_qns, env);
+    return (size > 0);
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_woden_soap_fault_subcodes_is_token(
+        void *soap_fault_subcodes,
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_subcodes_impl_t *soap_fault_subcodes_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_subcodes_impl = INTF_TO_IMPL(soap_fault_subcodes);
+
+    return (NULL != soap_fault_subcodes_impl->f_token);
+}
+
+axis2_array_list_t *AXIS2_CALL
+axis2_woden_soap_fault_subcodes_get_qnames(
+        void *soap_fault_subcodes,
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_subcodes_impl_t *soap_fault_subcodes_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_subcodes_impl = INTF_TO_IMPL(soap_fault_subcodes);
+
+    return soap_fault_subcodes_impl->f_subcode_qns;
+}
+
+axis2_char_t *AXIS2_CALL
+axis2_woden_soap_fault_subcodes_get_token(
+        void *soap_fault_subcodes,
+        axis2_env_t **env)
+{
+    axis2_woden_soap_fault_subcodes_impl_t *soap_fault_subcodes_impl = NULL;
+
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+    soap_fault_subcodes_impl = INTF_TO_IMPL(soap_fault_subcodes);
+
+    return soap_fault_subcodes_impl->f_token;
+}
+



---------------------------------------------------------------------
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