Package org.eclipse.wst.wsdl

Examples of org.eclipse.wst.wsdl.Types


    for (Iterator i = getContents().iterator(); i.hasNext();)
    {
      definition = (Definition)i.next();

      // 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;
View Full Code Here


    ((DefinitionImpl)getEnclosingDefinition()).reconcileReferences(true);
  }

  public Collection getModelObjects(Object component)
  {
    Types types = (Types)component;
    List list = new ArrayList();
    list.addAll(types.getEExtensibilityElements());
    return list;
  }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetETypes(Types newETypes, NotificationChain msgs)
  {
    Types oldETypes = eTypes;
    eTypes = newETypes;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WSDLPackage.DEFINITION__ETYPES, oldETypes, newETypes);
      if (msgs == null)
View Full Code Here

      }
      case WSDLConstants.TYPES:
      {
        if (getETypes() == null)
        {
          Types types = WSDLFactoryImpl.eINSTANCE.createTypes();
          types.setEnclosingDefinition(this);
          types.setElement(child);
          setETypes(types);
        }
        break;
      }
      default:
View Full Code Here

    setElement(newElement);
    addChildElements(newElement, getEExtensibilityElements());

    addChildElements(newElement, getEImports());

    Types types = getETypes();
    if (types != null)
    {
      Element child = ((TypesImpl)types).createElement();
      newElement.appendChild(child);
    }
View Full Code Here

  }

  public void setInlineSchemaLocations(Resource resource)
  {
    // Initialize the inline schemas location
    Types types = this.getETypes();
    if (types != null)
    {
      Iterator iterator = types.getEExtensibilityElements().iterator();
      while (iterator.hasNext())
      {
        ExtensibilityElement extensibilityElement = (ExtensibilityElement)iterator.next();
        if (!(extensibilityElement instanceof XSDSchemaExtensibilityElement))
        {
View Full Code Here

   @param namespace the namespace to match.
   *  @param list all inline schemas that match the namespace will be added to this list.
   */
  protected void collectInlinedSchemas(String namespace, List list)
  {
    Types types = getETypes();
    if (types != null)
    {
      List schemas = types.getSchemas();
      Iterator schemasIterator = schemas.iterator();
      while (schemasIterator.hasNext())
      {
        XSDSchema schema = (XSDSchema)schemasIterator.next();
        String targetNamespace = schema.getTargetNamespace();
View Full Code Here

                return result;
            }
        }

        // Check in-line schema
        Types types = definition.getETypes();
        if (types != null) {
          Iterator<?> it = types.getExtensibilityElements().iterator();
          while (it.hasNext()) {
                Object e = it.next();
                if (e instanceof XSDSchemaExtensibilityElement == false) {
                  continue;
                }
View Full Code Here

        String fileName = schemaFileMap.get(schema);//schema.getSchemaLocation();
        xsdImport.setLocationURI(fileName);
        xsdImport.setNamespaceURI(schema.getTargetNamespace());
        wsdl.addImport(xsdImport);
        wsdl.addNamespace(schemaNsPrefixMap.get(schema.getTargetNamespace()), schema.getTargetNamespace());
        Types types = wsdl.getETypes();
        List<XSDSchema> schemas = types.getSchemas();
        if (schemas.size() == 1){
          java.util.Map qNamePrefixToNamespaceMap = schemas.get(0).getQNamePrefixToNamespaceMap();
          qNamePrefixToNamespaceMap.put(schemaNsPrefixMap.get(schema.getTargetNamespace()),schema.getTargetNamespace());         
          XSDImport imp = XSDFactory.eINSTANCE.createXSDImport();
          imp.setSchemaLocation(fileName);
View Full Code Here

          qNamePrefixToNamespaceMap.put(schema.getSchemaForSchemaQNamePrefix(),
              XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);
          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);
   
          wsdlDefMap.put(ctPackage, wsdlDef);     
        }
      }
View Full Code Here

TOP

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

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.