Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 579239d6af3f1fbcd1a3bcd4a8bcbfe00dfc03f5 (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
/*******************************************************************************
 * Copyright (c) 2021 Dennis Wagelaar.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * Contributors:
 *     Dennis Wagelaar - initial API and
 *         implementation and/or initial documentation
 *******************************************************************************/
package org.eclipse.m2m.atl.emftvm;

import org.eclipse.emf.ecore.resource.Resource;

/**
 * Interface for {@link Resource}-specific {@link Model} factory objects.
 *
 * @author <a href="mailto:dwagelaar@gmail.com">Dennis Wagelaar</a>
 */
public interface ModelFactory {

	/**
	 * Creates a new {@link Model} for the given {@link Resource}.
	 *
	 * @param resource the {@link Resource} to wrap
	 * @return a new {@link Model}
	 */
	Model createModel(Resource resource);

	/**
	 * Creates a new {@link Metamodel} for the given {@link Resource}.
	 *
	 * @param resource the {@link Resource} to wrap
	 * @return a new {@link Metamodel}
	 */
	Metamodel createMetamodel(Resource resource);

}

Back to the top