diff options
author | 2019-02-15 12:42:15 -0500 | |
---|---|---|
committer | 2020-06-07 19:06:30 -0400 | |
commit | cd87de919c733033557401e011102edc67c5f169 (patch) | |
tree | c19225558d63945cf7afea5e0dc92c738788d71a /Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/fam/util/famAdapterFactory.java | |
parent | Fix FAM Test. Begin Grammar Fix. (diff) | |
download | VIATRA-Generator-cd87de919c733033557401e011102edc67c5f169.tar.gz VIATRA-Generator-cd87de919c733033557401e011102edc67c5f169.tar.zst VIATRA-Generator-cd87de919c733033557401e011102edc67c5f169.zip |
Set up #19
Diffstat (limited to 'Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/fam/util/famAdapterFactory.java')
-rw-r--r-- | Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/fam/util/famAdapterFactory.java | 271 |
1 files changed, 271 insertions, 0 deletions
diff --git a/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/fam/util/famAdapterFactory.java b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/fam/util/famAdapterFactory.java new file mode 100644 index 00000000..b5a4e37b --- /dev/null +++ b/Tests/ca.mcgill.ecse.dslreasoner.standalone.test/src/ca/mcgill/ecse/dslreasoner/standalone/test/fam/util/famAdapterFactory.java | |||
@@ -0,0 +1,271 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package ca.mcgill.ecse.dslreasoner.standalone.test.fam.util; | ||
4 | |||
5 | import org.eclipse.emf.common.notify.Adapter; | ||
6 | import org.eclipse.emf.common.notify.Notifier; | ||
7 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | ||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | |||
10 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.FAMTerminator; | ||
11 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.Function; | ||
12 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalArchitectureModel; | ||
13 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalData; | ||
14 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalElement; | ||
15 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalInput; | ||
16 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalInterface; | ||
17 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalOutput; | ||
18 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.InformationLink; | ||
19 | import ca.mcgill.ecse.dslreasoner.standalone.test.fam.famPackage; | ||
20 | |||
21 | /** | ||
22 | * <!-- begin-user-doc --> | ||
23 | * The <b>Adapter Factory</b> for the model. | ||
24 | * It provides an adapter <code>createXXX</code> method for each class of the model. | ||
25 | * <!-- end-user-doc --> | ||
26 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.fam.famPackage | ||
27 | * @generated | ||
28 | */ | ||
29 | public class famAdapterFactory extends AdapterFactoryImpl { | ||
30 | /** | ||
31 | * The cached model package. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @generated | ||
35 | */ | ||
36 | protected static famPackage modelPackage; | ||
37 | |||
38 | /** | ||
39 | * Creates an instance of the adapter factory. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @generated | ||
43 | */ | ||
44 | public famAdapterFactory() { | ||
45 | if (modelPackage == null) { | ||
46 | modelPackage = famPackage.eINSTANCE; | ||
47 | } | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * Returns whether this factory is applicable for the type of the object. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | ||
54 | * <!-- end-user-doc --> | ||
55 | * @return whether this factory is applicable for the type of the object. | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | public boolean isFactoryForType(Object object) { | ||
60 | if (object == modelPackage) { | ||
61 | return true; | ||
62 | } | ||
63 | if (object instanceof EObject) { | ||
64 | return ((EObject)object).eClass().getEPackage() == modelPackage; | ||
65 | } | ||
66 | return false; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * The switch that delegates to the <code>createXXX</code> methods. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | protected famSwitch<Adapter> modelSwitch = | ||
76 | new famSwitch<Adapter>() { | ||
77 | @Override | ||
78 | public Adapter caseFunctionalElement(FunctionalElement object) { | ||
79 | return createFunctionalElementAdapter(); | ||
80 | } | ||
81 | @Override | ||
82 | public Adapter caseFunctionalArchitectureModel(FunctionalArchitectureModel object) { | ||
83 | return createFunctionalArchitectureModelAdapter(); | ||
84 | } | ||
85 | @Override | ||
86 | public Adapter caseFunction(Function object) { | ||
87 | return createFunctionAdapter(); | ||
88 | } | ||
89 | @Override | ||
90 | public Adapter caseFAMTerminator(FAMTerminator object) { | ||
91 | return createFAMTerminatorAdapter(); | ||
92 | } | ||
93 | @Override | ||
94 | public Adapter caseInformationLink(InformationLink object) { | ||
95 | return createInformationLinkAdapter(); | ||
96 | } | ||
97 | @Override | ||
98 | public Adapter caseFunctionalInterface(FunctionalInterface object) { | ||
99 | return createFunctionalInterfaceAdapter(); | ||
100 | } | ||
101 | @Override | ||
102 | public Adapter caseFunctionalInput(FunctionalInput object) { | ||
103 | return createFunctionalInputAdapter(); | ||
104 | } | ||
105 | @Override | ||
106 | public Adapter caseFunctionalOutput(FunctionalOutput object) { | ||
107 | return createFunctionalOutputAdapter(); | ||
108 | } | ||
109 | @Override | ||
110 | public Adapter caseFunctionalData(FunctionalData object) { | ||
111 | return createFunctionalDataAdapter(); | ||
112 | } | ||
113 | @Override | ||
114 | public Adapter defaultCase(EObject object) { | ||
115 | return createEObjectAdapter(); | ||
116 | } | ||
117 | }; | ||
118 | |||
119 | /** | ||
120 | * Creates an adapter for the <code>target</code>. | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @param target the object to adapt. | ||
124 | * @return the adapter for the <code>target</code>. | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public Adapter createAdapter(Notifier target) { | ||
129 | return modelSwitch.doSwitch((EObject)target); | ||
130 | } | ||
131 | |||
132 | |||
133 | /** | ||
134 | * Creates a new adapter for an object of class '{@link ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalElement <em>Functional Element</em>}'. | ||
135 | * <!-- begin-user-doc --> | ||
136 | * This default implementation returns null so that we can easily ignore cases; | ||
137 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
138 | * <!-- end-user-doc --> | ||
139 | * @return the new adapter. | ||
140 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalElement | ||
141 | * @generated | ||
142 | */ | ||
143 | public Adapter createFunctionalElementAdapter() { | ||
144 | return null; | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * Creates a new adapter for an object of class '{@link ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalArchitectureModel <em>Functional Architecture Model</em>}'. | ||
149 | * <!-- begin-user-doc --> | ||
150 | * This default implementation returns null so that we can easily ignore cases; | ||
151 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
152 | * <!-- end-user-doc --> | ||
153 | * @return the new adapter. | ||
154 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalArchitectureModel | ||
155 | * @generated | ||
156 | */ | ||
157 | public Adapter createFunctionalArchitectureModelAdapter() { | ||
158 | return null; | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * Creates a new adapter for an object of class '{@link ca.mcgill.ecse.dslreasoner.standalone.test.fam.Function <em>Function</em>}'. | ||
163 | * <!-- begin-user-doc --> | ||
164 | * This default implementation returns null so that we can easily ignore cases; | ||
165 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
166 | * <!-- end-user-doc --> | ||
167 | * @return the new adapter. | ||
168 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.fam.Function | ||
169 | * @generated | ||
170 | */ | ||
171 | public Adapter createFunctionAdapter() { | ||
172 | return null; | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * Creates a new adapter for an object of class '{@link ca.mcgill.ecse.dslreasoner.standalone.test.fam.FAMTerminator <em>FAM Terminator</em>}'. | ||
177 | * <!-- begin-user-doc --> | ||
178 | * This default implementation returns null so that we can easily ignore cases; | ||
179 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
180 | * <!-- end-user-doc --> | ||
181 | * @return the new adapter. | ||
182 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.fam.FAMTerminator | ||
183 | * @generated | ||
184 | */ | ||
185 | public Adapter createFAMTerminatorAdapter() { | ||
186 | return null; | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * Creates a new adapter for an object of class '{@link ca.mcgill.ecse.dslreasoner.standalone.test.fam.InformationLink <em>Information Link</em>}'. | ||
191 | * <!-- begin-user-doc --> | ||
192 | * This default implementation returns null so that we can easily ignore cases; | ||
193 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
194 | * <!-- end-user-doc --> | ||
195 | * @return the new adapter. | ||
196 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.fam.InformationLink | ||
197 | * @generated | ||
198 | */ | ||
199 | public Adapter createInformationLinkAdapter() { | ||
200 | return null; | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * Creates a new adapter for an object of class '{@link ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalInterface <em>Functional Interface</em>}'. | ||
205 | * <!-- begin-user-doc --> | ||
206 | * This default implementation returns null so that we can easily ignore cases; | ||
207 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
208 | * <!-- end-user-doc --> | ||
209 | * @return the new adapter. | ||
210 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalInterface | ||
211 | * @generated | ||
212 | */ | ||
213 | public Adapter createFunctionalInterfaceAdapter() { | ||
214 | return null; | ||
215 | } | ||
216 | |||
217 | /** | ||
218 | * Creates a new adapter for an object of class '{@link ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalInput <em>Functional Input</em>}'. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * This default implementation returns null so that we can easily ignore cases; | ||
221 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
222 | * <!-- end-user-doc --> | ||
223 | * @return the new adapter. | ||
224 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalInput | ||
225 | * @generated | ||
226 | */ | ||
227 | public Adapter createFunctionalInputAdapter() { | ||
228 | return null; | ||
229 | } | ||
230 | |||
231 | /** | ||
232 | * Creates a new adapter for an object of class '{@link ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalOutput <em>Functional Output</em>}'. | ||
233 | * <!-- begin-user-doc --> | ||
234 | * This default implementation returns null so that we can easily ignore cases; | ||
235 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
236 | * <!-- end-user-doc --> | ||
237 | * @return the new adapter. | ||
238 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalOutput | ||
239 | * @generated | ||
240 | */ | ||
241 | public Adapter createFunctionalOutputAdapter() { | ||
242 | return null; | ||
243 | } | ||
244 | |||
245 | /** | ||
246 | * Creates a new adapter for an object of class '{@link ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalData <em>Functional Data</em>}'. | ||
247 | * <!-- begin-user-doc --> | ||
248 | * This default implementation returns null so that we can easily ignore cases; | ||
249 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
250 | * <!-- end-user-doc --> | ||
251 | * @return the new adapter. | ||
252 | * @see ca.mcgill.ecse.dslreasoner.standalone.test.fam.FunctionalData | ||
253 | * @generated | ||
254 | */ | ||
255 | public Adapter createFunctionalDataAdapter() { | ||
256 | return null; | ||
257 | } | ||
258 | |||
259 | /** | ||
260 | * Creates a new adapter for the default case. | ||
261 | * <!-- begin-user-doc --> | ||
262 | * This default implementation returns null. | ||
263 | * <!-- end-user-doc --> | ||
264 | * @return the new adapter. | ||
265 | * @generated | ||
266 | */ | ||
267 | public Adapter createEObjectAdapter() { | ||
268 | return null; | ||
269 | } | ||
270 | |||
271 | } //famAdapterFactory | ||