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/10/28 20:10:20 UTC
svn commit: r329258 - in /incubator/woden/java/src/org/apache/woden:
internal/ internal/wsdl20/ wsdl20/xml/
Author: jkaputin
Date: Fri Oct 28 11:09:59 2005
New Revision: 329258
URL: http://svn.apache.org/viewcvs?rev=329258&view=rev
Log:
Modified Element interfaces and implementation to
follow the naming convention of the Component model for
<input> and <output> (e.g. InterfaceMessageReferenceElement)
and <infault> and <outfault> (e.g. FaultReferenceElement)
Added:
incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceFaultReferenceImpl.java
incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceMessageReferenceImpl.java
incubator/woden/java/src/org/apache/woden/wsdl20/xml/FaultReferenceElement.java
- copied, changed from r329178, incubator/woden/java/src/org/apache/woden/wsdl20/xml/OperationFaultElement.java
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceMessageReferenceElement.java
- copied, changed from r328928, incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationMessageElement.java
Modified:
incubator/woden/java/src/org/apache/woden/internal/DOMWSDLReader.java
incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionElementImpl.java
incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceOperationImpl.java
incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationElement.java
Modified: incubator/woden/java/src/org/apache/woden/internal/DOMWSDLReader.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/DOMWSDLReader.java?rev=329258&r1=329257&r2=329258&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/DOMWSDLReader.java (original)
+++ incubator/woden/java/src/org/apache/woden/internal/DOMWSDLReader.java Fri Oct 28 11:09:59 2005
@@ -48,8 +48,8 @@
import org.apache.woden.wsdl20.xml.InterfaceElement;
import org.apache.woden.wsdl20.xml.InterfaceFaultElement;
import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
-import org.apache.woden.wsdl20.xml.InterfaceOperationMessageElement;
-import org.apache.woden.wsdl20.xml.OperationFaultElement;
+import org.apache.woden.wsdl20.xml.InterfaceMessageReferenceElement;
+import org.apache.woden.wsdl20.xml.FaultReferenceElement;
import org.apache.woden.wsdl20.xml.PropertyElement;
import org.apache.woden.wsdl20.xml.TypesElement;
import org.apache.ws.commons.schema.XmlSchema;
@@ -439,7 +439,6 @@
InterfaceOperationElement oper = desc.createInterfaceOperationElement();
String name = DOMUtils.getAttribute(operEl, Constants.ATTR_NAME);
-
if(name != null)
{
QName qname = QNameUtils.newQName(desc.getTargetNamespace().toString(), name);
@@ -490,19 +489,19 @@
}
else if (QNameUtils.matches(Constants.Q_ELEM_INPUT, tempEl))
{
- oper.addInputElement(parseInterfaceOperationMessage(tempEl, desc));
+ oper.addInputElement(parseInterfaceMessageReference(tempEl, desc));
}
else if (QNameUtils.matches(Constants.Q_ELEM_OUTPUT, tempEl))
{
- oper.addOutputElement(parseInterfaceOperationMessage(tempEl, desc));
+ oper.addOutputElement(parseInterfaceMessageReference(tempEl, desc));
}
else if (QNameUtils.matches(Constants.Q_ELEM_INFAULT, tempEl))
{
- oper.addInfaultElement(parseOperationFault(tempEl, desc));
+ oper.addInfaultElement(parseInterfaceFaultReference(tempEl, desc));
}
else if (QNameUtils.matches(Constants.Q_ELEM_OUTFAULT, tempEl))
{
- oper.addOutfaultElement(parseOperationFault(tempEl, desc));
+ oper.addOutfaultElement(parseInterfaceFaultReference(tempEl, desc));
}
else
{
@@ -515,14 +514,18 @@
return oper;
}
- private InterfaceOperationMessageElement parseInterfaceOperationMessage(
+ private InterfaceMessageReferenceElement parseInterfaceMessageReference(
Element inputEl,
DescriptionElement desc)
{
+ InterfaceMessageReferenceElement input = desc.createInterfaceMessageReferenceElement();
+
+ input.setMessageLabel(DOMUtils.getAttribute(inputEl, Constants.ATTR_MESSAGE_LABEL));
+
return null; //TODO
}
- private OperationFaultElement parseOperationFault(
+ private FaultReferenceElement parseInterfaceFaultReference(
Element inputEl,
DescriptionElement desc)
{
Modified: incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionElementImpl.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionElementImpl.java?rev=329258&r1=329257&r2=329258&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionElementImpl.java (original)
+++ incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionElementImpl.java Fri Oct 28 11:09:59 2005
@@ -26,11 +26,13 @@
import org.apache.woden.wsdl20.xml.BindingElement;
import org.apache.woden.wsdl20.xml.DescriptionElement;
import org.apache.woden.wsdl20.xml.DocumentationElement;
+import org.apache.woden.wsdl20.xml.FaultReferenceElement;
import org.apache.woden.wsdl20.xml.FeatureElement;
import org.apache.woden.wsdl20.xml.ImportElement;
import org.apache.woden.wsdl20.xml.IncludeElement;
import org.apache.woden.wsdl20.xml.InterfaceElement;
import org.apache.woden.wsdl20.xml.InterfaceFaultElement;
+import org.apache.woden.wsdl20.xml.InterfaceMessageReferenceElement;
import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
import org.apache.woden.wsdl20.xml.PropertyElement;
import org.apache.woden.wsdl20.xml.ServiceElement;
@@ -238,6 +240,16 @@
public InterfaceOperationElement createInterfaceOperationElement()
{
return new InterfaceOperationImpl();
+ }
+
+ public FaultReferenceElement createInterfaceFaultReferenceElement()
+ {
+ return new InterfaceFaultReferenceImpl();
+ }
+
+ public InterfaceMessageReferenceElement createInterfaceMessageReferenceElement()
+ {
+ return new InterfaceMessageReferenceImpl();
}
public FeatureElement createFeatureElement()
Added: incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceFaultReferenceImpl.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceFaultReferenceImpl.java?rev=329258&view=auto
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceFaultReferenceImpl.java (added)
+++ incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceFaultReferenceImpl.java Fri Oct 28 11:09:59 2005
@@ -0,0 +1,161 @@
+/**
+ * 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.Component;
+import org.apache.woden.wsdl20.Feature;
+import org.apache.woden.wsdl20.InterfaceFault;
+import org.apache.woden.wsdl20.InterfaceFaultReference;
+import org.apache.woden.wsdl20.Property;
+import org.apache.woden.wsdl20.xml.DocumentationElement;
+import org.apache.woden.wsdl20.xml.FaultReferenceElement;
+import org.apache.woden.wsdl20.xml.FeatureElement;
+import org.apache.woden.wsdl20.xml.PropertyElement;
+
+/**
+ * This class represents the <infault> and <outfault>
+ * child elements of interface operation.
+ *
+ * @author jkaputin@apache.org
+ */
+public class InterfaceFaultReferenceImpl implements InterfaceFaultReference,
+ FaultReferenceElement
+{
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.InterfaceFaultReference#getInterfaceFault()
+ */
+ public InterfaceFault getInterfaceFault() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.InterfaceFaultReference#getMessageLabel()
+ * @see org.apache.woden.wsdl20.xml.FaultReferenceElement#getMessageLabel()
+ */
+ public String getMessageLabel() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.InterfaceFaultReference#getDirection()
+ */
+ public String getDirection() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.FaultReferenceElement#setRef(javax.xml.namespace.QName)
+ */
+ public void setRef(QName faultQName) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.FaultReferenceElement#getRef()
+ */
+ public QName getRef() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.FaultReferenceElement#setMessageLabel(java.lang.String)
+ */
+ public void setMessageLabel(String msgLabel) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.NestedComponent#getParent()
+ */
+ public Component getParent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.ConfigurableComponent#getFeatures()
+ */
+ public Feature[] getFeatures() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.ConfigurableComponent#getProperties()
+ */
+ public Property[] getProperties() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.DocumentableElement#addDocumentationElement(org.apache.woden.wsdl20.xml.DocumentationElement)
+ */
+ public void addDocumentationElement(DocumentationElement docEl) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.DocumentableElement#getDocumentationElements()
+ */
+ public DocumentationElement[] getDocumentationElements() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.ConfigurableElement#addFeatureElement(org.apache.woden.wsdl20.xml.FeatureElement)
+ */
+ public void addFeatureElement(FeatureElement feature) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.ConfigurableElement#getFeatureElements()
+ */
+ public FeatureElement[] getFeatureElements() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.ConfigurableElement#addPropertyElement(org.apache.woden.wsdl20.xml.PropertyElement)
+ */
+ public void addPropertyElement(PropertyElement property) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.ConfigurableElement#getPropertyElements()
+ */
+ public PropertyElement[] getPropertyElements() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Added: incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceMessageReferenceImpl.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceMessageReferenceImpl.java?rev=329258&view=auto
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceMessageReferenceImpl.java (added)
+++ incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceMessageReferenceImpl.java Fri Oct 28 11:09:59 2005
@@ -0,0 +1,170 @@
+/**
+ * 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.Component;
+import org.apache.woden.wsdl20.ElementDeclaration;
+import org.apache.woden.wsdl20.Feature;
+import org.apache.woden.wsdl20.InterfaceMessageReference;
+import org.apache.woden.wsdl20.Property;
+import org.apache.woden.wsdl20.xml.DocumentationElement;
+import org.apache.woden.wsdl20.xml.FeatureElement;
+import org.apache.woden.wsdl20.xml.InterfaceMessageReferenceElement;
+import org.apache.woden.wsdl20.xml.PropertyElement;
+
+/**
+ * This class represents the <input> and <output>
+ * child elements of interface operation.
+ *
+ * @author jkaputin@apache.org
+ */
+public class InterfaceMessageReferenceImpl implements
+ InterfaceMessageReference,
+ InterfaceMessageReferenceElement
+{
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.InterfaceMessageReference#getMessageLabel()
+ * @see org.apache.woden.wsdl20.xml.InterfaceMessageReferenceElement#getMessageLabel()
+ */
+ public String getMessageLabel() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.InterfaceMessageReference#getDirection()
+ */
+ public String getDirection() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.InterfaceMessageReference#getMessageContentModel()
+ */
+ public String getMessageContentModel() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.InterfaceMessageReference#getElementDeclaration()
+ */
+ public ElementDeclaration getElementDeclaration() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.InterfaceMessageReferenceElement#setMessageLabel(java.lang.String)
+ */
+ public void setMessageLabel(String msgLabel) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.InterfaceMessageReferenceElement#setElement(javax.xml.namespace.QName)
+ */
+ public void setElement(QName element) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.InterfaceMessageReferenceElement#getElement()
+ */
+ public QName getElement() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.NestedComponent#getParent()
+ */
+ public Component getParent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.ConfigurableComponent#getFeatures()
+ */
+ public Feature[] getFeatures() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.ConfigurableComponent#getProperties()
+ */
+ public Property[] getProperties() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.DocumentableElement#addDocumentationElement(org.apache.woden.wsdl20.xml.DocumentationElement)
+ */
+ public void addDocumentationElement(DocumentationElement docEl) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.DocumentableElement#getDocumentationElements()
+ */
+ public DocumentationElement[] getDocumentationElements() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.ConfigurableElement#addFeatureElement(org.apache.woden.wsdl20.xml.FeatureElement)
+ */
+ public void addFeatureElement(FeatureElement feature) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.ConfigurableElement#getFeatureElements()
+ */
+ public FeatureElement[] getFeatureElements() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.ConfigurableElement#addPropertyElement(org.apache.woden.wsdl20.xml.PropertyElement)
+ */
+ public void addPropertyElement(PropertyElement property) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.ConfigurableElement#getPropertyElements()
+ */
+ public PropertyElement[] getPropertyElements() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Modified: incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceOperationImpl.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceOperationImpl.java?rev=329258&r1=329257&r2=329258&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceOperationImpl.java (original)
+++ incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceOperationImpl.java Fri Oct 28 11:09:59 2005
@@ -31,8 +31,8 @@
import org.apache.woden.wsdl20.xml.DocumentationElement;
import org.apache.woden.wsdl20.xml.FeatureElement;
import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
-import org.apache.woden.wsdl20.xml.InterfaceOperationMessageElement;
-import org.apache.woden.wsdl20.xml.OperationFaultElement;
+import org.apache.woden.wsdl20.xml.InterfaceMessageReferenceElement;
+import org.apache.woden.wsdl20.xml.FaultReferenceElement;
import org.apache.woden.wsdl20.xml.PropertyElement;
/**
@@ -181,7 +181,7 @@
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#addInputElement(InterfaceOperationMessageElement)
*/
- public void addInputElement(InterfaceOperationMessageElement input)
+ public void addInputElement(InterfaceMessageReferenceElement input)
{
fInputs.add(input);
}
@@ -189,7 +189,7 @@
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#removeInputElement(InterfaceOperationMessageElement)
*/
- public void removeInputElement(InterfaceOperationMessageElement input)
+ public void removeInputElement(InterfaceMessageReferenceElement input)
{
fInputs.remove(input);
}
@@ -197,15 +197,15 @@
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#getInputElements()
*/
- public InterfaceOperationMessageElement[] getInputElements()
+ public InterfaceMessageReferenceElement[] getInputElements()
{
- return (InterfaceOperationMessageElement[])fInputs.toArray();
+ return (InterfaceMessageReferenceElement[])fInputs.toArray();
}
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#addOutputElement(InterfaceOperationMessageElement)
*/
- public void addOutputElement(InterfaceOperationMessageElement output)
+ public void addOutputElement(InterfaceMessageReferenceElement output)
{
fOutputs.add(output);
}
@@ -213,7 +213,7 @@
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#removeOutputElement(InterfaceOperationMessageElement)
*/
- public void removeOutputElement(InterfaceOperationMessageElement output)
+ public void removeOutputElement(InterfaceMessageReferenceElement output)
{
fOutputs.remove(output);
}
@@ -221,15 +221,15 @@
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#getOutputElements()
*/
- public InterfaceOperationMessageElement[] getOutputElements()
+ public InterfaceMessageReferenceElement[] getOutputElements()
{
- return (InterfaceOperationMessageElement[])fOutputs.toArray();
+ return (InterfaceMessageReferenceElement[])fOutputs.toArray();
}
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#addInfaultElement(OperationFaultElement)
*/
- public void addInfaultElement(OperationFaultElement infault)
+ public void addInfaultElement(FaultReferenceElement infault)
{
fInfaults.add(infault);
}
@@ -237,7 +237,7 @@
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#removeInfaultElement(OperationFaultElement)
*/
- public void removeInfaultElement(OperationFaultElement infault)
+ public void removeInfaultElement(FaultReferenceElement infault)
{
fInfaults.remove(infault);
}
@@ -245,15 +245,15 @@
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#getInfaultElements()
*/
- public OperationFaultElement[] getInfaultElements()
+ public FaultReferenceElement[] getInfaultElements()
{
- return (OperationFaultElement[])fInfaults.toArray();
+ return (FaultReferenceElement[])fInfaults.toArray();
}
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#addOutfaultElement(OperationFaultElement)
*/
- public void addOutfaultElement(OperationFaultElement outfault)
+ public void addOutfaultElement(FaultReferenceElement outfault)
{
fOutfaults.add(outfault);
}
@@ -261,7 +261,7 @@
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#removeOutfaultElement(OperationFaultElement)
*/
- public void removeOutfaultElement(OperationFaultElement outfault)
+ public void removeOutfaultElement(FaultReferenceElement outfault)
{
fOutfaults.remove(outfault);
}
@@ -269,9 +269,9 @@
/*
* @see org.apache.woden.wsdl20.xml.InterfaceOperationElement#getOutfaultElements()
*/
- public OperationFaultElement[] getOutfaultElements()
+ public FaultReferenceElement[] getOutfaultElements()
{
- return (OperationFaultElement[])fOutfaults.toArray();
+ return (FaultReferenceElement[])fOutfaults.toArray();
}
/* (non-Javadoc)
Modified: incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java?rev=329258&r1=329257&r2=329258&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java (original)
+++ incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java Fri Oct 28 11:09:59 2005
@@ -88,6 +88,10 @@
public InterfaceOperationElement createInterfaceOperationElement();
+ public InterfaceMessageReferenceElement createInterfaceMessageReferenceElement();
+
+ public FaultReferenceElement createInterfaceFaultReferenceElement();
+
public FeatureElement createFeatureElement();
public PropertyElement createPropertyElement();
Copied: incubator/woden/java/src/org/apache/woden/wsdl20/xml/FaultReferenceElement.java (from r329178, incubator/woden/java/src/org/apache/woden/wsdl20/xml/OperationFaultElement.java)
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/FaultReferenceElement.java?p2=incubator/woden/java/src/org/apache/woden/wsdl20/xml/FaultReferenceElement.java&p1=incubator/woden/java/src/org/apache/woden/wsdl20/xml/OperationFaultElement.java&r1=329178&r2=329258&rev=329258&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/wsdl20/xml/OperationFaultElement.java (original)
+++ incubator/woden/java/src/org/apache/woden/wsdl20/xml/FaultReferenceElement.java Fri Oct 28 11:09:59 2005
@@ -23,13 +23,15 @@
*
* @author jkaputin@apache.org
*/
-public interface OperationFaultElement
+public interface FaultReferenceElement extends DocumentableElement,
+ ConfigurableElement
{
/*
* Attributes
*/
-
public void setRef(QName faultQName);
public QName getRef();
+ public void setMessageLabel(String msgLabel);
+ public String getMessageLabel();
}
Copied: incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceMessageReferenceElement.java (from r328928, incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationMessageElement.java)
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceMessageReferenceElement.java?p2=incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceMessageReferenceElement.java&p1=incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationMessageElement.java&r1=328928&r2=329258&rev=329258&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationMessageElement.java (original)
+++ incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceMessageReferenceElement.java Fri Oct 28 11:09:59 2005
@@ -1,17 +1,36 @@
-/*
- * Created on 27-Oct-2005
+/**
+ * Copyright 2005 Apache Software Foundation
*
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
+ * 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.wsdl20.xml;
+import javax.xml.namespace.QName;
+
/**
- * @author kaputin
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
+ * This interface represents the <input> and <output>
+ * child elements of interface operation.
+ *
+ * @author jkaputin@apache.org
*/
-public interface InterfaceOperationMessageElement {
+public interface InterfaceMessageReferenceElement
+ extends DocumentableElement,
+ ConfigurableElement
+{
+ public void setMessageLabel(String msgLabel);
+ public String getMessageLabel();
+
+ public void setElement(QName element);
+ public QName getElement();
}
Modified: incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationElement.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationElement.java?rev=329258&r1=329257&r2=329258&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationElement.java (original)
+++ incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationElement.java Fri Oct 28 11:09:59 2005
@@ -48,20 +48,20 @@
* Elements
*/
- public void addInputElement(InterfaceOperationMessageElement input);
- public void removeInputElement(InterfaceOperationMessageElement input);
- public InterfaceOperationMessageElement[] getInputElements();
+ public void addInputElement(InterfaceMessageReferenceElement input);
+ public void removeInputElement(InterfaceMessageReferenceElement input);
+ public InterfaceMessageReferenceElement[] getInputElements();
- public void addOutputElement(InterfaceOperationMessageElement output);
- public void removeOutputElement(InterfaceOperationMessageElement output);
- public InterfaceOperationMessageElement[] getOutputElements();
+ public void addOutputElement(InterfaceMessageReferenceElement output);
+ public void removeOutputElement(InterfaceMessageReferenceElement output);
+ public InterfaceMessageReferenceElement[] getOutputElements();
- public void addInfaultElement(OperationFaultElement infault);
- public void removeInfaultElement(OperationFaultElement infault);
- public OperationFaultElement[] getInfaultElements();
+ public void addInfaultElement(FaultReferenceElement infault);
+ public void removeInfaultElement(FaultReferenceElement infault);
+ public FaultReferenceElement[] getInfaultElements();
- public void addOutfaultElement(OperationFaultElement outfault);
- public void removeOutfaultElement(OperationFaultElement outfault);
- public OperationFaultElement[] getOutfaultElements();
+ public void addOutfaultElement(FaultReferenceElement outfault);
+ public void removeOutfaultElement(FaultReferenceElement outfault);
+ public FaultReferenceElement[] getOutfaultElements();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org