Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 63dc5b92a20cfd9ab70e4fc304e2258005f7d9e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*******************************************************************************
 * Copyright (c) 2008-2010 Sonatype, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *      Sonatype, Inc. - initial API and implementation
 *******************************************************************************/

package org.eclipse.m2e.model.edit.pom.util;

import java.io.IOException;
import java.util.Map;

import org.eclipse.emf.common.util.URI;
import org.eclipse.m2e.model.edit.pom.Model;
import org.eclipse.m2e.model.edit.pom.translators.SSESyncResource;

/**
 * <!-- begin-user-doc --> The <b>Resource </b> associated with the package.
 * <!-- end-user-doc -->
 * @see org.eclipse.m2e.model.edit.pom.util.PomResourceFactoryImpl
 * @generated NOT
 */
public class PomResourceImpl extends SSESyncResource {
	/**
	 * Creates an instance of the resource.
	 * <!-- begin-user-doc --> <!--
	 * end-user-doc -->
	 * @param uri the URI of the new resource.
	 * @generated
	 */
	public PomResourceImpl(URI uri) {
		super(uri);
	}
	
	public void load(Map<?, ?> options) throws IOException {
	  super.load(options);
	}

	public Model getModel() {
		return (Model) getContents().get(0);
	}

} // PomResourceImpl

Back to the top