Author: jkaputin
Date: Tue Nov 8 04:51:43 2005
New Revision: 331803
URL: http://svn.apache.org/viewcvs?rev=331803&view=rev
Log:
Removed the collections of Component interfaces
(fInterfaceFaults and fInterfaceOperations), relying
instead on the collections of Element interfaces
(fInterfaceFaultElements and fInterfaceOperationElements)
and using appropriate casting for the Component model
getter methods (i.e. the Component and Element interfaces
share an Impl class, so no need to maintain separate
collections of objects)
Modified:
incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceImpl.java
Modified:
incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceImpl.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceImpl.java?rev=331803&r1=331802&r2=331803&view=diff
==============================================================================
---
incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceImpl.java
(original)
+++
incubator/woden/java/src/org/apache/woden/internal/wsdl20/InterfaceImpl.java
Tue Nov 8 04:51:43 2005
@@ -39,8 +39,6 @@
{
//WSDL Component model data
private List fExtendedInterfaces = new Vector();
- private List fInterfaceFaults = new Vector();
- private List fInterfaceOperations = new Vector();
//XML Element model data
private QName fName = null;
@@ -77,8 +75,8 @@
*/
public InterfaceFault[] getInterfaceFaults()
{
- InterfaceFault[] array = new InterfaceFault[fInterfaceFaults.size()];
- fInterfaceFaults.toArray(array);
+ InterfaceFault[] array = new
InterfaceFault[fInterfaceFaultElements.size()];
+ fInterfaceFaultElements.toArray(array);
return array;
}
@@ -87,8 +85,8 @@
*/
public InterfaceOperation[] getInterfaceOperations()
{
- InterfaceOperation[] array = new
InterfaceOperation[fInterfaceOperations.size()];
- fInterfaceOperations.toArray(array);
+ InterfaceOperation[] array = new
InterfaceOperation[fInterfaceOperationElements.size()];
+ fInterfaceOperationElements.toArray(array);
return array;
}
@@ -189,14 +187,6 @@
public void addExtendedInterface(Interface intface) {
fExtendedInterfaces.add(intface);
- }
-
- public void addInterfaceFault(InterfaceFault fault) {
- fInterfaceFaults.add(fault);
- }
-
- public void addInterfaceOperation(InterfaceOperation operation) {
- fInterfaceOperations.add(operation);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]