You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by jk...@apache.org on 2005/11/27 18:08:35 UTC
svn commit: r349263 - in
/incubator/woden/java/src/org/apache/woden/internal/wsdl20:
BindingFaultReferenceImpl.java BindingMessageReferenceImpl.java
Author: jkaputin
Date: Sun Nov 27 09:08:29 2005
New Revision: 349263
URL: http://svn.apache.org/viewcvs?rev=349263&view=rev
Log:
Completed model implementation for binding message
reference and binding fault reference.
Added:
incubator/woden/java/src/org/apache/woden/internal/wsdl20/BindingFaultReferenceImpl.java
incubator/woden/java/src/org/apache/woden/internal/wsdl20/BindingMessageReferenceImpl.java
Added: incubator/woden/java/src/org/apache/woden/internal/wsdl20/BindingFaultReferenceImpl.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/BindingFaultReferenceImpl.java?rev=349263&view=auto
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/wsdl20/BindingFaultReferenceImpl.java (added)
+++ incubator/woden/java/src/org/apache/woden/internal/wsdl20/BindingFaultReferenceImpl.java Sun Nov 27 09:08:29 2005
@@ -0,0 +1,109 @@
+/**
+ * Copyright 2005 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.woden.internal.wsdl20;
+
+import javax.xml.namespace.QName;
+
+import org.apache.woden.wsdl20.BindingFaultReference;
+import org.apache.woden.wsdl20.InterfaceFaultReference;
+import org.apache.woden.wsdl20.enumeration.Direction;
+import org.apache.woden.wsdl20.enumeration.MessageLabel;
+import org.apache.woden.wsdl20.xml.FaultReferenceElement;
+
+/**
+ * This class represents the BindingFaultReference component of the
+ * WSDL 2.0 Component model and the <infault> or <outfault>
+ * child element of a WSDL binding <operation>.
+ *
+ * @author jkaputin@apache.org
+ */
+public class BindingFaultReferenceImpl extends NestedConfigurableImpl
+ implements BindingFaultReference, FaultReferenceElement
+{
+ private QName fRef = null;
+ private Direction fDirection = null;
+ private MessageLabel fMessageLabel = null;
+ private InterfaceFaultReference fInterfaceFaultRef = null;
+
+ /* ************************************************************
+ * BindingFaultReference interface methods (i.e. WSDL Component model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.BindingFaultReference#getInterfaceFaultReference()
+ */
+ public InterfaceFaultReference getInterfaceFaultReference() {
+ return fInterfaceFaultRef;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.BindingFaultReference#toElement()
+ */
+ public FaultReferenceElement toElement() {
+ return this;
+ }
+
+ /* ************************************************************
+ * FaultReferenceElement interface methods (the XML Element model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.FaultReferenceElement#setRef(javax.xml.namespace.QName)
+ */
+ public void setRef(QName qname) {
+ fRef = qname;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.FaultReferenceElement#getRef()
+ */
+ public QName getRef() {
+ return fRef;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.FaultReferenceElement#setMessageLabel(org.apache.woden.wsdl20.enumeration.MessageLabel)
+ */
+ public void setMessageLabel(MessageLabel msgLabel) {
+ fMessageLabel = msgLabel;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.FaultReferenceElement#getMessageLabel()
+ */
+ public MessageLabel getMessageLabel() {
+ return fMessageLabel;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.FaultReferenceElement#setDirection(org.apache.woden.wsdl20.enumeration.Direction)
+ */
+ public void setDirection(Direction dir) {
+ fDirection = dir;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.FaultReferenceElement#getDirection()
+ */
+ public Direction getDirection() {
+ return fDirection;
+ }
+
+ /* ************************************************************
+ * Non-API implementation methods
+ * ************************************************************/
+
+}
Added: incubator/woden/java/src/org/apache/woden/internal/wsdl20/BindingMessageReferenceImpl.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/BindingMessageReferenceImpl.java?rev=349263&view=auto
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/wsdl20/BindingMessageReferenceImpl.java (added)
+++ incubator/woden/java/src/org/apache/woden/internal/wsdl20/BindingMessageReferenceImpl.java Sun Nov 27 09:08:29 2005
@@ -0,0 +1,93 @@
+/**
+ * Copyright 2005 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.woden.internal.wsdl20;
+
+import org.apache.woden.wsdl20.BindingMessageReference;
+import org.apache.woden.wsdl20.InterfaceMessageReference;
+import org.apache.woden.wsdl20.enumeration.Direction;
+import org.apache.woden.wsdl20.enumeration.MessageLabel;
+import org.apache.woden.wsdl20.xml.BindingMessageReferenceElement;
+
+/**
+ * This class represents the BindingMessageReference component of the
+ * WSDL 2.0 Component model and the <input> and <output>
+ * child elements of a WSDL binding <operation>.
+ *
+ * @author jkaputin@apache.org
+ */
+public class BindingMessageReferenceImpl extends NestedConfigurableImpl
+ implements BindingMessageReference,
+ BindingMessageReferenceElement
+{
+ private Direction fDirection = null;
+ private MessageLabel fMessageLabel = null;
+ private InterfaceMessageReference fInterfaceMsgRef = null;
+
+ /* ************************************************************
+ * BindingMessageReference interface methods (i.e. WSDL Component model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.BindingMessageReference#getInterfaceMessageReference()
+ */
+ public InterfaceMessageReference getInterfaceMessageReference() {
+ return fInterfaceMsgRef;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.BindingMessageReference#toElement()
+ */
+ public BindingMessageReferenceElement toElement() {
+ return this;
+ }
+
+ /* ************************************************************
+ * BindingMessageReferenceElement interface methods (the XML Element model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingMessageReferenceElement#setDirection(org.apache.woden.wsdl20.enumeration.Direction)
+ */
+ public void setDirection(Direction dir) {
+ fDirection = dir;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingMessageReferenceElement#getDirection()
+ */
+ public Direction getDirection() {
+ return fDirection;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingMessageReferenceElement#setMessageLabel(org.apache.woden.wsdl20.enumeration.MessageLabel)
+ */
+ public void setMessageLabel(MessageLabel msgLabel) {
+ fMessageLabel = msgLabel;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingMessageReferenceElement#getMessageLabel()
+ */
+ public MessageLabel getMessageLabel() {
+ return fMessageLabel;
+ }
+
+ /* ************************************************************
+ * Non-API implementation methods
+ * ************************************************************/
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org