Package org.eclipse.wst.wsdl

Examples of org.eclipse.wst.wsdl.Binding


  private int getVerbOption(Object genericBindingObject)
  {
    if (verbOption == VERB_NOT_SET && genericBindingObject != null)
    {
      // init() was never called, try to determine the 'verb' based on what we have/know
      Binding binding = getBindingObject(genericBindingObject);

      // Try to determine the verb from the Binding Object
      if (binding != null)
      {
        List list = binding.getEExtensibilityElements();
        Iterator valuesIt = getExtensibilityElementAttributeValue(list, "verb").iterator();

        while (valuesIt.hasNext())
        {
          String verb = (String)valuesIt.next();
View Full Code Here


   * <!-- end-user-doc -->
   * @generated
   */
  public void setEBinding(Binding newEBinding)
  {
    Binding oldEBinding = eBinding;
    eBinding = newEBinding;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, WSDLPackage.PORT__EBINDING, oldEBinding, eBinding));
  }
View Full Code Here

    Element theElement = getElement();
    if (theElement != null)
    {
      if (eReference == null || eReference == WSDLPackage.Literals.PORT__EBINDING)
      {
        Binding binding = getEBinding();
        if (binding != null)
        {
          QName qName = binding.getQName();
          niceSetAttributeURIValue(theElement, WSDLConstants.BINDING_ATTRIBUTE, qName.getNamespaceURI() + "#" + qName.getLocalPart());
        }
      }
    }
  }
View Full Code Here

  {
    if (element != null)
    {
      Definition definition = getEnclosingDefinition();
      QName bindingQName = createQName(definition, element.getAttribute(WSDLConstants.BINDING_ATTRIBUTE), element);
      Binding newBinding = (bindingQName != null) ? (Binding)definition.getBinding(bindingQName) : null;
      if (newBinding != getEBinding())
      {
        setEBinding(newBinding);
      }
    }
View Full Code Here

    return contentGen;
  }

  private Binding createEmptyBinding(String localName)
  {
    Binding newBinding = WSDLFactory.eINSTANCE.createBinding();
    newBinding.setQName(new QName(definition.getTargetNamespace(), localName));
    newBinding.setEnclosingDefinition(definition);
    definition.addBinding(newBinding);

    return newBinding;
  }
View Full Code Here

  // Resolve the reference to Operation
  public void reconcileReferences(boolean deep)
  {
    if (element != null)
    {
      Binding binding = (Binding)getContainer();
      PortType portType = binding.getEPortType();
      if (portType != null)
      {
        BindingInput input = getEBindingInput();
        BindingOutput output = getEBindingOutput();
View Full Code Here

  public Port generatePort()
  {
    String portName = getName();
    String bindingName = getRefName();

    Binding binding = getBinding(bindingName);

    Port port = WSDLFactory.eINSTANCE.createPort();
    port.setName(portName);
    port.setEnclosingDefinition(definition);
    port.setBinding(binding);
View Full Code Here

    List allBindings = getAllBindings();
    Iterator bindingIterator = allBindings.iterator();

    while (bindingIterator.hasNext())
    {
      Binding binding = (Binding)bindingIterator.next();

      List prefixedNames = getPrefixedNames(binding);

      if (prefixedNames.contains(bindingName))
      {
View Full Code Here

    reconcileReferences(false);
  }

  public Collection getModelObjects(Object component)
  {
    Binding binding = (Binding)component;

    List list = new ArrayList();
    list.addAll(binding.getEBindingOperations());
    list.addAll(binding.getEExtensibilityElements());
    return list;
  }
View Full Code Here

  }

  private List getList(Object component, Object modelObject)
  {
    List result = null;
    Binding binding = (Binding)component;
    if (modelObject instanceof BindingOperation)
    {
      result = binding.getEBindingOperations();
    }
    else if (modelObject instanceof ExtensibilityElement)
    {
      result = binding.getEExtensibilityElements();
    }
    return result;
  }
View Full Code Here

TOP

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

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.