Examples of XSDSchemaExtensibilityElement


Examples of org.eclipse.wst.wsdl.XSDSchemaExtensibilityElement

      // Initialize the inline schemas location
      Types types = definition.getETypes();
      if (types != null)
      {
        XSDSchemaExtensibilityElement el = null;
        for (Iterator j = types.getEExtensibilityElements().iterator(); j.hasNext();)
        {
          ExtensibilityElement extensibilityElement = (ExtensibilityElement)j.next();
          if (!(extensibilityElement instanceof XSDSchemaExtensibilityElement))
          {
            continue;
          }
         
          el = (XSDSchemaExtensibilityElement) extensibilityElement;
          XSDSchema schema = el.getSchema();
          if (schema != null)
            schema.setSchemaLocation(getURI().toString());
        }
      }
    }
View Full Code Here

Examples of org.eclipse.wst.wsdl.XSDSchemaExtensibilityElement

      ExtensibilityElement extensibilityElement = (ExtensibilityElement)i.next();
      if (!(extensibilityElement instanceof XSDSchemaExtensibilityElement))
      {
        continue;
      }
      XSDSchemaExtensibilityElement xsdee = (XSDSchemaExtensibilityElement)extensibilityElement;
      if (xsdee.getSchema() != null)
      {
        arrayList.add(xsdee.getSchema());
      }
    }
    return arrayList;
  }
View Full Code Here

Examples of org.eclipse.wst.wsdl.XSDSchemaExtensibilityElement

  {
    if (XSDConstants.SCHEMA_ELEMENT_TAG.equals(child.getLocalName()))
    {
      try
      {
        XSDSchemaExtensibilityElement xsdee = WSDLFactory.eINSTANCE.createXSDSchemaExtensibilityElement();
        xsdee.setEnclosingDefinition(getEnclosingDefinition());
        xsdee.setElement(child); // cs : this has the side effect of creating the inline schema              
        addExtensibilityElement(xsdee);
      }
      catch (Exception e)
      {
        e.printStackTrace();
View Full Code Here

Examples of org.eclipse.wst.wsdl.XSDSchemaExtensibilityElement

        ExtensibilityElement extensibilityElement = (ExtensibilityElement)iterator.next();
        if (!(extensibilityElement instanceof XSDSchemaExtensibilityElement))
        {
          continue;
        }
        XSDSchemaExtensibilityElement el = (XSDSchemaExtensibilityElement)extensibilityElement;
        XSDSchema schema = el.getSchema();
        if (schema != null)
        {
          // We need this try-catch block in case we encounter an exception while attempting
          // to resolve the schema.  In the case of the WSDL Editor, we get a
          // 'cannot create part exception'......See eclipse bugzilla bug 89855
View Full Code Here

Examples of org.eclipse.wst.wsdl.XSDSchemaExtensibilityElement

          while (it.hasNext()) {
                Object e = it.next();
                if (e instanceof XSDSchemaExtensibilityElement == false) {
                  continue;
                }
                XSDSchemaExtensibilityElement schemaEE = (XSDSchemaExtensibilityElement) e;
                schema = schemaEE.getSchema();
                if (schema != null) {
                    result = finder.find(schema, qname);
                    if (result != null)
                        return result;
                }
View Full Code Here

Examples of org.eclipse.wst.wsdl.XSDSchemaExtensibilityElement

          qNamePrefixToNamespaceMap.put(wsdlNsPrefixMap.get(wsdlDef.getTargetNamespace()), wsdlDef.getTargetNamespace());
          schema.setElementFormDefault(XSDForm.get(XSDForm.QUALIFIED));
          schema.setAttributeFormDefault(XSDForm.get(XSDForm.QUALIFIED));
          Types types = WSDLFactory.eINSTANCE.createTypes();
   
          XSDSchemaExtensibilityElement xsdExtElement = WSDLFactory.eINSTANCE.createXSDSchemaExtensibilityElement();
          xsdExtElement.setSchema(schema);       
          wsdlDef.setTypes(types);
          types.addExtensibilityElement(xsdExtElement);
          types.getSchemas().add(schema);
          wsdlTypesSchemaMap.put(wsdlDef, schema);
   
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.