KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > xmi > impl > XMIResourceImpl


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 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: XMIResourceImpl.java,v 1.2 2005/06/08 06:16:07 nickb Exp $
16  */

17 package org.eclipse.emf.ecore.xmi.impl;
18
19 import org.eclipse.emf.common.util.URI;
20 import org.eclipse.emf.ecore.xmi.XMIResource;
21 import org.eclipse.emf.ecore.xmi.XMLHelper;
22 import org.eclipse.emf.ecore.xmi.XMLLoad;
23 import org.eclipse.emf.ecore.xmi.XMLSave;
24
25 /**
26  * This class represents an XMIResource.
27  */

28 public class XMIResourceImpl extends XMLResourceImpl implements XMIResource {
29
30   /**
31    * Constructor for XMIResourceImpl.
32    */

33   public XMIResourceImpl() {
34     super();
35   }
36
37   /**
38    * Constructor for XMIResourceImpl.
39    * @param uri
40    */

41   public XMIResourceImpl(URI uri) {
42     super(uri);
43   }
44
45   protected XMLHelper createXMLHelper()
46   {
47     return new XMIHelperImpl(this);
48   }
49   
50   protected XMLLoad createXMLLoad()
51   {
52     return new XMILoadImpl(createXMLHelper());
53   }
54   
55   protected XMLSave createXMLSave()
56   {
57     return new XMISaveImpl(createXMLHelper());
58   }
59 }
60
Popular Tags