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 java.util.List; |
28 | |
29 | import org.eclipse.emf.ecore.EClass; |
30 | import org.eclipse.emf.ecore.EObject; |
31 | |
32 | /** |
33 | * <!-- begin-user-doc --> |
34 | * The <b>Switch</b> for the model's inheritance hierarchy. |
35 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} |
36 | * to invoke the <code>caseXXX</code> method for each class of the model, |
37 | * starting with the actual class of the object |
38 | * and proceeding up the inheritance hierarchy |
39 | * until a non-null result is returned, |
40 | * which is the result of the switch. |
41 | * <!-- end-user-doc --> |
42 | * @see QVTRelation.QVTRelationPackage |
43 | * @generated |
44 | */ |
45 | public class QVTRelationSwitch<T> { |
46 | /** |
47 | * The cached model package |
48 | * <!-- begin-user-doc --> |
49 | * <!-- end-user-doc --> |
50 | * @generated |
51 | */ |
52 | protected static QVTRelationPackage modelPackage; |
53 | |
54 | /** |
55 | * Creates an instance of the switch. |
56 | * <!-- begin-user-doc --> |
57 | * <!-- end-user-doc --> |
58 | * @generated |
59 | */ |
60 | public QVTRelationSwitch() { |
61 | if (modelPackage == null) { |
62 | modelPackage = QVTRelationPackage.eINSTANCE; |
63 | } |
64 | } |
65 | |
66 | /** |
67 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
68 | * <!-- begin-user-doc --> |
69 | * <!-- end-user-doc --> |
70 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
71 | * @generated |
72 | */ |
73 | public T doSwitch(EObject theEObject) { |
74 | return doSwitch(theEObject.eClass(), theEObject); |
75 | } |
76 | |
77 | /** |
78 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
79 | * <!-- begin-user-doc --> |
80 | * <!-- end-user-doc --> |
81 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
82 | * @generated |
83 | */ |
84 | protected T doSwitch(EClass theEClass, EObject theEObject) { |
85 | if (theEClass.eContainer() == modelPackage) { |
86 | return doSwitch(theEClass.getClassifierID(), theEObject); |
87 | } |
88 | else { |
89 | List<EClass> eSuperTypes = theEClass.getESuperTypes(); |
90 | return |
91 | eSuperTypes.isEmpty() ? |
92 | defaultCase(theEObject) : |
93 | doSwitch(eSuperTypes.get(0), theEObject); |
94 | } |
95 | } |
96 | |
97 | /** |
98 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
99 | * <!-- begin-user-doc --> |
100 | * <!-- end-user-doc --> |
101 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
102 | * @generated |
103 | */ |
104 | protected T doSwitch(int classifierID, EObject theEObject) { |
105 | switch (classifierID) { |
106 | case QVTRelationPackage.DOMAIN_PATTERN: { |
107 | DomainPattern domainPattern = (DomainPattern)theEObject; |
108 | T result = caseDomainPattern(domainPattern); |
109 | if (result == null) result = casePattern(domainPattern); |
110 | if (result == null) result = caseElement(domainPattern); |
111 | if (result == null) result = caseObject(domainPattern); |
112 | if (result == null) result = defaultCase(theEObject); |
113 | return result; |
114 | } |
115 | case QVTRelationPackage.KEY: { |
116 | Key key = (Key)theEObject; |
117 | T result = caseKey(key); |
118 | if (result == null) result = caseElement(key); |
119 | if (result == null) result = caseObject(key); |
120 | if (result == null) result = defaultCase(theEObject); |
121 | return result; |
122 | } |
123 | case QVTRelationPackage.OPPOSITE_PROPERTY_CALL_EXP: { |
124 | OppositePropertyCallExp oppositePropertyCallExp = (OppositePropertyCallExp)theEObject; |
125 | T result = caseOppositePropertyCallExp(oppositePropertyCallExp); |
126 | if (result == null) result = casePropertyCallExp(oppositePropertyCallExp); |
127 | if (result == null) result = caseNavigationCallExp(oppositePropertyCallExp); |
128 | if (result == null) result = caseFeatureCallExp(oppositePropertyCallExp); |
129 | if (result == null) result = caseCallExp(oppositePropertyCallExp); |
130 | if (result == null) result = caseOclExpression(oppositePropertyCallExp); |
131 | if (result == null) result = caseTypedElement(oppositePropertyCallExp); |
132 | if (result == null) result = caseNamedElement(oppositePropertyCallExp); |
133 | if (result == null) result = caseElement(oppositePropertyCallExp); |
134 | if (result == null) result = caseObject(oppositePropertyCallExp); |
135 | if (result == null) result = defaultCase(theEObject); |
136 | return result; |
137 | } |
138 | case QVTRelationPackage.RELATION: { |
139 | Relation relation = (Relation)theEObject; |
140 | T result = caseRelation(relation); |
141 | if (result == null) result = caseRule(relation); |
142 | if (result == null) result = caseNamedElement(relation); |
143 | if (result == null) result = caseElement(relation); |
144 | if (result == null) result = caseObject(relation); |
145 | if (result == null) result = defaultCase(theEObject); |
146 | return result; |
147 | } |
148 | case QVTRelationPackage.RELATION_CALL_EXP: { |
149 | RelationCallExp relationCallExp = (RelationCallExp)theEObject; |
150 | T result = caseRelationCallExp(relationCallExp); |
151 | if (result == null) result = caseOclExpression(relationCallExp); |
152 | if (result == null) result = caseTypedElement(relationCallExp); |
153 | if (result == null) result = caseNamedElement(relationCallExp); |
154 | if (result == null) result = caseElement(relationCallExp); |
155 | if (result == null) result = caseObject(relationCallExp); |
156 | if (result == null) result = defaultCase(theEObject); |
157 | return result; |
158 | } |
159 | case QVTRelationPackage.RELATION_DOMAIN: { |
160 | RelationDomain relationDomain = (RelationDomain)theEObject; |
161 | T result = caseRelationDomain(relationDomain); |
162 | if (result == null) result = caseDomain(relationDomain); |
163 | if (result == null) result = caseNamedElement(relationDomain); |
164 | if (result == null) result = caseElement(relationDomain); |
165 | if (result == null) result = caseObject(relationDomain); |
166 | if (result == null) result = defaultCase(theEObject); |
167 | return result; |
168 | } |
169 | case QVTRelationPackage.RELATION_DOMAIN_ASSIGNMENT: { |
170 | RelationDomainAssignment relationDomainAssignment = (RelationDomainAssignment)theEObject; |
171 | T result = caseRelationDomainAssignment(relationDomainAssignment); |
172 | if (result == null) result = caseElement(relationDomainAssignment); |
173 | if (result == null) result = caseObject(relationDomainAssignment); |
174 | if (result == null) result = defaultCase(theEObject); |
175 | return result; |
176 | } |
177 | case QVTRelationPackage.RELATION_IMPLEMENTATION: { |
178 | RelationImplementation relationImplementation = (RelationImplementation)theEObject; |
179 | T result = caseRelationImplementation(relationImplementation); |
180 | if (result == null) result = caseElement(relationImplementation); |
181 | if (result == null) result = caseObject(relationImplementation); |
182 | if (result == null) result = defaultCase(theEObject); |
183 | return result; |
184 | } |
185 | case QVTRelationPackage.RELATIONAL_TRANSFORMATION: { |
186 | RelationalTransformation relationalTransformation = (RelationalTransformation)theEObject; |
187 | T result = caseRelationalTransformation(relationalTransformation); |
188 | if (result == null) result = caseTransformation(relationalTransformation); |
189 | if (result == null) result = caseClass(relationalTransformation); |
190 | if (result == null) result = casePackage(relationalTransformation); |
191 | if (result == null) result = caseType(relationalTransformation); |
192 | if (result == null) result = caseNamedElement(relationalTransformation); |
193 | if (result == null) result = caseElement(relationalTransformation); |
194 | if (result == null) result = caseObject(relationalTransformation); |
195 | if (result == null) result = defaultCase(theEObject); |
196 | return result; |
197 | } |
198 | default: return defaultCase(theEObject); |
199 | } |
200 | } |
201 | |
202 | /** |
203 | * Returns the result of interpreting the object as an instance of '<em>Domain Pattern</em>'. |
204 | * <!-- begin-user-doc --> |
205 | * This implementation returns null; |
206 | * returning a non-null result will terminate the switch. |
207 | * <!-- end-user-doc --> |
208 | * @param object the target of the switch. |
209 | * @return the result of interpreting the object as an instance of '<em>Domain Pattern</em>'. |
210 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
211 | * @generated |
212 | */ |
213 | public T caseDomainPattern(DomainPattern object) { |
214 | return null; |
215 | } |
216 | |
217 | /** |
218 | * Returns the result of interpreting the object as an instance of '<em>Key</em>'. |
219 | * <!-- begin-user-doc --> |
220 | * This implementation returns null; |
221 | * returning a non-null result will terminate the switch. |
222 | * <!-- end-user-doc --> |
223 | * @param object the target of the switch. |
224 | * @return the result of interpreting the object as an instance of '<em>Key</em>'. |
225 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
226 | * @generated |
227 | */ |
228 | public T caseKey(Key object) { |
229 | return null; |
230 | } |
231 | |
232 | /** |
233 | * Returns the result of interpreting the object as an instance of '<em>Opposite Property Call Exp</em>'. |
234 | * <!-- begin-user-doc --> |
235 | * This implementation returns null; |
236 | * returning a non-null result will terminate the switch. |
237 | * <!-- end-user-doc --> |
238 | * @param object the target of the switch. |
239 | * @return the result of interpreting the object as an instance of '<em>Opposite Property Call Exp</em>'. |
240 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
241 | * @generated |
242 | */ |
243 | public T caseOppositePropertyCallExp(OppositePropertyCallExp object) { |
244 | return null; |
245 | } |
246 | |
247 | /** |
248 | * Returns the result of interpreting the object as an instance of '<em>Relation</em>'. |
249 | * <!-- begin-user-doc --> |
250 | * This implementation returns null; |
251 | * returning a non-null result will terminate the switch. |
252 | * <!-- end-user-doc --> |
253 | * @param object the target of the switch. |
254 | * @return the result of interpreting the object as an instance of '<em>Relation</em>'. |
255 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
256 | * @generated |
257 | */ |
258 | public T caseRelation(Relation object) { |
259 | return null; |
260 | } |
261 | |
262 | /** |
263 | * Returns the result of interpreting the object as an instance of '<em>Relation Call Exp</em>'. |
264 | * <!-- begin-user-doc --> |
265 | * This implementation returns null; |
266 | * returning a non-null result will terminate the switch. |
267 | * <!-- end-user-doc --> |
268 | * @param object the target of the switch. |
269 | * @return the result of interpreting the object as an instance of '<em>Relation Call Exp</em>'. |
270 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
271 | * @generated |
272 | */ |
273 | public T caseRelationCallExp(RelationCallExp object) { |
274 | return null; |
275 | } |
276 | |
277 | /** |
278 | * Returns the result of interpreting the object as an instance of '<em>Relation Domain</em>'. |
279 | * <!-- begin-user-doc --> |
280 | * This implementation returns null; |
281 | * returning a non-null result will terminate the switch. |
282 | * <!-- end-user-doc --> |
283 | * @param object the target of the switch. |
284 | * @return the result of interpreting the object as an instance of '<em>Relation Domain</em>'. |
285 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
286 | * @generated |
287 | */ |
288 | public T caseRelationDomain(RelationDomain object) { |
289 | return null; |
290 | } |
291 | |
292 | /** |
293 | * Returns the result of interpreting the object as an instance of '<em>Relation Domain Assignment</em>'. |
294 | * <!-- begin-user-doc --> |
295 | * This implementation returns null; |
296 | * returning a non-null result will terminate the switch. |
297 | * <!-- end-user-doc --> |
298 | * @param object the target of the switch. |
299 | * @return the result of interpreting the object as an instance of '<em>Relation Domain Assignment</em>'. |
300 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
301 | * @generated |
302 | */ |
303 | public T caseRelationDomainAssignment(RelationDomainAssignment object) { |
304 | return null; |
305 | } |
306 | |
307 | /** |
308 | * Returns the result of interpreting the object as an instance of '<em>Relation Implementation</em>'. |
309 | * <!-- begin-user-doc --> |
310 | * This implementation returns null; |
311 | * returning a non-null result will terminate the switch. |
312 | * <!-- end-user-doc --> |
313 | * @param object the target of the switch. |
314 | * @return the result of interpreting the object as an instance of '<em>Relation Implementation</em>'. |
315 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
316 | * @generated |
317 | */ |
318 | public T caseRelationImplementation(RelationImplementation object) { |
319 | return null; |
320 | } |
321 | |
322 | /** |
323 | * Returns the result of interpreting the object as an instance of '<em>Relational Transformation</em>'. |
324 | * <!-- begin-user-doc --> |
325 | * This implementation returns null; |
326 | * returning a non-null result will terminate the switch. |
327 | * <!-- end-user-doc --> |
328 | * @param object the target of the switch. |
329 | * @return the result of interpreting the object as an instance of '<em>Relational Transformation</em>'. |
330 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
331 | * @generated |
332 | */ |
333 | public T caseRelationalTransformation(RelationalTransformation object) { |
334 | return null; |
335 | } |
336 | |
337 | /** |
338 | * Returns the result of interpreting the object as an instance of '<em>Object</em>'. |
339 | * <!-- begin-user-doc --> |
340 | * This implementation returns null; |
341 | * returning a non-null result will terminate the switch. |
342 | * <!-- end-user-doc --> |
343 | * @param object the target of the switch. |
344 | * @return the result of interpreting the object as an instance of '<em>Object</em>'. |
345 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
346 | * @generated |
347 | */ |
348 | public T caseObject(EMOF.Object object) { |
349 | return null; |
350 | } |
351 | |
352 | /** |
353 | * Returns the result of interpreting the object as an instance of '<em>Element</em>'. |
354 | * <!-- begin-user-doc --> |
355 | * This implementation returns null; |
356 | * returning a non-null result will terminate the switch. |
357 | * <!-- end-user-doc --> |
358 | * @param object the target of the switch. |
359 | * @return the result of interpreting the object as an instance of '<em>Element</em>'. |
360 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
361 | * @generated |
362 | */ |
363 | public T caseElement(Element object) { |
364 | return null; |
365 | } |
366 | |
367 | /** |
368 | * Returns the result of interpreting the object as an instance of '<em>Pattern</em>'. |
369 | * <!-- begin-user-doc --> |
370 | * This implementation returns null; |
371 | * returning a non-null result will terminate the switch. |
372 | * <!-- end-user-doc --> |
373 | * @param object the target of the switch. |
374 | * @return the result of interpreting the object as an instance of '<em>Pattern</em>'. |
375 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
376 | * @generated |
377 | */ |
378 | public T casePattern(Pattern object) { |
379 | return null; |
380 | } |
381 | |
382 | /** |
383 | * Returns the result of interpreting the object as an instance of '<em>Named Element</em>'. |
384 | * <!-- begin-user-doc --> |
385 | * This implementation returns null; |
386 | * returning a non-null result will terminate the switch. |
387 | * <!-- end-user-doc --> |
388 | * @param object the target of the switch. |
389 | * @return the result of interpreting the object as an instance of '<em>Named Element</em>'. |
390 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
391 | * @generated |
392 | */ |
393 | public T caseNamedElement(NamedElement object) { |
394 | return null; |
395 | } |
396 | |
397 | /** |
398 | * Returns the result of interpreting the object as an instance of '<em>Typed Element</em>'. |
399 | * <!-- begin-user-doc --> |
400 | * This implementation returns null; |
401 | * returning a non-null result will terminate the switch. |
402 | * <!-- end-user-doc --> |
403 | * @param object the target of the switch. |
404 | * @return the result of interpreting the object as an instance of '<em>Typed Element</em>'. |
405 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
406 | * @generated |
407 | */ |
408 | public T caseTypedElement(TypedElement object) { |
409 | return null; |
410 | } |
411 | |
412 | /** |
413 | * Returns the result of interpreting the object as an instance of '<em>Ocl Expression</em>'. |
414 | * <!-- begin-user-doc --> |
415 | * This implementation returns null; |
416 | * returning a non-null result will terminate the switch. |
417 | * <!-- end-user-doc --> |
418 | * @param object the target of the switch. |
419 | * @return the result of interpreting the object as an instance of '<em>Ocl Expression</em>'. |
420 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
421 | * @generated |
422 | */ |
423 | public T caseOclExpression(OclExpression object) { |
424 | return null; |
425 | } |
426 | |
427 | /** |
428 | * Returns the result of interpreting the object as an instance of '<em>Call Exp</em>'. |
429 | * <!-- begin-user-doc --> |
430 | * This implementation returns null; |
431 | * returning a non-null result will terminate the switch. |
432 | * <!-- end-user-doc --> |
433 | * @param object the target of the switch. |
434 | * @return the result of interpreting the object as an instance of '<em>Call Exp</em>'. |
435 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
436 | * @generated |
437 | */ |
438 | public T caseCallExp(CallExp object) { |
439 | return null; |
440 | } |
441 | |
442 | /** |
443 | * Returns the result of interpreting the object as an instance of '<em>Feature Call Exp</em>'. |
444 | * <!-- begin-user-doc --> |
445 | * This implementation returns null; |
446 | * returning a non-null result will terminate the switch. |
447 | * <!-- end-user-doc --> |
448 | * @param object the target of the switch. |
449 | * @return the result of interpreting the object as an instance of '<em>Feature Call Exp</em>'. |
450 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
451 | * @generated |
452 | */ |
453 | public T caseFeatureCallExp(FeatureCallExp object) { |
454 | return null; |
455 | } |
456 | |
457 | /** |
458 | * Returns the result of interpreting the object as an instance of '<em>Navigation Call Exp</em>'. |
459 | * <!-- begin-user-doc --> |
460 | * This implementation returns null; |
461 | * returning a non-null result will terminate the switch. |
462 | * <!-- end-user-doc --> |
463 | * @param object the target of the switch. |
464 | * @return the result of interpreting the object as an instance of '<em>Navigation Call Exp</em>'. |
465 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
466 | * @generated |
467 | */ |
468 | public T caseNavigationCallExp(NavigationCallExp object) { |
469 | return null; |
470 | } |
471 | |
472 | /** |
473 | * Returns the result of interpreting the object as an instance of '<em>Property Call Exp</em>'. |
474 | * <!-- begin-user-doc --> |
475 | * This implementation returns null; |
476 | * returning a non-null result will terminate the switch. |
477 | * <!-- end-user-doc --> |
478 | * @param object the target of the switch. |
479 | * @return the result of interpreting the object as an instance of '<em>Property Call Exp</em>'. |
480 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
481 | * @generated |
482 | */ |
483 | public T casePropertyCallExp(PropertyCallExp object) { |
484 | return null; |
485 | } |
486 | |
487 | /** |
488 | * Returns the result of interpreting the object as an instance of '<em>Rule</em>'. |
489 | * <!-- begin-user-doc --> |
490 | * This implementation returns null; |
491 | * returning a non-null result will terminate the switch. |
492 | * <!-- end-user-doc --> |
493 | * @param object the target of the switch. |
494 | * @return the result of interpreting the object as an instance of '<em>Rule</em>'. |
495 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
496 | * @generated |
497 | */ |
498 | public T caseRule(Rule object) { |
499 | return null; |
500 | } |
501 | |
502 | /** |
503 | * Returns the result of interpreting the object as an instance of '<em>Domain</em>'. |
504 | * <!-- begin-user-doc --> |
505 | * This implementation returns null; |
506 | * returning a non-null result will terminate the switch. |
507 | * <!-- end-user-doc --> |
508 | * @param object the target of the switch. |
509 | * @return the result of interpreting the object as an instance of '<em>Domain</em>'. |
510 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
511 | * @generated |
512 | */ |
513 | public T caseDomain(Domain object) { |
514 | return null; |
515 | } |
516 | |
517 | /** |
518 | * Returns the result of interpreting the object as an instance of '<em>Type</em>'. |
519 | * <!-- begin-user-doc --> |
520 | * This implementation returns null; |
521 | * returning a non-null result will terminate the switch. |
522 | * <!-- end-user-doc --> |
523 | * @param object the target of the switch. |
524 | * @return the result of interpreting the object as an instance of '<em>Type</em>'. |
525 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
526 | * @generated |
527 | */ |
528 | public T caseType(Type object) { |
529 | return null; |
530 | } |
531 | |
532 | /** |
533 | * Returns the result of interpreting the object as an instance of '<em>Class</em>'. |
534 | * <!-- begin-user-doc --> |
535 | * This implementation returns null; |
536 | * returning a non-null result will terminate the switch. |
537 | * <!-- end-user-doc --> |
538 | * @param object the target of the switch. |
539 | * @return the result of interpreting the object as an instance of '<em>Class</em>'. |
540 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
541 | * @generated |
542 | */ |
543 | public T caseClass(EMOF.Class object) { |
544 | return null; |
545 | } |
546 | |
547 | /** |
548 | * Returns the result of interpreting the object as an instance of '<em>Package</em>'. |
549 | * <!-- begin-user-doc --> |
550 | * This implementation returns null; |
551 | * returning a non-null result will terminate the switch. |
552 | * <!-- end-user-doc --> |
553 | * @param object the target of the switch. |
554 | * @return the result of interpreting the object as an instance of '<em>Package</em>'. |
555 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
556 | * @generated |
557 | */ |
558 | public T casePackage(EMOF.Package object) { |
559 | return null; |
560 | } |
561 | |
562 | /** |
563 | * Returns the result of interpreting the object as an instance of '<em>Transformation</em>'. |
564 | * <!-- begin-user-doc --> |
565 | * This implementation returns null; |
566 | * returning a non-null result will terminate the switch. |
567 | * <!-- end-user-doc --> |
568 | * @param object the target of the switch. |
569 | * @return the result of interpreting the object as an instance of '<em>Transformation</em>'. |
570 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
571 | * @generated |
572 | */ |
573 | public T caseTransformation(Transformation object) { |
574 | return null; |
575 | } |
576 | |
577 | /** |
578 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
579 | * <!-- begin-user-doc --> |
580 | * This implementation returns null; |
581 | * returning a non-null result will terminate the switch, but this is the last case anyway. |
582 | * <!-- end-user-doc --> |
583 | * @param object the target of the switch. |
584 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. |
585 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) |
586 | * @generated |
587 | */ |
588 | public T defaultCase(EObject object) { |
589 | return null; |
590 | } |
591 | |
592 | } //QVTRelationSwitch |