1 /**2 * <copyright>3 *4 * Copyright (c) 2005 IBM Corporation and others.5 * All rights reserved. This program and the accompanying materials6 * are made available under the terms of the Eclipse Public License v1.07 * which accompanies this distribution, and is available at8 * http://www.eclipse.org/legal/epl-v10.html9 *10 * Contributors:11 * IBM - Initial API and implementation12 *13 * </copyright>14 * 15 * $Id: Ecore2XMLResourceFactoryImpl.java,v 1.2 2005/06/21 16:17:03 khussey Exp $16 */17 package org.eclipse.emf.mapping.ecore2xml.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 25 /**26 * <!-- begin-user-doc -->27 * The <b>Resource Factory</b> associated with the package.28 * @extends Ecore2XMLResource.Factory29 * <!-- end-user-doc -->30 * @see org.eclipse.emf.mapping.ecore2xml.util.Ecore2XMLResourceImpl31 * @generated32 */33 public class Ecore2XMLResourceFactoryImpl extends ResourceFactoryImpl implements Ecore2XMLResource.Factory34 {35 36 /**37 * Creates an instance of the resource factory.38 * <!-- begin-user-doc -->39 * <!-- end-user-doc -->40 * @generated41 */42 public Ecore2XMLResourceFactoryImpl()43 {44 super();45 }46 47 /**48 * Creates an instance of the resource.49 * <!-- begin-user-doc -->50 * <!-- end-user-doc -->51 * @generated NOT52 */53 public Resource createResource(URI uri)54 {55 Ecore2XMLResource result = new Ecore2XMLResourceImpl(uri);56 57 result.setEncoding(Ecore2XMLResource.DEFAULT_ENCODING);58 59 return result;60 }61 62 } //Ecore2XMLResourceFactoryImpl63