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/29 03:38:44 UTC

svn commit: r329346 - /incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceOperationImpl.java

Author: jkaputin
Date: Fri Oct 28 18:38:17 2005
New Revision: 329346

URL: http://svn.apache.org/viewcvs?rev=329346&view=rev
Log:
Corrected the getter methods that return arrays and
completed the remaining method implementations.

Modified:
    incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceOperationImpl.java

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=329346&r1=329345&r2=329346&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 18:38:17 2005
@@ -29,10 +29,10 @@
 import org.apache.woden.wsdl20.InterfaceOperation;
 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.InterfaceOperationElement;
 import org.apache.woden.wsdl20.xml.InterfaceMessageReferenceElement;
-import org.apache.woden.wsdl20.xml.FaultReferenceElement;
+import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
 import org.apache.woden.wsdl20.xml.PropertyElement;
 
 /**
@@ -65,7 +65,7 @@
     
 
     /* ************************************************************
-     *  InterfaceOperation methods (for the WSDL Component model)
+     *  InterfaceOperation methods (the WSDL Component model)
      * ************************************************************/
     
     /* (non-Javadoc)
@@ -80,25 +80,29 @@
     /* (non-Javadoc)
      * @see org.apache.woden.wsdl20.InterfaceOperation#getMessageExchangePattern()
      */
-    public URI getMessageExchangePattern() {
-        // TODO Auto-generated method stub
-        return null;
+    public URI getMessageExchangePattern() 
+    {
+        return fMessageExchangePattern;
     }
 
     /* (non-Javadoc)
      * @see org.apache.woden.wsdl20.InterfaceOperation#getInterfaceMessageReferences()
      */
-    public InterfaceMessageReference[] getInterfaceMessageReferences() {
-        // TODO Auto-generated method stub
-        return null;
+    public InterfaceMessageReference[] getInterfaceMessageReferences() 
+    {
+        InterfaceMessageReference[] array = new InterfaceMessageReference[fInterfaceMessageRefs.size()];
+        fInterfaceMessageRefs.toArray(array);
+        return array;
     }
 
     /* (non-Javadoc)
      * @see org.apache.woden.wsdl20.InterfaceOperation#getInterfaceFaultReferences()
      */
-    public InterfaceFaultReference[] getInterfaceFaultReferences() {
-        // TODO Auto-generated method stub
-        return null;
+    public InterfaceFaultReference[] getInterfaceFaultReferences() 
+    {
+        InterfaceFaultReference[] array = new InterfaceFaultReference[fInterfaceFaultRefs.size()];
+        fInterfaceFaultRefs.toArray(array);
+        return array;
     }
 
     /* (non-Javadoc)
@@ -107,35 +111,41 @@
      */
     public URI[] getStyle() 
     {
-        return (URI[])fStyle.toArray();
+        URI[] array = new URI[fStyle.size()];
+        fStyle.toArray(array);
+        return array;
     }
 
     /* (non-Javadoc)
      * @see org.apache.woden.wsdl20.NestedComponent#getParent()
      */
-    public Component getParent() {
-        // TODO Auto-generated method stub
-        return null;
+    public Component getParent() 
+    {
+        return fParent;
     }
 
     /* (non-Javadoc)
      * @see org.apache.woden.wsdl20.ConfigurableComponent#getFeatures()
      */
-    public Feature[] getFeatures() {
-        // TODO Auto-generated method stub
-        return null;
+    public Feature[] getFeatures() 
+    {
+        Feature[] array = new Feature[fFeatures.size()];
+        fFeatures.toArray(array);
+        return array;
     }
 
     /* (non-Javadoc)
      * @see org.apache.woden.wsdl20.ConfigurableComponent#getProperties()
      */
-    public Property[] getProperties() {
-        // TODO Auto-generated method stub
-        return null;
+    public Property[] getProperties() 
+    {
+        Property[] array = new Property[fProperties.size()];
+        fProperties.toArray(array);
+        return array;
     }
 
     /* ************************************************************
-     *  InterfaceOperationElement methods (for the XML model)
+     *  InterfaceOperationElement methods (the XML model)
      * ************************************************************/
     
     /* 
@@ -199,7 +209,9 @@
      */
     public InterfaceMessageReferenceElement[] getInputElements()
     {
-        return (InterfaceMessageReferenceElement[])fInputs.toArray();
+        InterfaceMessageReferenceElement[] array = new InterfaceMessageReferenceElement[fInputs.size()];
+        fInputs.toArray(array);
+        return array;
     }
     
     /*
@@ -223,7 +235,9 @@
      */
     public InterfaceMessageReferenceElement[] getOutputElements()
     {
-        return (InterfaceMessageReferenceElement[])fOutputs.toArray();
+        InterfaceMessageReferenceElement[] array = new InterfaceMessageReferenceElement[fOutputs.size()];
+        fOutputs.toArray(array);
+        return array;
     }
     
     /*
@@ -247,7 +261,9 @@
      */
     public FaultReferenceElement[] getInfaultElements()
     {
-        return (FaultReferenceElement[])fInfaults.toArray();
+        FaultReferenceElement[] array = new FaultReferenceElement[fInfaults.size()];
+        fInfaults.toArray(array);
+        return array;
     }
     
     /*
@@ -271,7 +287,9 @@
      */
     public FaultReferenceElement[] getOutfaultElements()
     {
-        return (FaultReferenceElement[])fOutfaults.toArray();
+        FaultReferenceElement[] array = new FaultReferenceElement[fOutfaults.size()];
+        fOutfaults.toArray(array);
+        return array;
     }
     
     /* (non-Javadoc)
@@ -288,7 +306,9 @@
      */
     public FeatureElement[] getFeatureElements() 
     {
-        return (FeatureElement[])fFeatureElements.toArray();
+        FeatureElement[] array = new FeatureElement[fFeatureElements.size()];
+        fFeatureElements.toArray(array);
+        return array;
     }
 
     /* (non-Javadoc)
@@ -305,7 +325,9 @@
      */
     public PropertyElement[] getPropertyElements() 
     {
-        return (PropertyElement[])fPropertyElements.toArray();
+        PropertyElement[] array = new PropertyElement[fPropertyElements.size()];
+        fPropertyElements.toArray(array);
+        return array;
     }
 
     /*
@@ -321,7 +343,9 @@
      */
     public DocumentationElement[] getDocumentationElements() 
     {
-        return (DocumentationElement[])fDocumentationElements.toArray();
+        DocumentationElement[] array = new DocumentationElement[fDocumentationElements.size()];
+        fDocumentationElements.toArray(array);
+        return array;
     }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org