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 2007/08/23 13:01:35 UTC
svn commit: r568932 [14/36] - in
/incubator/woden/trunk/java/src/org/apache/woden: ./ ant/ internal/
internal/resolver/ internal/schema/ internal/util/ internal/util/dom/
internal/util/om/ internal/wsdl20/ internal/wsdl20/extensions/
internal/wsdl20/ex...
Modified: incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingFaultImpl.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingFaultImpl.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingFaultImpl.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingFaultImpl.java Thu Aug 23 04:01:23 2007
@@ -1,123 +1,123 @@
-/**
+/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.types.NCName;
-
-import org.apache.woden.wsdl20.Binding;
-import org.apache.woden.wsdl20.BindingFault;
-import org.apache.woden.wsdl20.Interface;
-import org.apache.woden.wsdl20.InterfaceFault;
-import org.apache.woden.wsdl20.xml.BindingElement;
-import org.apache.woden.wsdl20.xml.BindingFaultElement;
-import org.apache.woden.wsdl20.xml.InterfaceElement;
-import org.apache.woden.wsdl20.xml.InterfaceFaultElement;
-
-import org.apache.woden.wsdl20.fragids.FragmentIdentifier;
-import org.apache.woden.wsdl20.fragids.BindingFaultPart;
-
-/**
- * This class represents the BindingFault component from the WSDL 2.0 Component Model
- * and the <fault> child element of the WSDL <binding> element.
- *
- * @author jkaputin@apache.org
- */
-public class BindingFaultImpl extends NestedImpl
- implements BindingFault, BindingFaultElement
-{
- private QName fRef = null;
-
- /* ************************************************************
- * BindingFault interface methods (i.e. WSDL Component model)
- * ************************************************************/
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.BindingFault#getInterfaceFault()
- */
- public InterfaceFault getInterfaceFault()
- {
- InterfaceFault fault = null;
- Binding binding = (Binding)getParent();
- Interface interfac = binding.getInterface();
- if(interfac != null) {
- fault = interfac.getFromAllInterfaceFaults(fRef);
- }
- return fault;
- }
-
- /*
- * @see org.apache.woden.wsdl20.BindingFault#toElement()
- */
- public BindingFaultElement toElement() {
- return this;
- }
-
- /* ************************************************************
- * BindingFaultElement interface methods (the XML Element model)
- * ************************************************************/
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingFaultElement#setRef(javax.xml.namespace.QName)
- */
- public void setRef(QName qname) {
- fRef = qname;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingFaultElement#getRef()
- */
- public QName getRef() {
- return fRef;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingFaultElement#getInterfaceFaultElement()
- */
- public InterfaceFaultElement getInterfaceFaultElement()
- {
- InterfaceFaultElement fault = null;
- BindingElement binding = (BindingElement)getParentElement();
- InterfaceElement interfac = binding.getInterfaceElement();
- if(interfac != null) {
- InterfaceFault faultComp = ((Interface)interfac).getFromAllInterfaceFaults(fRef);
- if (faultComp != null) {
- fault = faultComp.toElement();
- }
- }
- return fault;
- }
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
- */
- public FragmentIdentifier getFragmentIdentifier() {
- //Find properties needed.
- Binding bindingComp = (Binding)getParent();
- NCName binding = new NCName(bindingComp.getName().getLocalPart());
-
- //Return a new FragmentIdentifier.
- return new FragmentIdentifier(new BindingFaultPart(binding, fRef));
- }
-
- /* ************************************************************
- * Non-API implementation methods
- * ************************************************************/
-
-
-}
+ *
+ * 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.types.NCName;
+
+import org.apache.woden.wsdl20.Binding;
+import org.apache.woden.wsdl20.BindingFault;
+import org.apache.woden.wsdl20.Interface;
+import org.apache.woden.wsdl20.InterfaceFault;
+import org.apache.woden.wsdl20.xml.BindingElement;
+import org.apache.woden.wsdl20.xml.BindingFaultElement;
+import org.apache.woden.wsdl20.xml.InterfaceElement;
+import org.apache.woden.wsdl20.xml.InterfaceFaultElement;
+
+import org.apache.woden.wsdl20.fragids.FragmentIdentifier;
+import org.apache.woden.wsdl20.fragids.BindingFaultPart;
+
+/**
+ * This class represents the BindingFault component from the WSDL 2.0 Component Model
+ * and the <fault> child element of the WSDL <binding> element.
+ *
+ * @author jkaputin@apache.org
+ */
+public class BindingFaultImpl extends NestedImpl
+ implements BindingFault, BindingFaultElement
+{
+ private QName fRef = null;
+
+ /* ************************************************************
+ * BindingFault interface methods (i.e. WSDL Component model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.BindingFault#getInterfaceFault()
+ */
+ public InterfaceFault getInterfaceFault()
+ {
+ InterfaceFault fault = null;
+ Binding binding = (Binding)getParent();
+ Interface interfac = binding.getInterface();
+ if(interfac != null) {
+ fault = interfac.getFromAllInterfaceFaults(fRef);
+ }
+ return fault;
+ }
+
+ /*
+ * @see org.apache.woden.wsdl20.BindingFault#toElement()
+ */
+ public BindingFaultElement toElement() {
+ return this;
+ }
+
+ /* ************************************************************
+ * BindingFaultElement interface methods (the XML Element model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingFaultElement#setRef(javax.xml.namespace.QName)
+ */
+ public void setRef(QName qname) {
+ fRef = qname;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingFaultElement#getRef()
+ */
+ public QName getRef() {
+ return fRef;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingFaultElement#getInterfaceFaultElement()
+ */
+ public InterfaceFaultElement getInterfaceFaultElement()
+ {
+ InterfaceFaultElement fault = null;
+ BindingElement binding = (BindingElement)getParentElement();
+ InterfaceElement interfac = binding.getInterfaceElement();
+ if(interfac != null) {
+ InterfaceFault faultComp = ((Interface)interfac).getFromAllInterfaceFaults(fRef);
+ if (faultComp != null) {
+ fault = faultComp.toElement();
+ }
+ }
+ return fault;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
+ */
+ public FragmentIdentifier getFragmentIdentifier() {
+ //Find properties needed.
+ Binding bindingComp = (Binding)getParent();
+ NCName binding = new NCName(bindingComp.getName().getLocalPart());
+
+ //Return a new FragmentIdentifier.
+ return new FragmentIdentifier(new BindingFaultPart(binding, fRef));
+ }
+
+ /* ************************************************************
+ * Non-API implementation methods
+ * ************************************************************/
+
+
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingFaultImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingFaultReferenceImpl.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingFaultReferenceImpl.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingFaultReferenceImpl.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingFaultReferenceImpl.java Thu Aug 23 04:01:23 2007
@@ -1,212 +1,212 @@
-/**
+/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.types.NCName;
-import org.apache.woden.wsdl20.Binding;
-import org.apache.woden.wsdl20.BindingFaultReference;
-import org.apache.woden.wsdl20.BindingOperation;
-import org.apache.woden.wsdl20.InterfaceFault;
-import org.apache.woden.wsdl20.InterfaceFaultReference;
-import org.apache.woden.wsdl20.InterfaceOperation;
-import org.apache.woden.wsdl20.enumeration.Direction;
-import org.apache.woden.wsdl20.xml.BindingFaultReferenceElement;
-import org.apache.woden.wsdl20.xml.BindingOperationElement;
-import org.apache.woden.wsdl20.xml.InterfaceFaultReferenceElement;
-import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
-
-import org.apache.woden.wsdl20.fragids.FragmentIdentifier;
-import org.apache.woden.wsdl20.fragids.BindingFaultReferencePart;
-
-/**
- * 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 NestedImpl
- implements BindingFaultReference, BindingFaultReferenceElement
-{
- private QName fRef = null;
- private Direction fDirection = null;
- private NCName fMessageLabel = null;
-
- /* ************************************************************
- * BindingFaultReference interface methods (i.e. WSDL Component model)
- * ************************************************************/
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.BindingFaultReference#getInterfaceFaultReference()
- *
- * The "effective" message label of the binding fault reference must be equal to the message label
- * of an interface fault reference and the interface fault reference must refer to an interface
- * fault with its {name} equal to the 'ref' qname of the binding fault reference.
- *
- * The WSDL 2.0 Part 1 spec says "Define the effective message label of a binding fault reference element
- * information item to be either the actual value of the messageLabel attribute information item if it
- * is present, or the {message label} of the unique placeholder message with {direction} equal to the
- * message direction if the attribute information item is absent."
- *
- * The code in this method currently just supports the first type of "effective" message label,
- * where the message label property IS present in the binding fault reference.
- *
- * TODO effective message label based on message exchange pattern placeholder message,
- * where the message label property IS NOT present in the binding fault reference.
- *
- */
- public InterfaceFaultReference getInterfaceFaultReference()
- {
- InterfaceFaultReference intFaultRef = null;
-
- if(fRef != null) //if 'ref' is null, we cannot match against an interface fault qname.
- {
- BindingOperation bindOp = (BindingOperation)getParent();
- InterfaceOperation intOp = bindOp.getInterfaceOperation();
- if(intOp != null)
- {
- //Determine the "effective" msg label for this binding fault ref.
- NCName effectiveMsgLabel = null;
- if(fMessageLabel != null)
- {
- effectiveMsgLabel = fMessageLabel;
- }
- else
- {
- //implement placeholder effective msg label, as per the todo comment above
- }
-
- //Now match the effective msg label against the msg label of an interface fault reference
- //that refers to an interface fault whose qname matches the 'ref' attribute.
- if(effectiveMsgLabel != null)
- {
- InterfaceFaultReference[] intFaultRefs = intOp.getInterfaceFaultReferences();
- for(int i=0; i<intFaultRefs.length; i++)
- {
- InterfaceFaultReference tempIntFaultRef = intFaultRefs[i];
- InterfaceFault tempIntFault = tempIntFaultRef.getInterfaceFault();
- QName intFaultName = (tempIntFault != null ? tempIntFault.getName() : null);
- if(fRef.equals(intFaultName) &&
- effectiveMsgLabel.equals(tempIntFaultRef.getMessageLabel()))
- {
- intFaultRef = tempIntFaultRef;
- break;
- }
- }
- }
- }
- }
-
- return intFaultRef;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.BindingFaultReference#toElement()
- */
- public BindingFaultReferenceElement toElement() {
- return this;
- }
-
- /* ************************************************************
- * BindingFaultReferenceElement interface methods (the XML Element model)
- * ************************************************************/
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingFaultReferenceElement#setRef(javax.xml.namespace.QName)
- */
- public void setRef(QName qname) {
- fRef = qname;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingFaultReferenceElement#getRef()
- */
- public QName getRef() {
- return fRef;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingFaultReferenceElement#getInterfaceFaultReferenceElement()
- *
- * TODO added 'effective msg label' matching, as per the component model method getInterfFaultRef.
- */
- public InterfaceFaultReferenceElement getInterfaceFaultReferenceElement()
- {
- InterfaceFaultReferenceElement intFaultRef = null;
-
- if(fRef != null && fMessageLabel != null)
- {
- BindingOperationElement bindOp = (BindingOperationElement)getParentElement();
- InterfaceOperationElement intOp = bindOp.getInterfaceOperationElement();
- if(intOp != null)
- {
- InterfaceFaultReferenceElement[] intFaultRefs = intOp.getInterfaceFaultReferenceElements();
- for(int i=0; i<intFaultRefs.length; i++)
- {
- InterfaceFaultReferenceElement temp = intFaultRefs[i];
- if(fRef.equals(temp.getRef()) &&
- fMessageLabel.equals(temp.getMessageLabel()))
- {
- intFaultRef = temp;
- break;
- }
- }
- }
- }
-
- return intFaultRef;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingFaultReferenceElement#setMessageLabel(org.apache.woden.wsdl20.enumeration.MessageLabel)
- */
- public void setMessageLabel(NCName msgLabel) {
- fMessageLabel = msgLabel;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingFaultReferenceElement#getMessageLabel()
- */
- public NCName getMessageLabel() {
- return fMessageLabel;
- }
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
- */
- public FragmentIdentifier getFragmentIdentifier() {
- //Find parent components.
- BindingOperation bindingOperationComp = (BindingOperation)getParent();
- Binding bindingComp = (Binding)bindingOperationComp.getParent();
- InterfaceOperation interfaceOperationComp = bindingOperationComp.getInterfaceOperation();
-
- //Get needed properties.
- NCName binding = new NCName(bindingComp.getName().getLocalPart());
- QName interfaceOperation = interfaceOperationComp.getName();
-
- //Return a new Fragment Identifier.
- return new FragmentIdentifier(new BindingFaultReferencePart(binding, interfaceOperation, fMessageLabel, fRef));
- }
-
- /* ************************************************************
- * Non-API implementation methods
- * ************************************************************/
-
-}
+ *
+ * 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.types.NCName;
+import org.apache.woden.wsdl20.Binding;
+import org.apache.woden.wsdl20.BindingFaultReference;
+import org.apache.woden.wsdl20.BindingOperation;
+import org.apache.woden.wsdl20.InterfaceFault;
+import org.apache.woden.wsdl20.InterfaceFaultReference;
+import org.apache.woden.wsdl20.InterfaceOperation;
+import org.apache.woden.wsdl20.enumeration.Direction;
+import org.apache.woden.wsdl20.xml.BindingFaultReferenceElement;
+import org.apache.woden.wsdl20.xml.BindingOperationElement;
+import org.apache.woden.wsdl20.xml.InterfaceFaultReferenceElement;
+import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
+
+import org.apache.woden.wsdl20.fragids.FragmentIdentifier;
+import org.apache.woden.wsdl20.fragids.BindingFaultReferencePart;
+
+/**
+ * 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 NestedImpl
+ implements BindingFaultReference, BindingFaultReferenceElement
+{
+ private QName fRef = null;
+ private Direction fDirection = null;
+ private NCName fMessageLabel = null;
+
+ /* ************************************************************
+ * BindingFaultReference interface methods (i.e. WSDL Component model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.BindingFaultReference#getInterfaceFaultReference()
+ *
+ * The "effective" message label of the binding fault reference must be equal to the message label
+ * of an interface fault reference and the interface fault reference must refer to an interface
+ * fault with its {name} equal to the 'ref' qname of the binding fault reference.
+ *
+ * The WSDL 2.0 Part 1 spec says "Define the effective message label of a binding fault reference element
+ * information item to be either the actual value of the messageLabel attribute information item if it
+ * is present, or the {message label} of the unique placeholder message with {direction} equal to the
+ * message direction if the attribute information item is absent."
+ *
+ * The code in this method currently just supports the first type of "effective" message label,
+ * where the message label property IS present in the binding fault reference.
+ *
+ * TODO effective message label based on message exchange pattern placeholder message,
+ * where the message label property IS NOT present in the binding fault reference.
+ *
+ */
+ public InterfaceFaultReference getInterfaceFaultReference()
+ {
+ InterfaceFaultReference intFaultRef = null;
+
+ if(fRef != null) //if 'ref' is null, we cannot match against an interface fault qname.
+ {
+ BindingOperation bindOp = (BindingOperation)getParent();
+ InterfaceOperation intOp = bindOp.getInterfaceOperation();
+ if(intOp != null)
+ {
+ //Determine the "effective" msg label for this binding fault ref.
+ NCName effectiveMsgLabel = null;
+ if(fMessageLabel != null)
+ {
+ effectiveMsgLabel = fMessageLabel;
+ }
+ else
+ {
+ //implement placeholder effective msg label, as per the todo comment above
+ }
+
+ //Now match the effective msg label against the msg label of an interface fault reference
+ //that refers to an interface fault whose qname matches the 'ref' attribute.
+ if(effectiveMsgLabel != null)
+ {
+ InterfaceFaultReference[] intFaultRefs = intOp.getInterfaceFaultReferences();
+ for(int i=0; i<intFaultRefs.length; i++)
+ {
+ InterfaceFaultReference tempIntFaultRef = intFaultRefs[i];
+ InterfaceFault tempIntFault = tempIntFaultRef.getInterfaceFault();
+ QName intFaultName = (tempIntFault != null ? tempIntFault.getName() : null);
+ if(fRef.equals(intFaultName) &&
+ effectiveMsgLabel.equals(tempIntFaultRef.getMessageLabel()))
+ {
+ intFaultRef = tempIntFaultRef;
+ break;
+ }
+ }
+ }
+ }
+ }
+
+ return intFaultRef;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.BindingFaultReference#toElement()
+ */
+ public BindingFaultReferenceElement toElement() {
+ return this;
+ }
+
+ /* ************************************************************
+ * BindingFaultReferenceElement interface methods (the XML Element model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingFaultReferenceElement#setRef(javax.xml.namespace.QName)
+ */
+ public void setRef(QName qname) {
+ fRef = qname;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingFaultReferenceElement#getRef()
+ */
+ public QName getRef() {
+ return fRef;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingFaultReferenceElement#getInterfaceFaultReferenceElement()
+ *
+ * TODO added 'effective msg label' matching, as per the component model method getInterfFaultRef.
+ */
+ public InterfaceFaultReferenceElement getInterfaceFaultReferenceElement()
+ {
+ InterfaceFaultReferenceElement intFaultRef = null;
+
+ if(fRef != null && fMessageLabel != null)
+ {
+ BindingOperationElement bindOp = (BindingOperationElement)getParentElement();
+ InterfaceOperationElement intOp = bindOp.getInterfaceOperationElement();
+ if(intOp != null)
+ {
+ InterfaceFaultReferenceElement[] intFaultRefs = intOp.getInterfaceFaultReferenceElements();
+ for(int i=0; i<intFaultRefs.length; i++)
+ {
+ InterfaceFaultReferenceElement temp = intFaultRefs[i];
+ if(fRef.equals(temp.getRef()) &&
+ fMessageLabel.equals(temp.getMessageLabel()))
+ {
+ intFaultRef = temp;
+ break;
+ }
+ }
+ }
+ }
+
+ return intFaultRef;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingFaultReferenceElement#setMessageLabel(org.apache.woden.wsdl20.enumeration.MessageLabel)
+ */
+ public void setMessageLabel(NCName msgLabel) {
+ fMessageLabel = msgLabel;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingFaultReferenceElement#getMessageLabel()
+ */
+ public NCName getMessageLabel() {
+ return fMessageLabel;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
+ */
+ public FragmentIdentifier getFragmentIdentifier() {
+ //Find parent components.
+ BindingOperation bindingOperationComp = (BindingOperation)getParent();
+ Binding bindingComp = (Binding)bindingOperationComp.getParent();
+ InterfaceOperation interfaceOperationComp = bindingOperationComp.getInterfaceOperation();
+
+ //Get needed properties.
+ NCName binding = new NCName(bindingComp.getName().getLocalPart());
+ QName interfaceOperation = interfaceOperationComp.getName();
+
+ //Return a new Fragment Identifier.
+ return new FragmentIdentifier(new BindingFaultReferencePart(binding, interfaceOperation, fMessageLabel, fRef));
+ }
+
+ /* ************************************************************
+ * Non-API implementation methods
+ * ************************************************************/
+
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingFaultReferenceImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingImpl.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingImpl.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingImpl.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingImpl.java Thu Aug 23 04:01:23 2007
@@ -1,318 +1,318 @@
-/**
+/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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 java.net.URI;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Vector;
-
-import javax.xml.namespace.QName;
-
-import org.apache.woden.types.NCName;
-import org.apache.woden.wsdl20.Binding;
-import org.apache.woden.wsdl20.BindingFault;
-import org.apache.woden.wsdl20.BindingOperation;
-import org.apache.woden.wsdl20.Description;
-import org.apache.woden.wsdl20.Interface;
-import org.apache.woden.wsdl20.xml.BindingElement;
-import org.apache.woden.wsdl20.xml.BindingFaultElement;
-import org.apache.woden.wsdl20.xml.BindingOperationElement;
-import org.apache.woden.wsdl20.xml.InterfaceElement;
-import org.apache.woden.wsdl20.xml.WSDLElement;
-
-import org.apache.woden.wsdl20.fragids.FragmentIdentifier;
-import org.apache.woden.wsdl20.fragids.BindingPart;
-
-/**
- * This class represents the Binding component from the WSDL 2.0 Component Model
- * and the WSDL <binding> element.
- *
- * @author John Kaputin (jkaputin@apache.org)
- */
-public class BindingImpl extends WSDLComponentImpl
- implements Binding, BindingElement
-{
- private WSDLElement fParentElem = null;
-
- /* This field refers to the Description component which contains this Binding
- * component in its {bindings} property. It is set whenever this Binding is
- * returned by that Description's getBindings() or getBinding(QName) methods.
- * Note that with modularization via a wsdl import or include, this
- * reference may be different to fDescriptionElement because it refers to the
- * importing or including description at the top of the wsdl tree (whereas the
- * latter refers to the description in which this binding is directly declared).
- * This field is used to retrieve components that are available (i.e. in-scope)
- * to the top-level Description component.
- */
- private Description fDescriptionComponent = null;
-
- private NCName fName = null;
- private QName fInterfaceName = null;
- private URI fType = null;
- private List fFaults = new Vector();
- private List fOperations = new Vector();
-
- /* ************************************************************
- * Binding interface methods (i.e. WSDL Component model)
- * ************************************************************/
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.Binding#getName()
- * @see org.apache.woden.wsdl20.xml.BindingElement#getName()
- */
- public QName getName() {
- QName name = null;
- if (fName != null) {
- String[] tns = DescriptionImpl.getTargetNamespaceAndPrefix(this);
- name = new QName(tns[0], fName.toString(), tns[1]);
- }
- return name;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.Binding#getInterface()
- */
- public Interface getInterface()
- {
- Interface interfac = fDescriptionComponent.getInterface(fInterfaceName);
- return interfac;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.Binding#getType()
- * @see org.apache.woden.wsdl20.xml.BindingElement#getType()
- */
- public URI getType() {
- return fType;
- }
-
- /*
- * @see org.apache.woden.wsdl20.Binding#getBindingFaults()
- */
- public BindingFault[] getBindingFaults()
- {
- BindingFault[] array = new BindingFault[fFaults.size()];
- fFaults.toArray(array);
- return array;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.Binding#getBindingOperations()
- */
- public BindingOperation[] getBindingOperations()
- {
- BindingOperation[] array = new BindingOperation[fOperations.size()];
- fOperations.toArray(array);
- return array;
- }
-
- /*
- * @see org.apache.woden.wsdl20.Binding#toElement()
- */
- public BindingElement toElement() {
- return this;
- }
-
- /* ************************************************************
- * BindingElement interface methods (the XML Element model)
- * ************************************************************/
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingElement#setName(javax.xml.namespace.QName)
- */
- public void setName(NCName name) {
- fName = name;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingElement#setInterfaceName(javax.xml.namespace.QName)
- */
- public void setInterfaceName(QName qname) {
- fInterfaceName = qname;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingElement#getInterfaceName()
- */
- public QName getInterfaceName() {
- return fInterfaceName;
- }
-
- /*
- * @see org.apache.woden.wsdl20.xml.BindingElement#getInterfaceElement()
- */
- public InterfaceElement getInterfaceElement()
- {
- //Cast the containing description element to a description component to re-use its
- //logic for navigating a composite wsdl to retrieve the in-scope top-level components.
- Description desc = (Description)fParentElem;
- InterfaceElement interfac = (InterfaceElement)desc.getInterface(fInterfaceName);
- return interfac;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingElement#setType(java.net.URI)
- */
- public void setType(URI type) {
- fType = type;
- }
-
- /*
- * @see org.apache.woden.wsdl20.xml.BindingElement#addBindingFaultElement()
- */
- public BindingFaultElement addBindingFaultElement()
- {
- BindingFaultImpl fault = new BindingFaultImpl();
- fFaults.add(fault);
- fault.setParentElement(this);
- return fault;
- }
-
- /*
- * @see org.apache.woden.wsdl20.xml.BindingElement#getBindingFaultElements()
- */
- public BindingFaultElement[] getBindingFaultElements()
- {
- BindingFaultElement[] array = new BindingFaultElement[fFaults.size()];
- fFaults.toArray(array);
- return array;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingElement#addBindingOperationElement()
- */
- public BindingOperationElement addBindingOperationElement()
- {
- BindingOperationImpl operation = new BindingOperationImpl();
- fOperations.add(operation);
- operation.setParentElement(this);
- return operation;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingElement#getBindingOperationElements()
- */
- public BindingOperationElement[] getBindingOperationElements()
- {
- BindingOperationElement[] array = new BindingOperationElement[fOperations.size()];
- fOperations.toArray(array);
- return array;
- }
-
- /*
- * package private, used only by factory methods in this package
- */
- void setParentElement(WSDLElement parent) {
- fParentElem = parent;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.NestedElement#getParentElement()
- */
- public WSDLElement getParentElement() {
- return fParentElem;
- }
-
- /* ************************************************************
- * Non-API implementation methods
- * ************************************************************/
-
- /*
- * Get the binding fault with the specified 'ref' attribute qname.
- *
- * TODO decide if this type of qname-based accessor is needed, either internally or on API.
- * TODO also consider if getBindingFaultWithRef is needed (i.e. component model)
- */
- public BindingFaultElement getBindingFaultElementWithRef(QName qname)
- {
- BindingFaultElement fault = null;
- if(qname != null)
- {
- BindingFaultElement bindFault = null;
- Iterator i = fFaults.iterator();
- while(i.hasNext())
- {
- bindFault = (BindingFaultElement)i.next();
- if(qname.equals(bindFault.getRef()))
- {
- fault = bindFault;
- break;
- }
- }
- }
- return fault;
- }
-
- /*
- * Get the binding operation with the specified 'ref' attribute qname.
- *
- * TODO decide if this type of qname-based accessor is needed, either internally or on API.
- * TODO also consider if getBindingOperationWithRef is needed (i.e. component model)
- */
- public BindingOperationElement getBindingOperationElementWithRef(QName qname)
- {
- BindingOperationElement operation = null;
- if(qname != null)
- {
- BindingOperationElement bindOp = null;
- Iterator i = fOperations.iterator();
- while(i.hasNext())
- {
- bindOp = (BindingOperationElement)i.next();
- if(qname.equals(bindOp.getRef()))
- {
- operation = bindOp;
- break;
- }
- }
- }
- return operation;
- }
-
- /*
- * This method sets specifies the Description component in which this Binding is contained
- * (i.e. this Binding is contained in the Description's {bindings} property).
- * It should only be invoked by DescriptionImpl when the getBindings() method is called,
- * so it is declared package private to restrict access to it.
- */
- void setDescriptionComponent(Description desc) {
- fDescriptionComponent = desc;
- }
-
- /*
- * This is method returns the Description component in which this Binding is contained.
- * (i.e. the Description specified on the setDescriptionComponent method above).
- * Ideally it would be package private too, but it is needed by component extensions for
- * resolving qnames to ElementDeclarations and TypeDefinitions contained within the same
- * Description, so it has been defined as a non-API public method.
- *
- * TODO see if there is a way to make this method non-public.
- */
- public Description getDescriptionComponent() {
- return fDescriptionComponent;
- }
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
- */
- public FragmentIdentifier getFragmentIdentifier() {
- return new FragmentIdentifier(new BindingPart(this));
- }
-
-}
+ *
+ * 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 java.net.URI;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Vector;
+
+import javax.xml.namespace.QName;
+
+import org.apache.woden.types.NCName;
+import org.apache.woden.wsdl20.Binding;
+import org.apache.woden.wsdl20.BindingFault;
+import org.apache.woden.wsdl20.BindingOperation;
+import org.apache.woden.wsdl20.Description;
+import org.apache.woden.wsdl20.Interface;
+import org.apache.woden.wsdl20.xml.BindingElement;
+import org.apache.woden.wsdl20.xml.BindingFaultElement;
+import org.apache.woden.wsdl20.xml.BindingOperationElement;
+import org.apache.woden.wsdl20.xml.InterfaceElement;
+import org.apache.woden.wsdl20.xml.WSDLElement;
+
+import org.apache.woden.wsdl20.fragids.FragmentIdentifier;
+import org.apache.woden.wsdl20.fragids.BindingPart;
+
+/**
+ * This class represents the Binding component from the WSDL 2.0 Component Model
+ * and the WSDL <binding> element.
+ *
+ * @author John Kaputin (jkaputin@apache.org)
+ */
+public class BindingImpl extends WSDLComponentImpl
+ implements Binding, BindingElement
+{
+ private WSDLElement fParentElem = null;
+
+ /* This field refers to the Description component which contains this Binding
+ * component in its {bindings} property. It is set whenever this Binding is
+ * returned by that Description's getBindings() or getBinding(QName) methods.
+ * Note that with modularization via a wsdl import or include, this
+ * reference may be different to fDescriptionElement because it refers to the
+ * importing or including description at the top of the wsdl tree (whereas the
+ * latter refers to the description in which this binding is directly declared).
+ * This field is used to retrieve components that are available (i.e. in-scope)
+ * to the top-level Description component.
+ */
+ private Description fDescriptionComponent = null;
+
+ private NCName fName = null;
+ private QName fInterfaceName = null;
+ private URI fType = null;
+ private List fFaults = new Vector();
+ private List fOperations = new Vector();
+
+ /* ************************************************************
+ * Binding interface methods (i.e. WSDL Component model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.Binding#getName()
+ * @see org.apache.woden.wsdl20.xml.BindingElement#getName()
+ */
+ public QName getName() {
+ QName name = null;
+ if (fName != null) {
+ String[] tns = DescriptionImpl.getTargetNamespaceAndPrefix(this);
+ name = new QName(tns[0], fName.toString(), tns[1]);
+ }
+ return name;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.Binding#getInterface()
+ */
+ public Interface getInterface()
+ {
+ Interface interfac = fDescriptionComponent.getInterface(fInterfaceName);
+ return interfac;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.Binding#getType()
+ * @see org.apache.woden.wsdl20.xml.BindingElement#getType()
+ */
+ public URI getType() {
+ return fType;
+ }
+
+ /*
+ * @see org.apache.woden.wsdl20.Binding#getBindingFaults()
+ */
+ public BindingFault[] getBindingFaults()
+ {
+ BindingFault[] array = new BindingFault[fFaults.size()];
+ fFaults.toArray(array);
+ return array;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.Binding#getBindingOperations()
+ */
+ public BindingOperation[] getBindingOperations()
+ {
+ BindingOperation[] array = new BindingOperation[fOperations.size()];
+ fOperations.toArray(array);
+ return array;
+ }
+
+ /*
+ * @see org.apache.woden.wsdl20.Binding#toElement()
+ */
+ public BindingElement toElement() {
+ return this;
+ }
+
+ /* ************************************************************
+ * BindingElement interface methods (the XML Element model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingElement#setName(javax.xml.namespace.QName)
+ */
+ public void setName(NCName name) {
+ fName = name;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingElement#setInterfaceName(javax.xml.namespace.QName)
+ */
+ public void setInterfaceName(QName qname) {
+ fInterfaceName = qname;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingElement#getInterfaceName()
+ */
+ public QName getInterfaceName() {
+ return fInterfaceName;
+ }
+
+ /*
+ * @see org.apache.woden.wsdl20.xml.BindingElement#getInterfaceElement()
+ */
+ public InterfaceElement getInterfaceElement()
+ {
+ //Cast the containing description element to a description component to re-use its
+ //logic for navigating a composite wsdl to retrieve the in-scope top-level components.
+ Description desc = (Description)fParentElem;
+ InterfaceElement interfac = (InterfaceElement)desc.getInterface(fInterfaceName);
+ return interfac;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingElement#setType(java.net.URI)
+ */
+ public void setType(URI type) {
+ fType = type;
+ }
+
+ /*
+ * @see org.apache.woden.wsdl20.xml.BindingElement#addBindingFaultElement()
+ */
+ public BindingFaultElement addBindingFaultElement()
+ {
+ BindingFaultImpl fault = new BindingFaultImpl();
+ fFaults.add(fault);
+ fault.setParentElement(this);
+ return fault;
+ }
+
+ /*
+ * @see org.apache.woden.wsdl20.xml.BindingElement#getBindingFaultElements()
+ */
+ public BindingFaultElement[] getBindingFaultElements()
+ {
+ BindingFaultElement[] array = new BindingFaultElement[fFaults.size()];
+ fFaults.toArray(array);
+ return array;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingElement#addBindingOperationElement()
+ */
+ public BindingOperationElement addBindingOperationElement()
+ {
+ BindingOperationImpl operation = new BindingOperationImpl();
+ fOperations.add(operation);
+ operation.setParentElement(this);
+ return operation;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingElement#getBindingOperationElements()
+ */
+ public BindingOperationElement[] getBindingOperationElements()
+ {
+ BindingOperationElement[] array = new BindingOperationElement[fOperations.size()];
+ fOperations.toArray(array);
+ return array;
+ }
+
+ /*
+ * package private, used only by factory methods in this package
+ */
+ void setParentElement(WSDLElement parent) {
+ fParentElem = parent;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.NestedElement#getParentElement()
+ */
+ public WSDLElement getParentElement() {
+ return fParentElem;
+ }
+
+ /* ************************************************************
+ * Non-API implementation methods
+ * ************************************************************/
+
+ /*
+ * Get the binding fault with the specified 'ref' attribute qname.
+ *
+ * TODO decide if this type of qname-based accessor is needed, either internally or on API.
+ * TODO also consider if getBindingFaultWithRef is needed (i.e. component model)
+ */
+ public BindingFaultElement getBindingFaultElementWithRef(QName qname)
+ {
+ BindingFaultElement fault = null;
+ if(qname != null)
+ {
+ BindingFaultElement bindFault = null;
+ Iterator i = fFaults.iterator();
+ while(i.hasNext())
+ {
+ bindFault = (BindingFaultElement)i.next();
+ if(qname.equals(bindFault.getRef()))
+ {
+ fault = bindFault;
+ break;
+ }
+ }
+ }
+ return fault;
+ }
+
+ /*
+ * Get the binding operation with the specified 'ref' attribute qname.
+ *
+ * TODO decide if this type of qname-based accessor is needed, either internally or on API.
+ * TODO also consider if getBindingOperationWithRef is needed (i.e. component model)
+ */
+ public BindingOperationElement getBindingOperationElementWithRef(QName qname)
+ {
+ BindingOperationElement operation = null;
+ if(qname != null)
+ {
+ BindingOperationElement bindOp = null;
+ Iterator i = fOperations.iterator();
+ while(i.hasNext())
+ {
+ bindOp = (BindingOperationElement)i.next();
+ if(qname.equals(bindOp.getRef()))
+ {
+ operation = bindOp;
+ break;
+ }
+ }
+ }
+ return operation;
+ }
+
+ /*
+ * This method sets specifies the Description component in which this Binding is contained
+ * (i.e. this Binding is contained in the Description's {bindings} property).
+ * It should only be invoked by DescriptionImpl when the getBindings() method is called,
+ * so it is declared package private to restrict access to it.
+ */
+ void setDescriptionComponent(Description desc) {
+ fDescriptionComponent = desc;
+ }
+
+ /*
+ * This is method returns the Description component in which this Binding is contained.
+ * (i.e. the Description specified on the setDescriptionComponent method above).
+ * Ideally it would be package private too, but it is needed by component extensions for
+ * resolving qnames to ElementDeclarations and TypeDefinitions contained within the same
+ * Description, so it has been defined as a non-API public method.
+ *
+ * TODO see if there is a way to make this method non-public.
+ */
+ public Description getDescriptionComponent() {
+ return fDescriptionComponent;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
+ */
+ public FragmentIdentifier getFragmentIdentifier() {
+ return new FragmentIdentifier(new BindingPart(this));
+ }
+
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingMessageReferenceImpl.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingMessageReferenceImpl.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingMessageReferenceImpl.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingMessageReferenceImpl.java Thu Aug 23 04:01:23 2007
@@ -1,164 +1,164 @@
-/**
+/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.types.NCName;
-import javax.xml.namespace.QName;
-
-import org.apache.woden.wsdl20.BindingMessageReference;
-import org.apache.woden.wsdl20.BindingOperation;
-import org.apache.woden.wsdl20.Binding;
-import org.apache.woden.wsdl20.InterfaceMessageReference;
-import org.apache.woden.wsdl20.InterfaceOperation;
-import org.apache.woden.wsdl20.enumeration.Direction;
-import org.apache.woden.wsdl20.xml.BindingMessageReferenceElement;
-
-import org.apache.woden.wsdl20.fragids.FragmentIdentifier;
-import org.apache.woden.wsdl20.fragids.BindingMessageReferencePart;
-/**
- * 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 NestedImpl
- implements BindingMessageReference,
- BindingMessageReferenceElement
-{
- private Direction fDirection = null;
- private NCName fMessageLabel = null;
-
- /* ************************************************************
- * BindingMessageReference interface methods (i.e. WSDL Component model)
- * ************************************************************/
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.BindingMessageReference#getInterfaceMessageReference()
- *
- * The "effective" message label of the binding message reference message must be equal to the
- * message label of an interface message reference.
- *
- * The WSDL 2.0 Part 1 spec says " Define the effective message label of a binding message reference
- * element information item to be either the actual value of the messageLabel attribute information
- * item if it is present, or the {message label} of the unique placeholder message with {direction} equal
- * to the message direction if the attribute information item is absent."
- *
- * The code in this method currently just supports the first type of "effective" message label,
- * where the message label property IS present in the binding msg reference.
- *
- * TODO effective message label based on message exchange pattern placeholder message,
- * where the message label property IS NOT present in the binding message reference.
- *
- */
- public InterfaceMessageReference getInterfaceMessageReference()
- {
- InterfaceMessageReference intMsgRef = null;
- BindingOperation bindOp = (BindingOperation)getParent();
- InterfaceOperation intOp = bindOp.getInterfaceOperation();
- if(intOp != null)
- {
- //Determine the "effective" msg label for this binding msg ref.
- NCName effectiveMsgLabel = null;
- if(fMessageLabel != null)
- {
- effectiveMsgLabel = fMessageLabel;
- }
- else
- {
- //implement placeholder effective msg label, as per the todo comment above
- }
-
- //Now match the effective msg label against the msg label of an interface msg reference.
- if(effectiveMsgLabel != null)
- {
- InterfaceMessageReference[] intMsgRefs = intOp.getInterfaceMessageReferences();
- for(int i=0; i<intMsgRefs.length; i++)
- {
- if( effectiveMsgLabel.equals(intMsgRefs[i].getMessageLabel()) )
- {
- intMsgRef = intMsgRefs[i];
- break;
- }
- }
- }
- }
- return intMsgRef;
- }
-
- /* (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(NCName msgLabel) {
- fMessageLabel = msgLabel;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingMessageReferenceElement#getMessageLabel()
- */
- public NCName getMessageLabel() {
- return fMessageLabel;
- }
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
- */
- public FragmentIdentifier getFragmentIdentifier() {
- //Find parent components.
- BindingOperation bindingOperationComp = (BindingOperation)getParent();
- Binding bindingComp = (Binding)bindingOperationComp.getParent();
- InterfaceOperation interfaceOperationComp = bindingOperationComp.getInterfaceOperation();
-
- //Get needed properties.
- NCName binding = new NCName(bindingComp.getName().getLocalPart());
- QName interfaceOperation = interfaceOperationComp.getName();
-
- //Return a new FragmentIdentifier.
- return new FragmentIdentifier(new BindingMessageReferencePart(binding, interfaceOperation, fMessageLabel));
- }
-
- /* ************************************************************
- * Non-API implementation methods
- * ************************************************************/
-
-}
+ *
+ * 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.types.NCName;
+import javax.xml.namespace.QName;
+
+import org.apache.woden.wsdl20.BindingMessageReference;
+import org.apache.woden.wsdl20.BindingOperation;
+import org.apache.woden.wsdl20.Binding;
+import org.apache.woden.wsdl20.InterfaceMessageReference;
+import org.apache.woden.wsdl20.InterfaceOperation;
+import org.apache.woden.wsdl20.enumeration.Direction;
+import org.apache.woden.wsdl20.xml.BindingMessageReferenceElement;
+
+import org.apache.woden.wsdl20.fragids.FragmentIdentifier;
+import org.apache.woden.wsdl20.fragids.BindingMessageReferencePart;
+/**
+ * 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 NestedImpl
+ implements BindingMessageReference,
+ BindingMessageReferenceElement
+{
+ private Direction fDirection = null;
+ private NCName fMessageLabel = null;
+
+ /* ************************************************************
+ * BindingMessageReference interface methods (i.e. WSDL Component model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.BindingMessageReference#getInterfaceMessageReference()
+ *
+ * The "effective" message label of the binding message reference message must be equal to the
+ * message label of an interface message reference.
+ *
+ * The WSDL 2.0 Part 1 spec says " Define the effective message label of a binding message reference
+ * element information item to be either the actual value of the messageLabel attribute information
+ * item if it is present, or the {message label} of the unique placeholder message with {direction} equal
+ * to the message direction if the attribute information item is absent."
+ *
+ * The code in this method currently just supports the first type of "effective" message label,
+ * where the message label property IS present in the binding msg reference.
+ *
+ * TODO effective message label based on message exchange pattern placeholder message,
+ * where the message label property IS NOT present in the binding message reference.
+ *
+ */
+ public InterfaceMessageReference getInterfaceMessageReference()
+ {
+ InterfaceMessageReference intMsgRef = null;
+ BindingOperation bindOp = (BindingOperation)getParent();
+ InterfaceOperation intOp = bindOp.getInterfaceOperation();
+ if(intOp != null)
+ {
+ //Determine the "effective" msg label for this binding msg ref.
+ NCName effectiveMsgLabel = null;
+ if(fMessageLabel != null)
+ {
+ effectiveMsgLabel = fMessageLabel;
+ }
+ else
+ {
+ //implement placeholder effective msg label, as per the todo comment above
+ }
+
+ //Now match the effective msg label against the msg label of an interface msg reference.
+ if(effectiveMsgLabel != null)
+ {
+ InterfaceMessageReference[] intMsgRefs = intOp.getInterfaceMessageReferences();
+ for(int i=0; i<intMsgRefs.length; i++)
+ {
+ if( effectiveMsgLabel.equals(intMsgRefs[i].getMessageLabel()) )
+ {
+ intMsgRef = intMsgRefs[i];
+ break;
+ }
+ }
+ }
+ }
+ return intMsgRef;
+ }
+
+ /* (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(NCName msgLabel) {
+ fMessageLabel = msgLabel;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingMessageReferenceElement#getMessageLabel()
+ */
+ public NCName getMessageLabel() {
+ return fMessageLabel;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
+ */
+ public FragmentIdentifier getFragmentIdentifier() {
+ //Find parent components.
+ BindingOperation bindingOperationComp = (BindingOperation)getParent();
+ Binding bindingComp = (Binding)bindingOperationComp.getParent();
+ InterfaceOperation interfaceOperationComp = bindingOperationComp.getInterfaceOperation();
+
+ //Get needed properties.
+ NCName binding = new NCName(bindingComp.getName().getLocalPart());
+ QName interfaceOperation = interfaceOperationComp.getName();
+
+ //Return a new FragmentIdentifier.
+ return new FragmentIdentifier(new BindingMessageReferencePart(binding, interfaceOperation, fMessageLabel));
+ }
+
+ /* ************************************************************
+ * Non-API implementation methods
+ * ************************************************************/
+
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingMessageReferenceImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingOperationImpl.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingOperationImpl.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingOperationImpl.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingOperationImpl.java Thu Aug 23 04:01:23 2007
@@ -1,205 +1,205 @@
-/**
+/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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 java.util.List;
-import java.util.Vector;
-
-import javax.xml.namespace.QName;
-
-import org.apache.woden.types.NCName;
-import org.apache.woden.wsdl20.Binding;
-import org.apache.woden.wsdl20.BindingFaultReference;
-import org.apache.woden.wsdl20.BindingMessageReference;
-import org.apache.woden.wsdl20.BindingOperation;
-import org.apache.woden.wsdl20.Interface;
-import org.apache.woden.wsdl20.InterfaceOperation;
-import org.apache.woden.wsdl20.Service;
-import org.apache.woden.wsdl20.xml.BindingElement;
-import org.apache.woden.wsdl20.xml.BindingFaultReferenceElement;
-import org.apache.woden.wsdl20.xml.BindingMessageReferenceElement;
-import org.apache.woden.wsdl20.xml.BindingOperationElement;
-import org.apache.woden.wsdl20.xml.InterfaceElement;
-import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
-
-import org.apache.woden.wsdl20.fragids.FragmentIdentifier;
-import org.apache.woden.wsdl20.fragids.BindingOperationPart;
-
-/**
- * This class represents the BindingOperation component from the WSDL 2.0 Component Model
- * and the <operation> child element of the WSDL <binding> element.
- *
- * @author jkaputin@apache.org
- */
-public class BindingOperationImpl extends NestedImpl
- implements BindingOperation, BindingOperationElement
-{
- private QName fRef = null;
- private List fMessageRefs = new Vector();
- private List fFaultRefs = new Vector();
-
- /* ************************************************************
- * BindingOperation interface methods (i.e. WSDL Component model)
- * ************************************************************/
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.BindingOperation#getInterfaceOperation()
- */
- public InterfaceOperation getInterfaceOperation()
- {
- InterfaceOperation oper = null;
- Binding binding = (Binding)getParent();
- Interface interfac = binding.getInterface();
- if(interfac != null) {
- oper = interfac.getFromAllInterfaceOperations(fRef);
- }
- return oper;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.BindingOperation#getBindingMessageReferences()
- */
- public BindingMessageReference[] getBindingMessageReferences() {
- BindingMessageReference[] array = new BindingMessageReference[fMessageRefs.size()];
- fMessageRefs.toArray(array);
- return array;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.BindingOperation#getBindingFaultReferences()
- */
- public BindingFaultReference[] getBindingFaultReferences() {
- BindingFaultReference[] array = new BindingFaultReference[fFaultRefs.size()];
- fFaultRefs.toArray(array);
- return array;
- }
-
- /*
- * @see org.apache.woden.wsdl20.BindingOperation#toElement()
- */
- public BindingOperationElement toElement() {
- return this;
- }
-
- /* ************************************************************
- * BindingOperationElement interface methods (the XML Element model)
- * ************************************************************/
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingOperationElement#setRef(javax.xml.namespace.QName)
- */
- public void setRef(QName qname) {
- fRef = qname;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingOperationElement#getRef()
- */
- public QName getRef() {
- return fRef;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingOperationElement#getInterfaceOperationElement()
- */
- public InterfaceOperationElement getInterfaceOperationElement()
- {
- InterfaceOperationElement oper = null;
- BindingElement binding = (BindingElement)getParentElement();
- InterfaceElement interfac = binding.getInterfaceElement();
- if(interfac != null) {
- InterfaceOperation operComp = ((Interface)interfac).getFromAllInterfaceOperations(fRef);
- if(operComp != null) {
- oper = operComp.toElement();
- }
- }
- return oper;
-
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingOperationElement#addBindingMessageReferenceElement()
- */
- public BindingMessageReferenceElement addBindingMessageReferenceElement()
- {
- BindingMessageReferenceImpl msgRef = new BindingMessageReferenceImpl();
- fMessageRefs.add(msgRef);
- msgRef.setParentElement(this);
- return msgRef;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingOperationElement#removeBindingMessageReferenceElement(org.apache.woden.wsdl20.xml.BindingMessageReferenceElement)
- */
- public void removeBindingMessageReferenceElement(BindingMessageReferenceElement msgRef) {
- fMessageRefs.remove(msgRef);
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingOperationElement#getBindingMessageReferenceElements()
- */
- public BindingMessageReferenceElement[] getBindingMessageReferenceElements() {
- BindingMessageReferenceElement[] array = new BindingMessageReferenceElement[fMessageRefs.size()];
- fMessageRefs.toArray(array);
- return array;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingOperationElement#addBindingFaultReferenceElement()
- */
- public BindingFaultReferenceElement addBindingFaultReferenceElement()
- {
- BindingFaultReferenceImpl faultRef = new BindingFaultReferenceImpl();
- fFaultRefs.add(faultRef);
- faultRef.setParentElement(this);
- return faultRef;
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingOperationElement#removeBindingFaultReferenceElement(org.apache.woden.wsdl20.xml.BindingFaultReferenceElement)
- */
- public void removeBindingFaultReferenceElement(BindingFaultReferenceElement faultRef) {
- fFaultRefs.remove(faultRef);
- }
-
- /* (non-Javadoc)
- * @see org.apache.woden.wsdl20.xml.BindingOperationElement#getBindingFaultReferenceElements()
- */
- public BindingFaultReferenceElement[] getBindingFaultReferenceElements() {
- BindingFaultReferenceElement[] array = new BindingFaultReferenceElement[fFaultRefs.size()];
- fFaultRefs.toArray(array);
- return array;
- }
-
- /*
- * (non-Javadoc)
- * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
- */
- public FragmentIdentifier getFragmentIdentifier() {
- //Find parent component and get needed properties.
- Binding bindingComp = (Binding)getParent();
- NCName binding = new NCName(bindingComp.getName().getLocalPart());
-
- //Return a new FragmentIdentifier.
- return new FragmentIdentifier(new BindingOperationPart (binding , fRef));
- }
-
- /* ************************************************************
- * Non-API implementation methods
- * ************************************************************/
-
-}
+ *
+ * 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 java.util.List;
+import java.util.Vector;
+
+import javax.xml.namespace.QName;
+
+import org.apache.woden.types.NCName;
+import org.apache.woden.wsdl20.Binding;
+import org.apache.woden.wsdl20.BindingFaultReference;
+import org.apache.woden.wsdl20.BindingMessageReference;
+import org.apache.woden.wsdl20.BindingOperation;
+import org.apache.woden.wsdl20.Interface;
+import org.apache.woden.wsdl20.InterfaceOperation;
+import org.apache.woden.wsdl20.Service;
+import org.apache.woden.wsdl20.xml.BindingElement;
+import org.apache.woden.wsdl20.xml.BindingFaultReferenceElement;
+import org.apache.woden.wsdl20.xml.BindingMessageReferenceElement;
+import org.apache.woden.wsdl20.xml.BindingOperationElement;
+import org.apache.woden.wsdl20.xml.InterfaceElement;
+import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
+
+import org.apache.woden.wsdl20.fragids.FragmentIdentifier;
+import org.apache.woden.wsdl20.fragids.BindingOperationPart;
+
+/**
+ * This class represents the BindingOperation component from the WSDL 2.0 Component Model
+ * and the <operation> child element of the WSDL <binding> element.
+ *
+ * @author jkaputin@apache.org
+ */
+public class BindingOperationImpl extends NestedImpl
+ implements BindingOperation, BindingOperationElement
+{
+ private QName fRef = null;
+ private List fMessageRefs = new Vector();
+ private List fFaultRefs = new Vector();
+
+ /* ************************************************************
+ * BindingOperation interface methods (i.e. WSDL Component model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.BindingOperation#getInterfaceOperation()
+ */
+ public InterfaceOperation getInterfaceOperation()
+ {
+ InterfaceOperation oper = null;
+ Binding binding = (Binding)getParent();
+ Interface interfac = binding.getInterface();
+ if(interfac != null) {
+ oper = interfac.getFromAllInterfaceOperations(fRef);
+ }
+ return oper;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.BindingOperation#getBindingMessageReferences()
+ */
+ public BindingMessageReference[] getBindingMessageReferences() {
+ BindingMessageReference[] array = new BindingMessageReference[fMessageRefs.size()];
+ fMessageRefs.toArray(array);
+ return array;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.BindingOperation#getBindingFaultReferences()
+ */
+ public BindingFaultReference[] getBindingFaultReferences() {
+ BindingFaultReference[] array = new BindingFaultReference[fFaultRefs.size()];
+ fFaultRefs.toArray(array);
+ return array;
+ }
+
+ /*
+ * @see org.apache.woden.wsdl20.BindingOperation#toElement()
+ */
+ public BindingOperationElement toElement() {
+ return this;
+ }
+
+ /* ************************************************************
+ * BindingOperationElement interface methods (the XML Element model)
+ * ************************************************************/
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingOperationElement#setRef(javax.xml.namespace.QName)
+ */
+ public void setRef(QName qname) {
+ fRef = qname;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingOperationElement#getRef()
+ */
+ public QName getRef() {
+ return fRef;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingOperationElement#getInterfaceOperationElement()
+ */
+ public InterfaceOperationElement getInterfaceOperationElement()
+ {
+ InterfaceOperationElement oper = null;
+ BindingElement binding = (BindingElement)getParentElement();
+ InterfaceElement interfac = binding.getInterfaceElement();
+ if(interfac != null) {
+ InterfaceOperation operComp = ((Interface)interfac).getFromAllInterfaceOperations(fRef);
+ if(operComp != null) {
+ oper = operComp.toElement();
+ }
+ }
+ return oper;
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingOperationElement#addBindingMessageReferenceElement()
+ */
+ public BindingMessageReferenceElement addBindingMessageReferenceElement()
+ {
+ BindingMessageReferenceImpl msgRef = new BindingMessageReferenceImpl();
+ fMessageRefs.add(msgRef);
+ msgRef.setParentElement(this);
+ return msgRef;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingOperationElement#removeBindingMessageReferenceElement(org.apache.woden.wsdl20.xml.BindingMessageReferenceElement)
+ */
+ public void removeBindingMessageReferenceElement(BindingMessageReferenceElement msgRef) {
+ fMessageRefs.remove(msgRef);
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingOperationElement#getBindingMessageReferenceElements()
+ */
+ public BindingMessageReferenceElement[] getBindingMessageReferenceElements() {
+ BindingMessageReferenceElement[] array = new BindingMessageReferenceElement[fMessageRefs.size()];
+ fMessageRefs.toArray(array);
+ return array;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingOperationElement#addBindingFaultReferenceElement()
+ */
+ public BindingFaultReferenceElement addBindingFaultReferenceElement()
+ {
+ BindingFaultReferenceImpl faultRef = new BindingFaultReferenceImpl();
+ fFaultRefs.add(faultRef);
+ faultRef.setParentElement(this);
+ return faultRef;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingOperationElement#removeBindingFaultReferenceElement(org.apache.woden.wsdl20.xml.BindingFaultReferenceElement)
+ */
+ public void removeBindingFaultReferenceElement(BindingFaultReferenceElement faultRef) {
+ fFaultRefs.remove(faultRef);
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.BindingOperationElement#getBindingFaultReferenceElements()
+ */
+ public BindingFaultReferenceElement[] getBindingFaultReferenceElements() {
+ BindingFaultReferenceElement[] array = new BindingFaultReferenceElement[fFaultRefs.size()];
+ fFaultRefs.toArray(array);
+ return array;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
+ */
+ public FragmentIdentifier getFragmentIdentifier() {
+ //Find parent component and get needed properties.
+ Binding bindingComp = (Binding)getParent();
+ NCName binding = new NCName(bindingComp.getName().getLocalPart());
+
+ //Return a new FragmentIdentifier.
+ return new FragmentIdentifier(new BindingOperationPart (binding , fRef));
+ }
+
+ /* ************************************************************
+ * Non-API implementation methods
+ * ************************************************************/
+
+}
Propchange: incubator/woden/trunk/java/src/org/apache/woden/internal/wsdl20/BindingOperationImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org