1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package QVTRelation.util; |
8 | |
9 | import EMOF.Element; |
10 | import EMOF.NamedElement; |
11 | import EMOF.Type; |
12 | import EMOF.TypedElement; |
13 | |
14 | import EssentialOCL.CallExp; |
15 | import EssentialOCL.FeatureCallExp; |
16 | import EssentialOCL.NavigationCallExp; |
17 | import EssentialOCL.OclExpression; |
18 | import EssentialOCL.PropertyCallExp; |
19 | |
20 | import QVTBase.Domain; |
21 | import QVTBase.Pattern; |
22 | import QVTBase.Rule; |
23 | import QVTBase.Transformation; |
24 | |
25 | import QVTRelation.*; |
26 | |
27 | import org.eclipse.emf.common.notify.Adapter; |
28 | import org.eclipse.emf.common.notify.Notifier; |
29 | |
30 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
31 | |
32 | import org.eclipse.emf.ecore.EObject; |
33 | |
34 | /** |
35 | * <!-- begin-user-doc --> |
36 | * The <b>Adapter Factory</b> for the model. |
37 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
38 | * <!-- end-user-doc --> |
39 | * @see QVTRelation.QVTRelationPackage |
40 | * @generated |
41 | */ |
42 | public class QVTRelationAdapterFactory extends AdapterFactoryImpl { |
43 | /** |
44 | * The cached model package. |
45 | * <!-- begin-user-doc --> |
46 | * <!-- end-user-doc --> |
47 | * @generated |
48 | */ |
49 | protected static QVTRelationPackage modelPackage; |
50 | |
51 | /** |
52 | * Creates an instance of the adapter factory. |
53 | * <!-- begin-user-doc --> |
54 | * <!-- end-user-doc --> |
55 | * @generated |
56 | */ |
57 | public QVTRelationAdapterFactory() { |
58 | if (modelPackage == null) { |
59 | modelPackage = QVTRelationPackage.eINSTANCE; |
60 | } |
61 | } |
62 | |
63 | /** |
64 | * Returns whether this factory is applicable for the type of the object. |
65 | * <!-- begin-user-doc --> |
66 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
67 | * <!-- end-user-doc --> |
68 | * @return whether this factory is applicable for the type of the object. |
69 | * @generated |
70 | */ |
71 | @Override |
72 | public boolean isFactoryForType(Object object) { |
73 | if (object == modelPackage) { |
74 | return true; |
75 | } |
76 | if (object instanceof EObject) { |
77 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
78 | } |
79 | return false; |
80 | } |
81 | |
82 | /** |
83 | * The switch that delegates to the <code>createXXX</code> methods. |
84 | * <!-- begin-user-doc --> |
85 | * <!-- end-user-doc --> |
86 | * @generated |
87 | */ |
88 | protected QVTRelationSwitch<Adapter> modelSwitch = |
89 | new QVTRelationSwitch<Adapter>() { |
90 | @Override |
91 | public Adapter caseDomainPattern(DomainPattern object) { |
92 | return createDomainPatternAdapter(); |
93 | } |
94 | @Override |
95 | public Adapter caseKey(Key object) { |
96 | return createKeyAdapter(); |
97 | } |
98 | @Override |
99 | public Adapter caseOppositePropertyCallExp(OppositePropertyCallExp object) { |
100 | return createOppositePropertyCallExpAdapter(); |
101 | } |
102 | @Override |
103 | public Adapter caseRelation(Relation object) { |
104 | return createRelationAdapter(); |
105 | } |
106 | @Override |
107 | public Adapter caseRelationCallExp(RelationCallExp object) { |
108 | return createRelationCallExpAdapter(); |
109 | } |
110 | @Override |
111 | public Adapter caseRelationDomain(RelationDomain object) { |
112 | return createRelationDomainAdapter(); |
113 | } |
114 | @Override |
115 | public Adapter caseRelationDomainAssignment(RelationDomainAssignment object) { |
116 | return createRelationDomainAssignmentAdapter(); |
117 | } |
118 | @Override |
119 | public Adapter caseRelationImplementation(RelationImplementation object) { |
120 | return createRelationImplementationAdapter(); |
121 | } |
122 | @Override |
123 | public Adapter caseRelationalTransformation(RelationalTransformation object) { |
124 | return createRelationalTransformationAdapter(); |
125 | } |
126 | @Override |
127 | public Adapter caseObject(EMOF.Object object) { |
128 | return createObjectAdapter(); |
129 | } |
130 | @Override |
131 | public Adapter caseElement(Element object) { |
132 | return createElementAdapter(); |
133 | } |
134 | @Override |
135 | public Adapter casePattern(Pattern object) { |
136 | return createPatternAdapter(); |
137 | } |
138 | @Override |
139 | public Adapter caseNamedElement(NamedElement object) { |
140 | return createNamedElementAdapter(); |
141 | } |
142 | @Override |
143 | public Adapter caseTypedElement(TypedElement object) { |
144 | return createTypedElementAdapter(); |
145 | } |
146 | @Override |
147 | public Adapter caseOclExpression(OclExpression object) { |
148 | return createOclExpressionAdapter(); |
149 | } |
150 | @Override |
151 | public Adapter caseCallExp(CallExp object) { |
152 | return createCallExpAdapter(); |
153 | } |
154 | @Override |
155 | public Adapter caseFeatureCallExp(FeatureCallExp object) { |
156 | return createFeatureCallExpAdapter(); |
157 | } |
158 | @Override |
159 | public Adapter caseNavigationCallExp(NavigationCallExp object) { |
160 | return createNavigationCallExpAdapter(); |
161 | } |
162 | @Override |
163 | public Adapter casePropertyCallExp(PropertyCallExp object) { |
164 | return createPropertyCallExpAdapter(); |
165 | } |
166 | @Override |
167 | public Adapter caseRule(Rule object) { |
168 | return createRuleAdapter(); |
169 | } |
170 | @Override |
171 | public Adapter caseDomain(Domain object) { |
172 | return createDomainAdapter(); |
173 | } |
174 | @Override |
175 | public Adapter caseType(Type object) { |
176 | return createTypeAdapter(); |
177 | } |
178 | @Override |
179 | public Adapter caseClass(EMOF.Class object) { |
180 | return createClassAdapter(); |
181 | } |
182 | @Override |
183 | public Adapter casePackage(EMOF.Package object) { |
184 | return createPackageAdapter(); |
185 | } |
186 | @Override |
187 | public Adapter caseTransformation(Transformation object) { |
188 | return createTransformationAdapter(); |
189 | } |
190 | @Override |
191 | public Adapter defaultCase(EObject object) { |
192 | return createEObjectAdapter(); |
193 | } |
194 | }; |
195 | |
196 | /** |
197 | * Creates an adapter for the <code>target</code>. |
198 | * <!-- begin-user-doc --> |
199 | * <!-- end-user-doc --> |
200 | * @param target the object to adapt. |
201 | * @return the adapter for the <code>target</code>. |
202 | * @generated |
203 | */ |
204 | @Override |
205 | public Adapter createAdapter(Notifier target) { |
206 | return modelSwitch.doSwitch((EObject)target); |
207 | } |
208 | |
209 | |
210 | /** |
211 | * Creates a new adapter for an object of class '{@link QVTRelation.DomainPattern <em>Domain Pattern</em>}'. |
212 | * <!-- begin-user-doc --> |
213 | * This default implementation returns null so that we can easily ignore cases; |
214 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
215 | * <!-- end-user-doc --> |
216 | * @return the new adapter. |
217 | * @see QVTRelation.DomainPattern |
218 | * @generated |
219 | */ |
220 | public Adapter createDomainPatternAdapter() { |
221 | return null; |
222 | } |
223 | |
224 | /** |
225 | * Creates a new adapter for an object of class '{@link QVTRelation.Key <em>Key</em>}'. |
226 | * <!-- begin-user-doc --> |
227 | * This default implementation returns null so that we can easily ignore cases; |
228 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
229 | * <!-- end-user-doc --> |
230 | * @return the new adapter. |
231 | * @see QVTRelation.Key |
232 | * @generated |
233 | */ |
234 | public Adapter createKeyAdapter() { |
235 | return null; |
236 | } |
237 | |
238 | /** |
239 | * Creates a new adapter for an object of class '{@link QVTRelation.OppositePropertyCallExp <em>Opposite Property Call Exp</em>}'. |
240 | * <!-- begin-user-doc --> |
241 | * This default implementation returns null so that we can easily ignore cases; |
242 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
243 | * <!-- end-user-doc --> |
244 | * @return the new adapter. |
245 | * @see QVTRelation.OppositePropertyCallExp |
246 | * @generated |
247 | */ |
248 | public Adapter createOppositePropertyCallExpAdapter() { |
249 | return null; |
250 | } |
251 | |
252 | /** |
253 | * Creates a new adapter for an object of class '{@link QVTRelation.Relation <em>Relation</em>}'. |
254 | * <!-- begin-user-doc --> |
255 | * This default implementation returns null so that we can easily ignore cases; |
256 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
257 | * <!-- end-user-doc --> |
258 | * @return the new adapter. |
259 | * @see QVTRelation.Relation |
260 | * @generated |
261 | */ |
262 | public Adapter createRelationAdapter() { |
263 | return null; |
264 | } |
265 | |
266 | /** |
267 | * Creates a new adapter for an object of class '{@link QVTRelation.RelationCallExp <em>Relation Call Exp</em>}'. |
268 | * <!-- begin-user-doc --> |
269 | * This default implementation returns null so that we can easily ignore cases; |
270 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
271 | * <!-- end-user-doc --> |
272 | * @return the new adapter. |
273 | * @see QVTRelation.RelationCallExp |
274 | * @generated |
275 | */ |
276 | public Adapter createRelationCallExpAdapter() { |
277 | return null; |
278 | } |
279 | |
280 | /** |
281 | * Creates a new adapter for an object of class '{@link QVTRelation.RelationDomain <em>Relation Domain</em>}'. |
282 | * <!-- begin-user-doc --> |
283 | * This default implementation returns null so that we can easily ignore cases; |
284 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
285 | * <!-- end-user-doc --> |
286 | * @return the new adapter. |
287 | * @see QVTRelation.RelationDomain |
288 | * @generated |
289 | */ |
290 | public Adapter createRelationDomainAdapter() { |
291 | return null; |
292 | } |
293 | |
294 | /** |
295 | * Creates a new adapter for an object of class '{@link QVTRelation.RelationDomainAssignment <em>Relation Domain Assignment</em>}'. |
296 | * <!-- begin-user-doc --> |
297 | * This default implementation returns null so that we can easily ignore cases; |
298 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
299 | * <!-- end-user-doc --> |
300 | * @return the new adapter. |
301 | * @see QVTRelation.RelationDomainAssignment |
302 | * @generated |
303 | */ |
304 | public Adapter createRelationDomainAssignmentAdapter() { |
305 | return null; |
306 | } |
307 | |
308 | /** |
309 | * Creates a new adapter for an object of class '{@link QVTRelation.RelationImplementation <em>Relation Implementation</em>}'. |
310 | * <!-- begin-user-doc --> |
311 | * This default implementation returns null so that we can easily ignore cases; |
312 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
313 | * <!-- end-user-doc --> |
314 | * @return the new adapter. |
315 | * @see QVTRelation.RelationImplementation |
316 | * @generated |
317 | */ |
318 | public Adapter createRelationImplementationAdapter() { |
319 | return null; |
320 | } |
321 | |
322 | /** |
323 | * Creates a new adapter for an object of class '{@link QVTRelation.RelationalTransformation <em>Relational Transformation</em>}'. |
324 | * <!-- begin-user-doc --> |
325 | * This default implementation returns null so that we can easily ignore cases; |
326 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
327 | * <!-- end-user-doc --> |
328 | * @return the new adapter. |
329 | * @see QVTRelation.RelationalTransformation |
330 | * @generated |
331 | */ |
332 | public Adapter createRelationalTransformationAdapter() { |
333 | return null; |
334 | } |
335 | |
336 | /** |
337 | * Creates a new adapter for an object of class '{@link EMOF.Object <em>Object</em>}'. |
338 | * <!-- begin-user-doc --> |
339 | * This default implementation returns null so that we can easily ignore cases; |
340 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
341 | * <!-- end-user-doc --> |
342 | * @return the new adapter. |
343 | * @see EMOF.Object |
344 | * @generated |
345 | */ |
346 | public Adapter createObjectAdapter() { |
347 | return null; |
348 | } |
349 | |
350 | /** |
351 | * Creates a new adapter for an object of class '{@link EMOF.Element <em>Element</em>}'. |
352 | * <!-- begin-user-doc --> |
353 | * This default implementation returns null so that we can easily ignore cases; |
354 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
355 | * <!-- end-user-doc --> |
356 | * @return the new adapter. |
357 | * @see EMOF.Element |
358 | * @generated |
359 | */ |
360 | public Adapter createElementAdapter() { |
361 | return null; |
362 | } |
363 | |
364 | /** |
365 | * Creates a new adapter for an object of class '{@link QVTBase.Pattern <em>Pattern</em>}'. |
366 | * <!-- begin-user-doc --> |
367 | * This default implementation returns null so that we can easily ignore cases; |
368 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
369 | * <!-- end-user-doc --> |
370 | * @return the new adapter. |
371 | * @see QVTBase.Pattern |
372 | * @generated |
373 | */ |
374 | public Adapter createPatternAdapter() { |
375 | return null; |
376 | } |
377 | |
378 | /** |
379 | * Creates a new adapter for an object of class '{@link EMOF.NamedElement <em>Named Element</em>}'. |
380 | * <!-- begin-user-doc --> |
381 | * This default implementation returns null so that we can easily ignore cases; |
382 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
383 | * <!-- end-user-doc --> |
384 | * @return the new adapter. |
385 | * @see EMOF.NamedElement |
386 | * @generated |
387 | */ |
388 | public Adapter createNamedElementAdapter() { |
389 | return null; |
390 | } |
391 | |
392 | /** |
393 | * Creates a new adapter for an object of class '{@link EMOF.TypedElement <em>Typed Element</em>}'. |
394 | * <!-- begin-user-doc --> |
395 | * This default implementation returns null so that we can easily ignore cases; |
396 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
397 | * <!-- end-user-doc --> |
398 | * @return the new adapter. |
399 | * @see EMOF.TypedElement |
400 | * @generated |
401 | */ |
402 | public Adapter createTypedElementAdapter() { |
403 | return null; |
404 | } |
405 | |
406 | /** |
407 | * Creates a new adapter for an object of class '{@link EssentialOCL.OclExpression <em>Ocl Expression</em>}'. |
408 | * <!-- begin-user-doc --> |
409 | * This default implementation returns null so that we can easily ignore cases; |
410 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
411 | * <!-- end-user-doc --> |
412 | * @return the new adapter. |
413 | * @see EssentialOCL.OclExpression |
414 | * @generated |
415 | */ |
416 | public Adapter createOclExpressionAdapter() { |
417 | return null; |
418 | } |
419 | |
420 | /** |
421 | * Creates a new adapter for an object of class '{@link EssentialOCL.CallExp <em>Call Exp</em>}'. |
422 | * <!-- begin-user-doc --> |
423 | * This default implementation returns null so that we can easily ignore cases; |
424 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
425 | * <!-- end-user-doc --> |
426 | * @return the new adapter. |
427 | * @see EssentialOCL.CallExp |
428 | * @generated |
429 | */ |
430 | public Adapter createCallExpAdapter() { |
431 | return null; |
432 | } |
433 | |
434 | /** |
435 | * Creates a new adapter for an object of class '{@link EssentialOCL.FeatureCallExp <em>Feature Call Exp</em>}'. |
436 | * <!-- begin-user-doc --> |
437 | * This default implementation returns null so that we can easily ignore cases; |
438 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
439 | * <!-- end-user-doc --> |
440 | * @return the new adapter. |
441 | * @see EssentialOCL.FeatureCallExp |
442 | * @generated |
443 | */ |
444 | public Adapter createFeatureCallExpAdapter() { |
445 | return null; |
446 | } |
447 | |
448 | /** |
449 | * Creates a new adapter for an object of class '{@link EssentialOCL.NavigationCallExp <em>Navigation Call Exp</em>}'. |
450 | * <!-- begin-user-doc --> |
451 | * This default implementation returns null so that we can easily ignore cases; |
452 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
453 | * <!-- end-user-doc --> |
454 | * @return the new adapter. |
455 | * @see EssentialOCL.NavigationCallExp |
456 | * @generated |
457 | */ |
458 | public Adapter createNavigationCallExpAdapter() { |
459 | return null; |
460 | } |
461 | |
462 | /** |
463 | * Creates a new adapter for an object of class '{@link EssentialOCL.PropertyCallExp <em>Property Call Exp</em>}'. |
464 | * <!-- begin-user-doc --> |
465 | * This default implementation returns null so that we can easily ignore cases; |
466 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
467 | * <!-- end-user-doc --> |
468 | * @return the new adapter. |
469 | * @see EssentialOCL.PropertyCallExp |
470 | * @generated |
471 | */ |
472 | public Adapter createPropertyCallExpAdapter() { |
473 | return null; |
474 | } |
475 | |
476 | /** |
477 | * Creates a new adapter for an object of class '{@link QVTBase.Rule <em>Rule</em>}'. |
478 | * <!-- begin-user-doc --> |
479 | * This default implementation returns null so that we can easily ignore cases; |
480 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
481 | * <!-- end-user-doc --> |
482 | * @return the new adapter. |
483 | * @see QVTBase.Rule |
484 | * @generated |
485 | */ |
486 | public Adapter createRuleAdapter() { |
487 | return null; |
488 | } |
489 | |
490 | /** |
491 | * Creates a new adapter for an object of class '{@link QVTBase.Domain <em>Domain</em>}'. |
492 | * <!-- begin-user-doc --> |
493 | * This default implementation returns null so that we can easily ignore cases; |
494 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
495 | * <!-- end-user-doc --> |
496 | * @return the new adapter. |
497 | * @see QVTBase.Domain |
498 | * @generated |
499 | */ |
500 | public Adapter createDomainAdapter() { |
501 | return null; |
502 | } |
503 | |
504 | /** |
505 | * Creates a new adapter for an object of class '{@link EMOF.Type <em>Type</em>}'. |
506 | * <!-- begin-user-doc --> |
507 | * This default implementation returns null so that we can easily ignore cases; |
508 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
509 | * <!-- end-user-doc --> |
510 | * @return the new adapter. |
511 | * @see EMOF.Type |
512 | * @generated |
513 | */ |
514 | public Adapter createTypeAdapter() { |
515 | return null; |
516 | } |
517 | |
518 | /** |
519 | * Creates a new adapter for an object of class '{@link EMOF.Class <em>Class</em>}'. |
520 | * <!-- begin-user-doc --> |
521 | * This default implementation returns null so that we can easily ignore cases; |
522 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
523 | * <!-- end-user-doc --> |
524 | * @return the new adapter. |
525 | * @see EMOF.Class |
526 | * @generated |
527 | */ |
528 | public Adapter createClassAdapter() { |
529 | return null; |
530 | } |
531 | |
532 | /** |
533 | * Creates a new adapter for an object of class '{@link EMOF.Package <em>Package</em>}'. |
534 | * <!-- begin-user-doc --> |
535 | * This default implementation returns null so that we can easily ignore cases; |
536 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
537 | * <!-- end-user-doc --> |
538 | * @return the new adapter. |
539 | * @see EMOF.Package |
540 | * @generated |
541 | */ |
542 | public Adapter createPackageAdapter() { |
543 | return null; |
544 | } |
545 | |
546 | /** |
547 | * Creates a new adapter for an object of class '{@link QVTBase.Transformation <em>Transformation</em>}'. |
548 | * <!-- begin-user-doc --> |
549 | * This default implementation returns null so that we can easily ignore cases; |
550 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
551 | * <!-- end-user-doc --> |
552 | * @return the new adapter. |
553 | * @see QVTBase.Transformation |
554 | * @generated |
555 | */ |
556 | public Adapter createTransformationAdapter() { |
557 | return null; |
558 | } |
559 | |
560 | /** |
561 | * Creates a new adapter for the default case. |
562 | * <!-- begin-user-doc --> |
563 | * This default implementation returns null. |
564 | * <!-- end-user-doc --> |
565 | * @return the new adapter. |
566 | * @generated |
567 | */ |
568 | public Adapter createEObjectAdapter() { |
569 | return null; |
570 | } |
571 | |
572 | } //QVTRelationAdapterFactory |