Package org.eclipse.wst.wsdl

Examples of org.eclipse.wst.wsdl.Fault


      boolean foundMatch = false;
      Iterator faultsIt = faults.iterator();
      while (faultsIt.hasNext())
      {
        Fault fault = (Fault)faultsIt.next();
        if (namesEqual(bindingFault.getName(), fault.getName()))
        {
          foundMatch = true;
          break;
        }
      }

      if (!foundMatch)
      {
        // We need to remove this BindingFault from the bindingFaults List
        bindingFaults.remove(index);
        index--;
      }
    }

    // Remove any Faults which already exists in bindingFaults.  What we
    // have left are the Faults which needs newly created BindingFaults
    List bindingFaultsNeeded = new ArrayList();
    for (int index = 0; index < faults.size(); index++)
    {
      Fault fault = (Fault)faults.get(index);

      boolean foundMatch = false;
      Iterator bindingFaultsIt = bindingFaults.iterator();
      while (bindingFaultsIt.hasNext())
      {
        BindingFault bindingFault = (BindingFault)bindingFaultsIt.next();
        if (namesEqual(bindingFault.getName(), fault.getName()))
        {
          foundMatch = true;
          break;
        }
      }

      if (!foundMatch)
      {
        // We need to remove this BindingFault from the bindingFaults List
        bindingFaultsNeeded.add(fault);
      }
    }

    // bindingFaultsNeeded contains the needed BindingFault's we need to create
    Iterator neededBindingFaultsIt = bindingFaultsNeeded.iterator();
    while (neededBindingFaultsIt.hasNext())
    {
      Fault fault = (Fault)neededBindingFaultsIt.next();
      BindingFault newBindingFault = factory.createBindingFault();
      newBindingFault.setEFault(fault);
      newBindingFault.setName(fault.getName());
      bindingOperation.addBindingFault(newBindingFault);
    }

    // Create the contents for each BindingFault
    Iterator faultContentIt = bindingOperation.getEBindingFaults().iterator();
View Full Code Here


   * <!-- end-user-doc -->
   * @generated NOT
   */
  public javax.wsdl.Fault getFault(String name)
  {
    Fault result = null;
    for (Iterator i = getEFaults().iterator(); i.hasNext();)
    {
      Fault fault = (Fault)i.next();
      if (name.equals(fault.getName()))
      {
        result = fault;
        break;
      }
    }
View Full Code Here

  public Map getFaults()
  {
    HashMap hashMap = new HashMap();
    for (Iterator i = getEFaults().iterator(); i.hasNext();)
    {
      Fault fault = (Fault)i.next();
      hashMap.put(fault.getName(), fault);
    }
    return hashMap;
  }
View Full Code Here

        setOutput(output);
        break;
      }
      case WSDLConstants.FAULT:
      {
        Fault fault = WSDLFactory.eINSTANCE.createFault();
        fault.setEnclosingDefinition(definition);
        fault.setElement(child);
        addFault(fault);
        break;
      }
      default:
      {
View Full Code Here

    }

    Iterator iterator = getEFaults().iterator();
    while (iterator.hasNext())
    {
      Fault fault = (Fault)iterator.next();
      Element child = ((FaultImpl)fault).createElement();
      newElement.appendChild(child);
    }

    return newElement;
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setEFault(Fault newEFault)
  {
    Fault oldEFault = eFault;
    eFault = newEFault;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, WSDLPackage.BINDING_FAULT__EFAULT, oldEFault, eFault));
  }
View Full Code Here

                //faultMessage.setQName(new QName(complexType.getName()));
                faultMessage.addPart(part);
                faultMessage.setUndefined(false);
                wsdlDef.addMessage(faultMessage);
               
                Fault fault = WSDLFactory.eINSTANCE.createFault();
                fault.setName(complexType.getName());
                fault.setMessage(faultMessage);
               
                operation.addFault(fault);
              }
            }
          }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.wsdl.Fault

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.