private void getAllInterfaceFaults(Interface interfac, List allInterfaces, List allFaults) { //check for circular Interface references to avoid infinite loop if(containsComponent(interfac, allInterfaces)) { return; } else { allInterfaces.add(interfac); } //get the declared faults for the specified Interface InterfaceFault[] declaredFaults = interfac.getInterfaceFaults(); for(int i=0; i<declaredFaults.length; i++) { InterfaceFault fault = declaredFaults[i]; if(!containsComponent(fault, allFaults)) { allFaults.add(fault); } } //get the derived faults from each extended interface Interface[] extInts = interfac.getExtendedInterfaces(); for(int j=0; j<extInts.length; j++) { getAllInterfaceFaults(extInts[j], allInterfaces, allFaults); } }
private void getAllInterfaceFaults(Interface interfac, List allInterfaces, List allFaults) { //check for circular Interface references to avoid infinite loop if(containsComponent(interfac, allInterfaces)) { return; } else { allInterfaces.add(interfac); } //get the declared faults for the specified Interface InterfaceFault[] declaredFaults = interfac.getInterfaceFaults(); for(int i=0; i<declaredFaults.length; i++) { InterfaceFault fault = declaredFaults[i]; if(!containsComponent(fault, allFaults)) { allFaults.add(fault); } } //get the derived faults from each extended interface Interface[] extInts = interfac.getExtendedInterfaces(); for(int j=0; j<extInts.length; j++) { getAllInterfaceFaults(extInts[j], allInterfaces, allFaults); } }
InterfaceFault[] faults = wsdlInterface.getInterfaceFaults(); for (int i = 0; i < faults.length; i++) {