KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > mapping > ecore2ecore > util > Ecore2EcoreResourceFactoryImpl


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2004-2005 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: Ecore2EcoreResourceFactoryImpl.java,v 1.4 2005/06/08 06:21:24 nickb Exp $
16  */

17 package org.eclipse.emf.mapping.ecore2ecore.util;
18
19 import org.eclipse.emf.common.util.URI;
20
21 import org.eclipse.emf.ecore.resource.Resource;
22
23 import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
24 import org.eclipse.emf.ecore.xmi.XMIResource;
25
26 /**
27  * <!-- begin-user-doc -->
28  * The <b>Resource Factory</b> associated with the package.
29  * <!-- end-user-doc -->
30  * @see org.eclipse.emf.mapping.ecore2ecore.util.Ecore2EcoreResourceImpl
31  * @generated
32  */

33 public class Ecore2EcoreResourceFactoryImpl extends ResourceFactoryImpl
34 {
35   /**
36    * Creates an instance of the resource factory.
37    * <!-- begin-user-doc -->
38    * <!-- end-user-doc -->
39    * @generated
40    */

41   public Ecore2EcoreResourceFactoryImpl()
42   {
43     super();
44   }
45
46   /**
47    * Creates an instance of the resource.
48    * <!-- begin-user-doc -->
49    * <!-- end-user-doc -->
50    * @generated NOT
51    */

52   public Resource createResource(URI uri)
53   {
54     XMIResource result = new Ecore2EcoreResourceImpl(uri);
55     result.setEncoding("UTF-8");
56     return result;
57   }
58
59 } //Ecore2EcoreResourceFactoryImpl
60
Popular Tags