Package org.eclipse.wst.wsdl

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


  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

      return null;
    }

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

    return result;
  }
View Full Code Here

   * @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

    return result;
  }

  private WSDLElement resolveWSDLElement(int type, QName qname)
  {
    WSDLElement result = null;
    if (qname.getNamespaceURI() != null)
    {
      switch (type)
      {
        case WSDLConstants.MESSAGE:
View Full Code Here

      {
        parents.add(parent);
      }
    }

    WSDLElement bestWSDLElement = getBestWSDLElement(parents);
    return bestWSDLElement;
  }
View Full Code Here

  private void patchTargetNamespace(EList componentsList, int componentType)
  {
    Iterator componentsIterator = componentsList.iterator();
    while (componentsIterator.hasNext())
    {
      WSDLElement wsdlElement = (WSDLElement)componentsIterator.next();
      Definition enclosingDefinition = wsdlElement.getEnclosingDefinition();
      if (enclosingDefinition != null)
      {
        String targetNamespace = enclosingDefinition.getTargetNamespace();

        QName componentQName = getQNameForWSDLElement(componentType, wsdlElement);
View Full Code Here

TOP

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

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.