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 2006/04/13 13:03:50 UTC

svn commit: r393782 - /incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java

Author: jkaputin
Date: Thu Apr 13 04:03:46 2006
New Revision: 393782

URL: http://svn.apache.org/viewcvs?rev=393782&view=rev
Log:
Corrected getInterfaces(), getBindings() and getServices()
to return all components from the root and any
imported or included descriptions (i.e. the 'flattened'
view). Previously these methods were just returning the
components from the root description.

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

Modified: incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java?rev=393782&r1=393781&r2=393782&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java (original)
+++ incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java Thu Apr 13 04:03:46 2006
@@ -115,8 +115,8 @@
     public Interface[] getInterfaces() 
     {
         if(!fComponentsInitialized) initComponents();
-        Interface[] array = new Interface[fInterfaceElements.size()];
-        fInterfaceElements.toArray(array);
+        Interface[] array = new Interface[fAllInterfaces.size()];
+        fAllInterfaces.toArray(array);
         return array;
     }
 
@@ -126,8 +126,8 @@
     public Binding[] getBindings() 
     {
         if(!fComponentsInitialized) initComponents();
-        Binding[] array = new Binding[fBindingElements.size()];
-        fBindingElements.toArray(array);
+        Binding[] array = new Binding[fAllBindings.size()];
+        fAllBindings.toArray(array);
         return array;
     }
 
@@ -137,8 +137,8 @@
     public Service[] getServices() 
     {
         if(!fComponentsInitialized) initComponents();
-        Service[] array = new Service[fServiceElements.size()];
-        fServiceElements.toArray(array);
+        Service[] array = new Service[fAllServices.size()];
+        fAllServices.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