Examples of WSDLElement


Examples of org.eclipse.wst.wsdl.WSDLElement

            {
              // Skip it. Probably this is Namespace.
            }
            else
            {
              WSDLElement wsdlElement = (WSDLElement)obj;
              //handleElementForAdopt(eReference, wsdlElement);
              ((WSDLElementImpl)wsdlElement).updateElement();
            }
          }
        }
        else
        {
          WSDLElement wsdlElement = (WSDLElement)eGet(eReference);
          if (wsdlElement != null)
          {
            //handleElementForAdopt(eReference,  wsdlElement);
            ((WSDLElementImpl)wsdlElement).updateElement();
          }
View Full Code Here

Examples of org.eclipse.wst.wsdl.WSDLElement

    }
  }

  public WSDLElement getBestWSDLElement(List elementPath)
  {
    WSDLElement result = this;
    for (Iterator components = getWSDLContents().iterator(); components.hasNext();)
    {
      Object object = components.next();
      if (object instanceof WSDLElementImpl)
      {
        WSDLElementImpl childWSDLElement = (WSDLElementImpl)object;

        if (elementPath.contains(childWSDLElement.getElement()))
        {
          result = childWSDLElement;
          WSDLElement betterWSDLElement = childWSDLElement.getBestWSDLElement(elementPath);
          if (betterWSDLElement != null)
          {
            result = betterWSDLElement;
          }
View Full Code Here

Examples of org.eclipse.wst.wsdl.WSDLElement

   * <!-- end-user-doc -->
   * @generated NOT
   */
  public javax.wsdl.Service removeService(QName name)
  {
    WSDLElement wsdlElement = resolveWSDLElement(WSDLConstants.SERVICE, name);
    boolean removed = false;
    if (wsdlElement instanceof Service)
      removed = getEServices().remove(wsdlElement);
    if (!removed)
      wsdlElement = null;
View Full Code Here

Examples of org.eclipse.wst.wsdl.WSDLElement

   * <!-- end-user-doc -->
   * @generated NOT
   */
  public javax.wsdl.Binding removeBinding(QName name)
  {
    WSDLElement wsdlElement = resolveWSDLElement(WSDLConstants.BINDING, name);
    boolean removed = false;
    if (wsdlElement instanceof Binding)
      removed = getEBindings().remove(wsdlElement);
    if (!removed)
      wsdlElement = null;
View Full Code Here

Examples of org.eclipse.wst.wsdl.WSDLElement

   * <!-- end-user-doc -->
   * @generated NOT
   */
  public javax.wsdl.PortType removePortType(QName name)
  {
    WSDLElement wsdlElement = resolveWSDLElement(WSDLConstants.PORT_TYPE, name);
    boolean removed = false;
    if (wsdlElement instanceof PortType)
      removed = getEPortTypes().remove(wsdlElement);
    if (!removed)
      wsdlElement = null;
View Full Code Here

Examples of org.eclipse.wst.wsdl.WSDLElement

   * <!-- end-user-doc -->
   * @generated NOT
   */
  public javax.wsdl.Message removeMessage(QName name)
  {
    WSDLElement wsdlElement = resolveWSDLElement(WSDLConstants.MESSAGE, name);
    boolean removed = false;
    if (wsdlElement instanceof Message)
      removed = getEMessages().remove(wsdlElement);
    if (!removed)
      wsdlElement = null;
View Full Code Here

Examples of org.eclipse.wst.wsdl.WSDLElement

    return definition;
  }

  private WSDLElement resolveWSDLElement(int type, List list, QName qname)
  {
    WSDLElement result = null;
    if (qname != null)
    {
      for (Iterator i = list.iterator(); i.hasNext();)
      {
        WSDLElement wsdlElement = (WSDLElement)i.next();
        QName theQName = getQNameForWSDLElement(type, wsdlElement);
        if (qname.equals(theQName))
        {
          result = wsdlElement;
          break;
View Full Code Here

Examples of org.eclipse.wst.wsdl.WSDLElement

  private HashMap createMap(int type, List list)
  {
    HashMap map = new HashMap();
    for (Iterator i = list.iterator(); i.hasNext();)
    {
      WSDLElement wsdlElement = (WSDLElement)i.next();
      QName theQName = getQNameForWSDLElement(type, wsdlElement);
      if (theQName != null)
      {
        map.put(theQName, wsdlElement);
      }
View Full Code Here

Examples of org.eclipse.wst.wsdl.WSDLElement

      return null;
    }

    List definitions = new ArrayList();
    definitions.add(definition);
    WSDLElement result = resolveWSDLElement(type, qname, definitions, new ArrayList());

    return result;
  }
View Full Code Here

Examples of org.eclipse.wst.wsdl.WSDLElement

   * @param visitedDefinitions a list with the definitions already visited.
   * @return the resolved WSDLElement or null if one cannot be found.
   */
  private static WSDLElement resolveWSDLElement(int type, QName qname, List definitions, List visitedDefinitions)
  {
    WSDLElement result = null;

    if (definitions.isEmpty())
    {
      return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.