Package org.eclipse.wst.wsdl

Examples of org.eclipse.wst.wsdl.Definition


   * <!-- end-user-doc -->
   * @generated
   */
  public void setEDefinition(Definition newEDefinition)
  {
    Definition oldEDefinition = eDefinition;
    eDefinition = newEDefinition;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, WSDLPackage.IMPORT__EDEFINITION, oldEDefinition, eDefinition));
  }
View Full Code Here


      // <wsdl:import> source to null. Here I am simply setting both variables to null,
      // which will have the same effect.
      eDefinition = null;
      eSchema = null;

      Definition definition = getEnclosingDefinition();
      if (definition != null && definition.getDocumentBaseURI() != null)
      {
        Resource resource = definition.eResource();
        if (resource != null)
        {
          ResourceSet resourceSet = resource.getResourceSet();
          if (resourceSet != null)
          {
            if (namespace == null)
            {
              namespace = definition.getTargetNamespace();
            }

            String resolvedLocation = resolveLocation(definition, namespace, location);

            if (resolvedLocation == null)
View Full Code Here

    super.elementChanged(changedElement);
  }

  public void handleUnreconciledElement(Element child, Collection remainingModelObjects)
  {
    Definition definition = getEnclosingDefinition();

    switch (WSDLUtil.getInstance().getWSDLType(child))
    {
      case WSDLConstants.INPUT:
      {
View Full Code Here

    super.changeAttribute(eAttribute);
  }

  public Element createElement()
  {
    Definition definition = getEnclosingDefinition();
    if (definition == null)
      return null;

    Document document = definition.getDocument();
    if (document == null)
      document = ((DefinitionImpl)definition).updateDocument();

    Element newElement = null;
    if (element != null) // This is an old element.
    {
      newElement = (Element)document.importNode(element, true);
      element = newElement;
    }
    else
    {
      String namespace = getElementType().getNamespaceURI();
      String qualifier = definition.getPrefix(namespace);
      newElement = document.createElementNS(namespace, (qualifier == null ? "" : qualifier + ":") + getElementType().getLocalPart());
      element = newElement;
    }

    return newElement;
View Full Code Here

    Iterator defsIterator = allDefinitions.iterator();

    while (defsIterator.hasNext())
    {
      Definition definition = (Definition)defsIterator.next();
      Map bindings = definition.getBindings();

      // ISSUE A possible problem here if somehow a binding is duplicated in one of the imports?
      // In that case we should iterate over and check them one by one.

      allBindings.addAll(bindings.values());
View Full Code Here

      String importLocationURI = theImport.getLocationURI();
      if (importLocationURI != null &&
      // ISSUE This assumption seems a bit weak.
        importLocationURI.endsWith("wsdl"))
      {
        Definition importedDefinition = theImport.getEDefinition();

        if (importedDefinition != null && !list.contains(importedDefinition))
        {
          // Recursively try to locate all definitions.
View Full Code Here

    }
  }

  public void handleUnreconciledElement(Element child, Collection remainingModelObjects)
  {
    Definition definition = getEnclosingDefinition();

    switch (WSDLUtil.getInstance().getWSDLType(child))
    {
      case WSDLConstants.INPUT:
      {
View Full Code Here

    // KB: We are not resolving <import>ed or <include>d schemas from the root inline schemas.
    // In other words, since we are resolving only between multiple root inline schemas,
    // do not attempt to resolve if "rawSchemaLocationURI" is not null.
    if (namespaceURI != null && rawSchemaLocationURI == null)
    {
      Definition definition = null;

      for (EObject parent = xsdSchema.eContainer(); parent != null; parent = parent.eContainer())
      {
        if (parent instanceof Definition)
        {
          definition = (Definition)parent;
          break;
        }
      }

      if (definition != null && definition.getETypes() != null)
      {
        for (Iterator i = definition.getETypes().getEExtensibilityElements().iterator(); i.hasNext();)
        {
          Object o = i.next();
          if (o instanceof XSDSchemaExtensibilityElement)
          {
            XSDSchema schema = ((XSDSchemaExtensibilityElement)o).getSchema();
View Full Code Here

    }
  }

  private void adopt(XSDSchema xsdSchema)
  {
    Definition definition = getEnclosingDefinition();
    if (definition == null)
      return;

    Document document = definition.getDocument();
    if (document == null)
      document = ((DefinitionImpl)definition).updateDocument();

    if (xsdSchema.getDocument() != null)
      xsdSchema.setDocument(null);
View Full Code Here

  // Reconcile methods
  //

  public void reconcileAttributes(Element changedElement)
  {
    Definition definition = getEnclosingDefinition();
    String name = changedElement.getAttribute(WSDLConstants.NAME_ATTRIBUTE);
    QName qname = new QName(definition.getTargetNamespace(), name == null ? "" : name); //$NON-NLS-1$
    setQName(qname);
  }
View Full Code Here

TOP

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

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.