You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2005/06/13 15:51:31 UTC

svn commit: r190401 - in /webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl: WSDLFaultReference.java WSDLInterfaceFault.java impl/WSDLFaultReferenceImpl.java impl/WSDLInterfaceFaultImpl.java

Author: chathura
Date: Mon Jun 13 06:51:30 2005
New Revision: 190401

URL: http://svn.apache.org/viewcvs?rev=190401&view=rev
Log:
Added the missing Fault classes

Added:
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLFaultReference.java
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterfaceFault.java
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFaultReferenceImpl.java
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceFaultImpl.java

Added: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLFaultReference.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLFaultReference.java?rev=190401&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLFaultReference.java (added)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLFaultReference.java Mon Jun 13 06:51:30 2005
@@ -0,0 +1,65 @@
+/*
+ * 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.
+ */
+package org.apache.wsdl;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public interface WSDLFaultReference extends Component {
+    /**
+     * Returns the direction of the Fault according the MEP
+     *
+     * @return
+     */
+    public String getDirection();
+
+    /**
+     * Sets the direction of the Fault.
+     *
+     * @param direction
+     */
+    public void setDirection(String direction);
+
+    /**
+     * Method getMessageLabel
+     *
+     * @return
+     */
+    public String getMessageLabel();
+
+    /**
+     * Method setMessageLabel
+     *
+     * @param messageLabel
+     */
+    public void setMessageLabel(String messageLabel);
+
+    /**
+     * Returns the Fault reference.
+     *
+     * @return
+     */
+    public QName getRef();
+
+    /**
+     * Sets the Fault reference.
+     *
+     * @param ref
+     */
+    public void setRef(QName ref);
+}

Added: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterfaceFault.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterfaceFault.java?rev=190401&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterfaceFault.java (added)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/WSDLInterfaceFault.java Mon Jun 13 06:51:30 2005
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2001-2004 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.
+ */
+
+package org.apache.wsdl;
+
+import javax.xml.namespace.QName;
+
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public interface WSDLInterfaceFault extends Component{
+	public QName getElement();
+
+	public void setElement(QName element);
+
+	public QName getName();
+
+	public void setName(QName name);
+}
\ No newline at end of file

Added: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFaultReferenceImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFaultReferenceImpl.java?rev=190401&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFaultReferenceImpl.java (added)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLFaultReferenceImpl.java Mon Jun 13 06:51:30 2005
@@ -0,0 +1,103 @@
+/*
+ * 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.
+ */
+package org.apache.wsdl.impl;
+
+import javax.xml.namespace.QName;
+
+import org.apache.wsdl.WSDLFaultReference;
+
+/**
+ * @author chathura@opensource.lk
+ */
+public class WSDLFaultReferenceImpl extends ComponentImpl
+        implements WSDLFaultReference {
+
+    
+
+    /**
+     * Field ref
+     */
+    private QName ref;
+
+    
+    /**
+     * Field messageLabel 
+     */
+    private String messageLabel;
+
+    /**
+     * Field direction In or Out
+     */
+    private String direction;
+
+    
+    public WSDLFaultReferenceImpl(){
+    	
+    }
+    /**
+     * Returns the direction of the Fault according the MEP
+     *
+     * @return
+     */
+    public String getDirection() {
+        return direction;
+    }
+
+    /**
+     * Sets the direction of the Fault.
+     *
+     * @param direction
+     */
+    public void setDirection(String direction) {
+        this.direction = direction;
+    }
+
+    /**
+     * Method getMessageLabel
+     *
+     * @return
+     */
+    public String getMessageLabel() {
+        return messageLabel;
+    }
+
+    /**
+     * Method setMessageLabel
+     *
+     * @param messageLabel
+     */
+    public void setMessageLabel(String messageLabel) {
+        this.messageLabel = messageLabel;
+    }
+
+    /**
+     * Returns the Fault reference.
+     *
+     * @return
+     */
+    public QName getRef() {
+        return ref;
+    }
+
+    /**
+     * Sets the Fault reference.
+     *
+     * @param ref
+     */
+    public void setRef(QName ref) {
+        this.ref = ref;
+    }
+}

Added: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceFaultImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceFaultImpl.java?rev=190401&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceFaultImpl.java (added)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/impl/WSDLInterfaceFaultImpl.java Mon Jun 13 06:51:30 2005
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2001-2004 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.
+ */
+
+package org.apache.wsdl.impl;
+
+import javax.xml.namespace.QName;
+
+import org.apache.wsdl.WSDLInterfaceFault;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public class WSDLInterfaceFaultImpl extends ComponentImpl implements WSDLInterfaceFault {
+	
+	/**
+	 * Consist of the NCName and the namespace as the target namespace of the 
+	 * Description Component.
+	 */
+	private QName name;
+	
+	private QName element;
+	
+	
+
+	public QName getElement() {
+		return element;
+	}
+	public void setElement(QName element) {
+		this.element = element;
+	}
+	public QName getName() {
+		return name;
+	}
+	public void setName(QName name) {
+		this.name = name;
+	}
+}