Examples of XSDResourceFactoryImpl


Examples of org.eclipse.xsd.util.XSDResourceFactoryImpl

        result.put("emof", new EMOFResourceFactoryImpl());
      }

      if (Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.xsd")) == null)
      {
        result.put("xsd", new XSDResourceFactoryImpl());
      }

      //FIXME ClassCastException in XSDHelper.define() if you give it a WSDL file
      // Patch for JIRA TUSCANY-42
      if (Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.wsdl")) == null)
      {
        result.put("wsdl", new XSDResourceFactoryImpl());
      }

      if (Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.*")) == null)
      {
        result.put("*", new XMLResourceFactoryImpl());
View Full Code Here

Examples of org.eclipse.xsd.util.XSDResourceFactoryImpl

     
      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.emof"));
      result.put("emof", factory instanceof EMOFResourceFactoryImpl ? factory : new EMOFResourceFactoryImpl());

      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.xsd"));
      result.put("xsd", factory instanceof XSDResourceFactoryImpl ? factory : new XSDResourceFactoryImpl());

      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.wsdl"));
      result.put("wsdl", factory instanceof XSDResourceFactoryImpl ? factory : new XSDResourceFactoryImpl());
     
      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.*"));
      result.put("*", factory instanceof SDOXMLResourceFactoryImpl ? factory : new SDOXMLResourceFactoryImpl());
     
      registrations = result;
View Full Code Here

Examples of org.eclipse.xsd.util.XSDResourceFactoryImpl

     
      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.emof"));
      result.put("emof", factory instanceof EMOFResourceFactoryImpl ? factory : new EMOFResourceFactoryImpl());

      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.xsd"));
      result.put("xsd", factory instanceof XSDResourceFactoryImpl ? factory : new XSDResourceFactoryImpl());

      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.wsdl"));
      result.put("wsdl", factory instanceof XSDResourceFactoryImpl ? factory : new XSDResourceFactoryImpl());
     
      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.*"));
      result.put("*", factory instanceof SDOXMLResourceFactoryImpl ? factory : new SDOXMLResourceFactoryImpl());
     
      registrations = result;
View Full Code Here

Examples of org.eclipse.xsd.util.XSDResourceFactoryImpl

     
      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.emof"));
      result.put("emof", factory instanceof EMOFResourceFactoryImpl ? factory : new EMOFResourceFactoryImpl());

      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.xsd"));
      result.put("xsd", factory instanceof XSDResourceFactoryImpl ? factory : new XSDResourceFactoryImpl());

      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.wsdl"));
      result.put("wsdl", factory instanceof XSDResourceFactoryImpl ? factory : new XSDResourceFactoryImpl());
     
      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.*"));
      result.put("*", factory instanceof SDOXMLResourceFactoryImpl ? factory : new SDOXMLResourceFactoryImpl());
     
      registrations = result;
View Full Code Here

Examples of org.eclipse.xsd.util.XSDResourceFactoryImpl

  /* (non-Javadoc)
   * @see org.eclipse.xsd.ecore.XSDEcoreBuilder#createResourceSet()
   */
  protected ResourceSet createResourceSet() {
    ResourceSet result = super.createResourceSet();
    result.getResourceFactoryRegistry().getExtensionToFactoryMap().put("*", new XSDResourceFactoryImpl());
    result.getAdapterFactories().add(new XSDSchemaAdapterFactoryImpl());
    result.setPackageRegistry(new EPackageRegistryImpl(HelperContextImpl.getBuiltInModelRegistry()));    
   
    return result;
  }
View Full Code Here

Examples of org.eclipse.xsd.util.XSDResourceFactoryImpl

     
      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.emof"));
      result.put("emof", factory instanceof EMOFResourceFactoryImpl ? factory : new EMOFResourceFactoryImpl());

      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.xsd"));
      result.put("xsd", factory instanceof XSDResourceFactoryImpl ? factory : new XSDResourceFactoryImpl());

      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.wsdl"));
      result.put("wsdl", factory instanceof XSDResourceFactoryImpl ? factory : new XSDResourceFactoryImpl());
     
      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.*"));
      result.put("*", factory instanceof SDOXMLResourceFactoryImpl ? factory : new SDOXMLResourceFactoryImpl());
     
      registrations = result;
View Full Code Here

Examples of org.eclipse.xsd.util.XSDResourceFactoryImpl

    ResourceSet resourceSet = new ResourceSetImpl();
    /*
     * Register XML Factory implementation using DEFAULT_EXTENSION
     */
    resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
        .put("xsd", new XSDResourceFactoryImpl());

    return resourceSet;
  }
View Full Code Here

Examples of org.eclipse.xsd.util.XSDResourceFactoryImpl

     
      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.emof"));
      result.put("emof", factory instanceof EMOFResourceFactoryImpl ? factory : new EMOFResourceFactoryImpl());

      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.xsd"));
      result.put("xsd", factory instanceof XSDResourceFactoryImpl ? factory : new XSDResourceFactoryImpl());

      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.wsdl"));
      result.put("wsdl", factory instanceof XSDResourceFactoryImpl ? factory : new XSDResourceFactoryImpl());
     
      factory = Resource.Factory.Registry.INSTANCE.getFactory(URI.createURI("*.*"));
      result.put("*", factory instanceof SDOXMLResourceFactoryImpl ? factory : new SDOXMLResourceFactoryImpl());
     
      registrations = result;
View Full Code Here

Examples of org.eclipse.xsd.util.XSDResourceFactoryImpl

  /* (non-Javadoc)
   * @see org.eclipse.xsd.ecore.XSDEcoreBuilder#createResourceSet()
   */
  protected ResourceSet createResourceSet() {
    ResourceSet result = super.createResourceSet();
    result.getResourceFactoryRegistry().getExtensionToFactoryMap().put("*", new XSDResourceFactoryImpl());
    result.getAdapterFactories().add(new XSDSchemaAdapterFactoryImpl());

    EList resources = result.getResources();
    for (Iterator iter = targetNamespaceToEPackageMap.entrySet().iterator(); iter.hasNext();) {
      Map.Entry mapEntry = (Map.Entry)iter.next();
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.