Package org.eclipse.emf.ecore.xmi.impl

Examples of org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl


        result.put("wsdl", new XSDResourceFactoryImpl());
      }

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

      registrations = result;
    }

View Full Code Here


  protected void setUp() throws Exception {
    super.setUp();

    ResourceSet resourceSet = new ResourceSetImpl();
    resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
        .put("library", new XMLResourceFactoryImpl());
    Resource resource = resourceSet.createResource(URI
        .createURI("test.library"));

    // create a library with three books and two writers
    fixture = LibraryFactory.eINSTANCE.createLibrary();
View Full Code Here

        // Register the appropriate resource factory to handle all file
        // extensions.
        //
        _resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
                .put(Resource.Factory.Registry.DEFAULT_EXTENSION,
                        new XMLResourceFactoryImpl());
    }
View Full Code Here

  protected Map<String, Resource.Factory> getRegistrations()
  {
    if (registrations == null)
    {
      Map<String, Resource.Factory> result = new HashMap<String, Resource.Factory>();
      result.put(STAR_EXTENSION, new XMLResourceFactoryImpl());
      registrations = result;
    }

    return registrations;
  }
View Full Code Here

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

    /*
     * Create empty resource with the given URI
     */
    Resource resource = resourceSet.createResource(URI
View Full Code Here

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

    /*
     * Create empty resource with the given URI
     */
    Resource resource = resourceSet.createResource(URI
View Full Code Here

    {
      ResourceSet testResourceSet = createResourceSet();

      testResourceSet.getURIConverter().getURIMap().put(URI.createURI("../TargetObject/"), targetObject1.eResource().getURI().trimSegments(1).appendSegment(""));

      Resource libraryXML = new XMLResourceFactoryImpl().createResource(URI.createURI(temporaryFolder.newFile("model.xml").getAbsolutePath()));
      testResourceSet.getResources().add(libraryXML);

      libraryXML.load(new ByteArrayInputStream(out.toByteArray()), null);
      EChecker.checkObject(primaryObject, libraryXML.getContents().get(0));
    }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl

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.