Skip to content

Package: ViewSwitch

ViewSwitch

nameinstructionbranchcomplexitylinemethod
ViewSwitch()
M: 0 C: 7
100%
M: 0 C: 2
100%
M: 0 C: 2
100%
M: 0 C: 4
100%
M: 0 C: 1
100%
caseAttachment(VAttachment)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
caseContainedContainer(VContainedContainer)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
caseContainedElement(VContainedElement)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
caseContainer(VContainer)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
caseControl(VControl)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
caseDateTimeDisplayAttachment(VDateTimeDisplayAttachment)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseDiagnostic(VDiagnostic)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseDomainModelReference(VDomainModelReference)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseDomainModelReferenceSegment(VDomainModelReferenceSegment)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseElement(VElement)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
caseFeatureDomainModelReferenceSegment(VFeatureDomainModelReferenceSegment)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseFeaturePathDomainModelReference(VFeaturePathDomainModelReference)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseHasTooltip(VHasTooltip)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseStringToObjectMapEntry(Map.Entry)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseView(VView)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
caseViewModelLoadingProperties(VViewModelLoadingProperties)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseViewModelProperties(VViewModelProperties)
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
defaultCase(EObject)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
doSwitch(int, EObject)
M: 93 C: 240
72%
M: 29 C: 47
62%
M: 26 C: 21
45%
M: 27 C: 84
76%
M: 0 C: 1
100%
isSwitchFor(EPackage)
M: 0 C: 7
100%
M: 0 C: 2
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /**
2: * Copyright (c) 2011-2015 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: */
14: package org.eclipse.emf.ecp.view.spi.model.util;
15:
16: import java.util.Map;
17:
18: import org.eclipse.emf.ecore.EObject;
19: import org.eclipse.emf.ecore.EPackage;
20: import org.eclipse.emf.ecore.util.Switch;
21: import org.eclipse.emf.ecp.view.spi.model.VAttachment;
22: import org.eclipse.emf.ecp.view.spi.model.VContainedContainer;
23: import org.eclipse.emf.ecp.view.spi.model.VContainedElement;
24: import org.eclipse.emf.ecp.view.spi.model.VContainer;
25: import org.eclipse.emf.ecp.view.spi.model.VControl;
26: import org.eclipse.emf.ecp.view.spi.model.VDateTimeDisplayAttachment;
27: import org.eclipse.emf.ecp.view.spi.model.VDiagnostic;
28: import org.eclipse.emf.ecp.view.spi.model.VDomainModelReference;
29: import org.eclipse.emf.ecp.view.spi.model.VDomainModelReferenceSegment;
30: import org.eclipse.emf.ecp.view.spi.model.VElement;
31: import org.eclipse.emf.ecp.view.spi.model.VFeatureDomainModelReferenceSegment;
32: import org.eclipse.emf.ecp.view.spi.model.VFeaturePathDomainModelReference;
33: import org.eclipse.emf.ecp.view.spi.model.VHasTooltip;
34: import org.eclipse.emf.ecp.view.spi.model.VView;
35: import org.eclipse.emf.ecp.view.spi.model.VViewModelLoadingProperties;
36: import org.eclipse.emf.ecp.view.spi.model.VViewModelProperties;
37: import org.eclipse.emf.ecp.view.spi.model.VViewPackage;
38:
39: /**
40: * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance
41: * hierarchy. It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method
42: * for each class of the model,
43: * starting with the actual class of the object and proceeding up the
44: * inheritance hierarchy until a non-null result is returned, which is the
45: * result of the switch.
46: *
47: * @since 1.2 <!-- end-user-doc -->
48: * @see org.eclipse.emf.ecp.view.spi.model.VViewPackage
49: * @generated
50: */
51: public class ViewSwitch<T> extends Switch<T> {
52:         /**
53:          * The cached model package
54:          * <!-- begin-user-doc --> <!-- end-user-doc -->
55:          *
56:          * @generated
57:          */
58:         protected static VViewPackage modelPackage;
59:
60:         /**
61:          * Creates an instance of the switch.
62:          * <!-- begin-user-doc --> <!--
63:          * end-user-doc -->
64:          *
65:          * @generated
66:          */
67:         public ViewSwitch() {
68:•                if (modelPackage == null) {
69:                         modelPackage = VViewPackage.eINSTANCE;
70:                 }
71:         }
72:
73:         /**
74:          * Checks whether this is a switch for the given package. <!--
75:          * begin-user-doc --> <!-- end-user-doc -->
76:          *
77:          * @parameter ePackage the package in question.
78:          * @return whether this is a switch for the given package.
79:          * @generated
80:          */
81:         @Override
82:         protected boolean isSwitchFor(EPackage ePackage) {
83:•                return ePackage == modelPackage;
84:         }
85:
86:         /**
87:          * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that
88:          * result.
89:          * <!-- begin-user-doc --> <!--
90:          * end-user-doc -->
91:          *
92:          * @return the first non-null result returned by a <code>caseXXX</code> call.
93:          * @generated
94:          */
95:         @Override
96:         protected T doSwitch(int classifierID, EObject theEObject) {
97:•                switch (classifierID) {
98:                 case VViewPackage.DIAGNOSTIC: {
99:                         final VDiagnostic diagnostic = (VDiagnostic) theEObject;
100:                         T result = caseDiagnostic(diagnostic);
101:•                        if (result == null) {
102:                                 result = defaultCase(theEObject);
103:                         }
104:                         return result;
105:                 }
106:                 case VViewPackage.ATTACHMENT: {
107:                         final VAttachment attachment = (VAttachment) theEObject;
108:                         T result = caseAttachment(attachment);
109:•                        if (result == null) {
110:                                 result = defaultCase(theEObject);
111:                         }
112:                         return result;
113:                 }
114:                 case VViewPackage.DOMAIN_MODEL_REFERENCE: {
115:                         final VDomainModelReference domainModelReference = (VDomainModelReference) theEObject;
116:                         T result = caseDomainModelReference(domainModelReference);
117:•                        if (result == null) {
118:                                 result = defaultCase(theEObject);
119:                         }
120:                         return result;
121:                 }
122:                 case VViewPackage.FEATURE_PATH_DOMAIN_MODEL_REFERENCE: {
123:                         final VFeaturePathDomainModelReference featurePathDomainModelReference = (VFeaturePathDomainModelReference) theEObject;
124:                         T result = caseFeaturePathDomainModelReference(featurePathDomainModelReference);
125:•                        if (result == null) {
126:                                 result = caseDomainModelReference(featurePathDomainModelReference);
127:                         }
128:•                        if (result == null) {
129:                                 result = defaultCase(theEObject);
130:                         }
131:                         return result;
132:                 }
133:                 case VViewPackage.ELEMENT: {
134:                         final VElement element = (VElement) theEObject;
135:                         T result = caseElement(element);
136:•                        if (result == null) {
137:                                 result = defaultCase(theEObject);
138:                         }
139:                         return result;
140:                 }
141:                 case VViewPackage.VIEW: {
142:                         final VView view = (VView) theEObject;
143:                         T result = caseView(view);
144:•                        if (result == null) {
145:                                 result = caseElement(view);
146:                         }
147:•                        if (result == null) {
148:                                 result = defaultCase(theEObject);
149:                         }
150:                         return result;
151:                 }
152:                 case VViewPackage.CONTAINED_ELEMENT: {
153:                         final VContainedElement containedElement = (VContainedElement) theEObject;
154:                         T result = caseContainedElement(containedElement);
155:•                        if (result == null) {
156:                                 result = caseElement(containedElement);
157:                         }
158:•                        if (result == null) {
159:                                 result = defaultCase(theEObject);
160:                         }
161:                         return result;
162:                 }
163:                 case VViewPackage.CONTAINER: {
164:                         final VContainer container = (VContainer) theEObject;
165:                         T result = caseContainer(container);
166:•                        if (result == null) {
167:                                 result = caseElement(container);
168:                         }
169:•                        if (result == null) {
170:                                 result = defaultCase(theEObject);
171:                         }
172:                         return result;
173:                 }
174:                 case VViewPackage.CONTAINED_CONTAINER: {
175:                         final VContainedContainer containedContainer = (VContainedContainer) theEObject;
176:                         T result = caseContainedContainer(containedContainer);
177:•                        if (result == null) {
178:                                 result = caseContainedElement(containedContainer);
179:                         }
180:•                        if (result == null) {
181:                                 result = caseContainer(containedContainer);
182:                         }
183:•                        if (result == null) {
184:                                 result = caseElement(containedContainer);
185:                         }
186:•                        if (result == null) {
187:                                 result = defaultCase(theEObject);
188:                         }
189:                         return result;
190:                 }
191:                 case VViewPackage.CONTROL: {
192:                         final VControl control = (VControl) theEObject;
193:                         T result = caseControl(control);
194:•                        if (result == null) {
195:                                 result = caseContainedElement(control);
196:                         }
197:•                        if (result == null) {
198:                                 result = caseElement(control);
199:                         }
200:•                        if (result == null) {
201:                                 result = defaultCase(theEObject);
202:                         }
203:                         return result;
204:                 }
205:                 case VViewPackage.VIEW_MODEL_LOADING_PROPERTIES: {
206:                         final VViewModelLoadingProperties viewModelLoadingProperties = (VViewModelLoadingProperties) theEObject;
207:                         T result = caseViewModelLoadingProperties(viewModelLoadingProperties);
208:•                        if (result == null) {
209:                                 result = caseViewModelProperties(viewModelLoadingProperties);
210:                         }
211:•                        if (result == null) {
212:                                 result = defaultCase(theEObject);
213:                         }
214:                         return result;
215:                 }
216:                 case VViewPackage.STRING_TO_OBJECT_MAP_ENTRY: {
217:                         @SuppressWarnings("unchecked")
218:                         final Map.Entry<String, Object> stringToObjectMapEntry = (Map.Entry<String, Object>) theEObject;
219:                         T result = caseStringToObjectMapEntry(stringToObjectMapEntry);
220:•                        if (result == null) {
221:                                 result = defaultCase(theEObject);
222:                         }
223:                         return result;
224:                 }
225:                 case VViewPackage.VIEW_MODEL_PROPERTIES: {
226:                         final VViewModelProperties viewModelProperties = (VViewModelProperties) theEObject;
227:                         T result = caseViewModelProperties(viewModelProperties);
228:•                        if (result == null) {
229:                                 result = defaultCase(theEObject);
230:                         }
231:                         return result;
232:                 }
233:                 case VViewPackage.DATE_TIME_DISPLAY_ATTACHMENT: {
234:                         final VDateTimeDisplayAttachment dateTimeDisplayAttachment = (VDateTimeDisplayAttachment) theEObject;
235:                         T result = caseDateTimeDisplayAttachment(dateTimeDisplayAttachment);
236:•                        if (result == null) {
237:                                 result = caseAttachment(dateTimeDisplayAttachment);
238:                         }
239:•                        if (result == null) {
240:                                 result = defaultCase(theEObject);
241:                         }
242:                         return result;
243:                 }
244:                 case VViewPackage.HAS_TOOLTIP: {
245:                         final VHasTooltip hasTooltip = (VHasTooltip) theEObject;
246:                         T result = caseHasTooltip(hasTooltip);
247:•                        if (result == null) {
248:                                 result = defaultCase(theEObject);
249:                         }
250:                         return result;
251:                 }
252:                 case VViewPackage.DOMAIN_MODEL_REFERENCE_SEGMENT: {
253:                         final VDomainModelReferenceSegment domainModelReferenceSegment = (VDomainModelReferenceSegment) theEObject;
254:                         T result = caseDomainModelReferenceSegment(domainModelReferenceSegment);
255:•                        if (result == null) {
256:                                 result = defaultCase(theEObject);
257:                         }
258:                         return result;
259:                 }
260:                 case VViewPackage.FEATURE_DOMAIN_MODEL_REFERENCE_SEGMENT: {
261:                         final VFeatureDomainModelReferenceSegment featureDomainModelReferenceSegment = (VFeatureDomainModelReferenceSegment) theEObject;
262:                         T result = caseFeatureDomainModelReferenceSegment(featureDomainModelReferenceSegment);
263:•                        if (result == null) {
264:                                 result = caseDomainModelReferenceSegment(featureDomainModelReferenceSegment);
265:                         }
266:•                        if (result == null) {
267:                                 result = defaultCase(theEObject);
268:                         }
269:                         return result;
270:                 }
271:                 default:
272:                         return defaultCase(theEObject);
273:                 }
274:         }
275:
276:         /**
277:          * Returns the result of interpreting the object as an instance of '<em>Element</em>'.
278:          * <!-- begin-user-doc -->
279:          * This implementation returns null;
280:          * returning a non-null result will terminate the switch.
281:          * <!-- end-user-doc -->
282:          *
283:          * @param object the target of the switch.
284:          * @return the result of interpreting the object as an instance of '<em>Element</em>'.
285:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
286:          * @generated
287:          */
288:         public T caseElement(VElement object) {
289:                 return null;
290:         }
291:
292:         /**
293:          * Returns the result of interpreting the object as an instance of '<em>Diagnostic</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:          *
299:          * @param object the target of the switch.
300:          * @return the result of interpreting the object as an instance of '<em>Diagnostic</em>'.
301:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
302:          * @generated
303:          */
304:         public T caseDiagnostic(VDiagnostic object) {
305:                 return null;
306:         }
307:
308:         /**
309:          * Returns the result of interpreting the object as an instance of ' <em>View</em>'. <!-- begin-user-doc --> This
310:          * implementation returns null;
311:          * returning a non-null result will terminate the switch. <!-- end-user-doc
312:          * -->
313:          *
314:          * @param object
315:          * the target of the switch.
316:          * @return the result of interpreting the object as an instance of ' <em>View</em>'.
317:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
318:          * @generated
319:          */
320:         public T caseView(VView object) {
321:                 return null;
322:         }
323:
324:         /**
325:          * Returns the result of interpreting the object as an instance of '<em>Contained Element</em>'.
326:          * <!-- begin-user-doc -->
327:          * This implementation returns null;
328:          * returning a non-null result will terminate the switch.
329:          * <!-- end-user-doc -->
330:          *
331:          * @param object the target of the switch.
332:          * @return the result of interpreting the object as an instance of '<em>Contained Element</em>'.
333:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
334:          * @generated
335:          */
336:         public T caseContainedElement(VContainedElement object) {
337:                 return null;
338:         }
339:
340:         /**
341:          * Returns the result of interpreting the object as an instance of '<em>Container</em>'.
342:          * <!-- begin-user-doc -->
343:          * This implementation returns null;
344:          * returning a non-null result will terminate the switch.
345:          * <!-- end-user-doc -->
346:          *
347:          * @param object the target of the switch.
348:          * @return the result of interpreting the object as an instance of '<em>Container</em>'.
349:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
350:          * @generated
351:          */
352:         public T caseContainer(VContainer object) {
353:                 return null;
354:         }
355:
356:         /**
357:          * Returns the result of interpreting the object as an instance of '<em>Contained Container</em>'.
358:          * <!-- begin-user-doc -->
359:          * This implementation returns null;
360:          * returning a non-null result will terminate the switch.
361:          *
362:          * @since 1.4
363:          * <!-- end-user-doc -->
364:          * @param object the target of the switch.
365:          * @return the result of interpreting the object as an instance of '<em>Contained Container</em>'.
366:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
367:          * @generated
368:          */
369:         public T caseContainedContainer(VContainedContainer object) {
370:                 return null;
371:         }
372:
373:         /**
374:          * Returns the result of interpreting the object as an instance of '<em>Control</em>'.
375:          * <!-- begin-user-doc --> This
376:          * implementation returns
377:          * null; returning a non-null result will terminate the switch. <!--
378:          * end-user-doc -->
379:          *
380:          * @param object the target of the switch.
381:          * @return the result of interpreting the object as an instance of '<em>Control</em>'.
382:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
383:          * @generated
384:          */
385:         public T caseControl(VControl object) {
386:                 return null;
387:         }
388:
389:         /**
390:          * Returns the result of interpreting the object as an instance of '<em>Model Loading Properties</em>'.
391:          * <!-- begin-user-doc -->
392:          * This implementation returns null;
393:          * returning a non-null result will terminate the switch.
394:          *
395:          * @since 1.7
396:          * <!-- end-user-doc -->
397:          * @param object the target of the switch.
398:          * @return the result of interpreting the object as an instance of '<em>Model Loading Properties</em>'.
399:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
400:          * @generated
401:          */
402:         public T caseViewModelLoadingProperties(VViewModelLoadingProperties object) {
403:                 return null;
404:         }
405:
406:         /**
407:          * Returns the result of interpreting the object as an instance of '<em>String To Object Map Entry</em>'.
408:          * <!-- begin-user-doc -->
409:          * This implementation returns null;
410:          * returning a non-null result will terminate the switch.
411:          *
412:          * @since 1.7
413:          * <!-- end-user-doc -->
414:          * @param object the target of the switch.
415:          * @return the result of interpreting the object as an instance of '<em>String To Object Map Entry</em>'.
416:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
417:          * @generated
418:          */
419:         public T caseStringToObjectMapEntry(Map.Entry<String, Object> object) {
420:                 return null;
421:         }
422:
423:         /**
424:          * Returns the result of interpreting the object as an instance of '<em>Model Properties</em>'.
425:          * <!-- begin-user-doc -->
426:          * This implementation returns null;
427:          * returning a non-null result will terminate the switch.
428:          *
429:          * @since 1.7
430:          * <!-- end-user-doc -->
431:          * @param object the target of the switch.
432:          * @return the result of interpreting the object as an instance of '<em>Model Properties</em>'.
433:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
434:          * @generated
435:          */
436:         public T caseViewModelProperties(VViewModelProperties object) {
437:                 return null;
438:         }
439:
440:         /**
441:          * Returns the result of interpreting the object as an instance of '<em>Date Time Display Attachment</em>'.
442:          * <!-- begin-user-doc -->
443:          * This implementation returns null;
444:          * returning a non-null result will terminate the switch.
445:          *
446:          * @since 1.8
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>Date Time Display Attachment</em>'.
450:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
451:          * @generated
452:          */
453:         public T caseDateTimeDisplayAttachment(VDateTimeDisplayAttachment object) {
454:                 return null;
455:         }
456:
457:         /**
458:          * Returns the result of interpreting the object as an instance of '<em>Has Tooltip</em>'.
459:          * <!-- begin-user-doc -->
460:          * This implementation returns null;
461:          * returning a non-null result will terminate the switch.
462:          *
463:          * @since 1.13
464:          * <!-- end-user-doc -->
465:          * @param object the target of the switch.
466:          * @return the result of interpreting the object as an instance of '<em>Has Tooltip</em>'.
467:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
468:          * @generated
469:          */
470:         public T caseHasTooltip(VHasTooltip object) {
471:                 return null;
472:         }
473:
474:         /**
475:          * Returns the result of interpreting the object as an instance of '<em>Domain Model Reference Segment</em>'.
476:          * <!-- begin-user-doc -->
477:          * This implementation returns null;
478:          * returning a non-null result will terminate the switch.
479:          *
480:          * @since 1.19
481:          * <!-- end-user-doc -->
482:          * @param object the target of the switch.
483:          * @return the result of interpreting the object as an instance of '<em>Domain Model Reference Segment</em>'.
484:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
485:          * @generated
486:          */
487:         public T caseDomainModelReferenceSegment(VDomainModelReferenceSegment object) {
488:                 return null;
489:         }
490:
491:         /**
492:          * Returns the result of interpreting the object as an instance of '<em>Feature Domain Model Reference
493:          * Segment</em>'.
494:          * <!-- begin-user-doc -->
495:          * This implementation returns null;
496:          * returning a non-null result will terminate the switch.
497:          *
498:          * @since 1.19
499:          * <!-- end-user-doc -->
500:          * @param object the target of the switch.
501:          * @return the result of interpreting the object as an instance of '<em>Feature Domain Model Reference
502:          * Segment</em>'.
503:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
504:          * @generated
505:          */
506:         public T caseFeatureDomainModelReferenceSegment(VFeatureDomainModelReferenceSegment object) {
507:                 return null;
508:         }
509:
510:         /**
511:          * Returns the result of interpreting the object as an instance of '<em>Domain Model Reference</em>'.
512:          * <!-- begin-user-doc -->
513:          * This implementation returns null;
514:          * returning a non-null result will terminate the switch.
515:          * <!-- end-user-doc -->
516:          *
517:          * @param object the target of the switch.
518:          * @return the result of interpreting the object as an instance of '<em>Domain Model Reference</em>'.
519:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
520:          * @generated
521:          */
522:         public T caseDomainModelReference(VDomainModelReference object) {
523:                 return null;
524:         }
525:
526:         /**
527:          * Returns the result of interpreting the object as an instance of '<em>Feature Path Domain Model Reference</em>'.
528:          * <!-- begin-user-doc -->
529:          * This implementation returns null;
530:          * returning a non-null result will terminate the switch.
531:          * <!-- end-user-doc -->
532:          *
533:          * @param object the target of the switch.
534:          * @return the result of interpreting the object as an instance of '<em>Feature Path Domain Model Reference</em>'.
535:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
536:          * @generated
537:          */
538:         public T caseFeaturePathDomainModelReference(VFeaturePathDomainModelReference object) {
539:                 return null;
540:         }
541:
542:         /**
543:          * Returns the result of interpreting the object as an instance of '<em>Attachment</em>'.
544:          * <!-- begin-user-doc -->
545:          * This implementation returns null;
546:          * returning a non-null result will terminate the switch.
547:          * <!-- end-user-doc -->
548:          *
549:          * @param object the target of the switch.
550:          * @return the result of interpreting the object as an instance of '<em>Attachment</em>'.
551:          * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
552:          * @generated
553:          */
554:         public T caseAttachment(VAttachment object) {
555:                 return null;
556:         }
557:
558:         /**
559:          * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
560:          * <!-- begin-user-doc -->
561:          * This implementation returns null;
562:          * returning a non-null result will terminate the switch, but this is the last case anyway.
563:          * <!-- end-user-doc -->
564:          *
565:          * @param object the target of the switch.
566:          * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
567:          * @see #doSwitch(org.eclipse.emf.ecore.EObject)
568:          * @generated
569:          */
570:         @Override
571:         public T defaultCase(EObject object) {
572:                 return null;
573:         }
574:
575: } // ViewSwitch