blob: ea0a69e9e88d3e3150c84d9c9361e7c019ef3596 (
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
48
|
/*******************************************************************************
* Copyright (c) 2015, 2016 Willink Transformations and others.
* 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:
* E.D.Willink - Initial API and implementation
*******************************************************************************/
package org.eclipse.qvtd.runtime.evaluation;
import java.util.Collection;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.ocl.pivot.evaluation.ModelManager;
/**
* A Transformer provides the core support to execute an auto-generated transformation
* between models.
*
* @noimplement clients should derive from AbstractTransformer
*/
public interface Transformer extends ModelManager, ExecutionVisitable
{
/**
* Clients may reference this explicitly to force a compile-time failure for a mismatch.
*
* @noreference this is solely for development usage.
*
* 1.1.0-1 API version introduced, ObjectManager etc interfaces separated out, AbstractObjectManager etc enforced.
* 1.1.0-2 Preliminary incremental support.
*/
public static int RUN_TIME_EVALUATOR_API_VERSION_1_1_0_2 = 1*1000 + 1 * 100 + 0*10 + 2;
/**
* The run-time API version.
*
* @noreference this is solely for development usage.
*/
public static int RUN_TIME_EVALUATOR_API_VERSION = RUN_TIME_EVALUATOR_API_VERSION_1_1_0_2;
void addRootObjects(@NonNull String modelName, @NonNull Iterable<@NonNull ? extends Object> rootObjects);
@NonNull Collection<@NonNull ? extends EObject> getRootEObjects(@NonNull String modelName);
@NonNull Collection<@NonNull Object> getRootObjects(@NonNull String modelName);
boolean run() throws Exception;
}
|