blob: 3a3de8d9a7c72610df46b2dc4784a940bf942caf (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/*****************************************************************************
* Copyright (c) 2017 CEA LIST.
*
*
* 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:
* Pauline DEVILLE (CEA LIST) pauline.deville@cea.fr - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.toolsmiths.profilemigration.factory;
import java.util.List;
import org.eclipse.emf.edit.tree.TreeNode;
import org.eclipse.papyrus.toolsmiths.profilemigration.migrators.atomic.IAtomicMigrator;
/**
* This factory instantiate IAtomicMigrator
*/
public class MigratorFactory implements IMigratorFactory {
public static final MigratorFactory INSTANCE = new MigratorFactory();
private static org.eclipse.papyrus.toolsmiths.profilemigration.internal.factory.AtomicMigratorsFactory internalMigratorFactory;
private MigratorFactory() {
internalMigratorFactory = org.eclipse.papyrus.toolsmiths.profilemigration.internal.factory.AtomicMigratorsFactory.INSTANCE;
}
@Override
public List<IAtomicMigrator> instantiateMigrator(TreeNode treeNode) {
return internalMigratorFactory.instantiateMigrator(treeNode);
}
@Override
public IAtomicMigrator instantiateChangeLowerMultiplicityFromPropertyMigrator(TreeNode treeNode) {
return internalMigratorFactory.instantiateChangeLowerMultiplicityFromPropertyMigrator(treeNode);
}
@Override
public IAtomicMigrator instantiateChangeUpperMultiplicityFromPropertyMigrator(TreeNode treeNode) {
return internalMigratorFactory.instantiateChangeUpperMultiplicityFromPropertyMigrator(treeNode);
}
@Override
public IAtomicMigrator instantiateChangeIsStaticFromPropertyMigrator(TreeNode treeNode) {
return internalMigratorFactory.instantiateChangeIsStaticFromPropertyMigrator(treeNode);
}
@Override
public IAtomicMigrator instantiateChangeIsAbstractFromStereotypeMigrator(TreeNode treeNode) {
return internalMigratorFactory.instantiateChangeIsAbstractFromStereotypeMigrator(treeNode);
}
@Override
public IAtomicMigrator instantiateAddPropertyToStereotypeMigrator(TreeNode treeNode) {
return internalMigratorFactory.instantiateAddPropertyToStereotypeMigrator(treeNode);
}
@Override
public IAtomicMigrator instantiateDeleteEnumerationLiteralFromEnumerationMigrator(TreeNode treeNode) {
return internalMigratorFactory.instantiateDeleteEnumerationLiteralFromEnumerationMigrator(treeNode);
}
@Override
public IAtomicMigrator instantiateMoveStereotypeMigrator(TreeNode treeNode) {
return internalMigratorFactory.instantiateMoveStereotypeMigrator(treeNode);
}
@Override
public IAtomicMigrator instantiateMovePackageMigrator(TreeNode treeNode) {
return internalMigratorFactory.instantiateMovePackageMigrator(treeNode);
}
@Override
public IAtomicMigrator instantiateMoveEnumerationLiteralFromEnumerationMigrator(TreeNode treeNode) {
return internalMigratorFactory.instantiateMoveEnumerationLiteralFromEnumerationMigrator(treeNode);
}
@Override
public IAtomicMigrator instantiateMoveProfileMigrator(TreeNode treeNode) {
return internalMigratorFactory.instantiateMoveProfileMigrator(treeNode);
}
}
|