Skip to content

Package: TableAdapterFactory$1

TableAdapterFactory$1

nameinstructionbranchcomplexitylinemethod
caseContainedElement(VContainedElement)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseControl(VControl)
M: 4 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: 4 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: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseEnablementConfiguration(VEnablementConfiguration)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
caseFeaturePathDomainModelReference(VFeaturePathDomainModelReference)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseReadOnlyColumnConfiguration(VReadOnlyColumnConfiguration)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
caseSingleColumnConfiguration(VSingleColumnConfiguration)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseTableColumnConfiguration(VTableColumnConfiguration)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
caseTableControl(VTableControl)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
caseTableDomainModelReference(VTableDomainModelReference)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
caseWidthConfiguration(VWidthConfiguration)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
defaultCase(EObject)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
{...}
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /**
2: * Copyright (c) 2011-2013 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.table.model.util;
15:
16: import org.eclipse.emf.common.notify.Adapter;
17: import org.eclipse.emf.common.notify.Notifier;
18: import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
19: import org.eclipse.emf.ecore.EObject;
20: import org.eclipse.emf.ecp.view.spi.model.VContainedElement;
21: import org.eclipse.emf.ecp.view.spi.model.VControl;
22: import org.eclipse.emf.ecp.view.spi.model.VDomainModelReference;
23: import org.eclipse.emf.ecp.view.spi.model.VElement;
24: import org.eclipse.emf.ecp.view.spi.model.VFeaturePathDomainModelReference;
25: import org.eclipse.emf.ecp.view.spi.table.model.VEnablementConfiguration;
26: import org.eclipse.emf.ecp.view.spi.table.model.VReadOnlyColumnConfiguration;
27: import org.eclipse.emf.ecp.view.spi.table.model.VSingleColumnConfiguration;
28: import org.eclipse.emf.ecp.view.spi.table.model.VTableColumnConfiguration;
29: import org.eclipse.emf.ecp.view.spi.table.model.VTableControl;
30: import org.eclipse.emf.ecp.view.spi.table.model.VTableDomainModelReference;
31: import org.eclipse.emf.ecp.view.spi.table.model.VTablePackage;
32: import org.eclipse.emf.ecp.view.spi.table.model.VWidthConfiguration;
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: *
40: * @see org.eclipse.emf.ecp.view.spi.table.model.VTablePackage
41: * @generated
42: */
43: public class TableAdapterFactory extends AdapterFactoryImpl {
44:         /**
45:          * The cached model package.
46:          * <!-- begin-user-doc -->
47:          * <!-- end-user-doc -->
48:          *
49:          * @generated
50:          */
51:         protected static VTablePackage modelPackage;
52:
53:         /**
54:          * Creates an instance of the adapter factory.
55:          * <!-- begin-user-doc -->
56:          * <!-- end-user-doc -->
57:          *
58:          * @generated
59:          */
60:         public TableAdapterFactory() {
61:                 if (modelPackage == null) {
62:                         modelPackage = VTablePackage.eINSTANCE;
63:                 }
64:         }
65:
66:         /**
67:          * Returns whether this factory is applicable for the type of the object.
68:          * <!-- begin-user-doc -->
69:          * This implementation returns <code>true</code> if the object is either the model's package or is an instance
70:          * object of the model.
71:          * <!-- end-user-doc -->
72:          *
73:          * @return whether this factory is applicable for the type of the object.
74:          * @generated
75:          */
76:         @Override
77:         public boolean isFactoryForType(Object object) {
78:                 if (object == modelPackage) {
79:                         return true;
80:                 }
81:                 if (object instanceof EObject) {
82:                         return ((EObject) object).eClass().getEPackage() == modelPackage;
83:                 }
84:                 return false;
85:         }
86:
87:         /**
88:          * The switch that delegates to the <code>createXXX</code> methods.
89:          * <!-- begin-user-doc -->
90:          * <!-- end-user-doc -->
91:          *
92:          * @generated
93:          */
94:         protected TableSwitch<Adapter> modelSwitch = new TableSwitch<Adapter>() {
95:                 @Override
96:                 public Adapter caseTableControl(VTableControl object) {
97:                         return createTableControlAdapter();
98:                 }
99:
100:                 @Override
101:                 public Adapter caseTableColumnConfiguration(VTableColumnConfiguration object) {
102:                         return createTableColumnConfigurationAdapter();
103:                 }
104:
105:                 @Override
106:                 public Adapter caseTableDomainModelReference(VTableDomainModelReference object) {
107:                         return createTableDomainModelReferenceAdapter();
108:                 }
109:
110:                 @Override
111:                 public Adapter caseReadOnlyColumnConfiguration(VReadOnlyColumnConfiguration object) {
112:                         return createReadOnlyColumnConfigurationAdapter();
113:                 }
114:
115:                 @Override
116:                 public Adapter caseWidthConfiguration(VWidthConfiguration object) {
117:                         return createWidthConfigurationAdapter();
118:                 }
119:
120:                 @Override
121:                 public Adapter caseEnablementConfiguration(VEnablementConfiguration object) {
122:                         return createEnablementConfigurationAdapter();
123:                 }
124:
125:                 @Override
126:                 public Adapter caseSingleColumnConfiguration(VSingleColumnConfiguration object) {
127:                         return createSingleColumnConfigurationAdapter();
128:                 }
129:
130:                 @Override
131:                 public Adapter caseElement(VElement object) {
132:                         return createElementAdapter();
133:                 }
134:
135:                 @Override
136:                 public Adapter caseContainedElement(VContainedElement object) {
137:                         return createContainedElementAdapter();
138:                 }
139:
140:                 @Override
141:                 public Adapter caseControl(VControl object) {
142:                         return createControlAdapter();
143:                 }
144:
145:                 @Override
146:                 public Adapter caseDomainModelReference(VDomainModelReference object) {
147:                         return createDomainModelReferenceAdapter();
148:                 }
149:
150:                 @Override
151:                 public Adapter caseFeaturePathDomainModelReference(VFeaturePathDomainModelReference object) {
152:                         return createFeaturePathDomainModelReferenceAdapter();
153:                 }
154:
155:                 @Override
156:                 public Adapter defaultCase(EObject object) {
157:                         return createEObjectAdapter();
158:                 }
159:         };
160:
161:         /**
162:          * Creates an adapter for the <code>target</code>.
163:          * <!-- begin-user-doc -->
164:          * <!-- end-user-doc -->
165:          *
166:          * @param target the object to adapt.
167:          * @return the adapter for the <code>target</code>.
168:          * @generated
169:          */
170:         @Override
171:         public Adapter createAdapter(Notifier target) {
172:                 return modelSwitch.doSwitch((EObject) target);
173:         }
174:
175:         /**
176:          * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.spi.table.model.VTableControl
177:          * <em>Control</em>}'.
178:          * <!-- begin-user-doc -->
179:          * This default implementation returns null so that we can easily ignore cases;
180:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
181:          * <!-- end-user-doc -->
182:          *
183:          * @return the new adapter.
184:          * @see org.eclipse.emf.ecp.view.spi.table.model.VTableControl
185:          * @generated
186:          */
187:         public Adapter createTableControlAdapter() {
188:                 return null;
189:         }
190:
191:         /**
192:          * Creates a new adapter for an object of class
193:          * '{@link org.eclipse.emf.ecp.view.spi.table.model.VTableColumnConfiguration <em>Column Configuration</em>}'.
194:          * <!-- begin-user-doc -->
195:          * This default implementation returns null so that we can easily ignore cases;
196:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
197:          * <!-- end-user-doc -->
198:          *
199:          * @return the new adapter.
200:          * @see org.eclipse.emf.ecp.view.spi.table.model.VTableColumnConfiguration
201:          * @generated
202:          */
203:         public Adapter createTableColumnConfigurationAdapter() {
204:                 return null;
205:         }
206:
207:         /**
208:          * Creates a new adapter for an object of class
209:          * '{@link org.eclipse.emf.ecp.view.spi.table.model.VTableDomainModelReference <em>Domain Model Reference</em>}'.
210:          * <!-- begin-user-doc -->
211:          * This default implementation returns null so that we can easily ignore cases;
212:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
213:          * <!-- end-user-doc -->
214:          *
215:          * @return the new adapter.
216:          * @see org.eclipse.emf.ecp.view.spi.table.model.VTableDomainModelReference
217:          * @generated
218:          */
219:         public Adapter createTableDomainModelReferenceAdapter() {
220:                 return null;
221:         }
222:
223:         /**
224:          * Creates a new adapter for an object of class
225:          * '{@link org.eclipse.emf.ecp.view.spi.table.model.VReadOnlyColumnConfiguration <em>Read Only Column
226:          * Configuration</em>}'.
227:          * <!-- begin-user-doc -->
228:          * This default implementation returns null so that we can easily ignore cases;
229:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
230:          * <!-- end-user-doc -->
231:          *
232:          * @return the new adapter.
233:          * @see org.eclipse.emf.ecp.view.spi.table.model.VReadOnlyColumnConfiguration
234:          * @generated
235:          */
236:         public Adapter createReadOnlyColumnConfigurationAdapter() {
237:                 return null;
238:         }
239:
240:         /**
241:          * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.spi.table.model.VWidthConfiguration
242:          * <em>Width Configuration</em>}'.
243:          * <!-- begin-user-doc -->
244:          * This default implementation returns null so that we can easily ignore cases;
245:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
246:          *
247:          * @since 1.9
248:          * <!-- end-user-doc -->
249:          * @return the new adapter.
250:          * @see org.eclipse.emf.ecp.view.spi.table.model.VWidthConfiguration
251:          * @generated
252:          */
253:         public Adapter createWidthConfigurationAdapter() {
254:                 return null;
255:         }
256:
257:         /**
258:          * Creates a new adapter for an object of class
259:          * '{@link org.eclipse.emf.ecp.view.spi.table.model.VEnablementConfiguration <em>Enablement Configuration</em>}'.
260:          * <!-- begin-user-doc -->
261:          * This default implementation returns null so that we can easily ignore cases;
262:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
263:          *
264:          * @since 1.13
265:          * <!-- end-user-doc -->
266:          * @return the new adapter.
267:          * @see org.eclipse.emf.ecp.view.spi.table.model.VEnablementConfiguration
268:          * @generated
269:          */
270:         public Adapter createEnablementConfigurationAdapter() {
271:                 return null;
272:         }
273:
274:         /**
275:          * Creates a new adapter for an object of class
276:          * '{@link org.eclipse.emf.ecp.view.spi.table.model.VSingleColumnConfiguration <em>Single Column
277:          * Configuration</em>}'.
278:          * <!-- begin-user-doc -->
279:          * This default implementation returns null so that we can easily ignore cases;
280:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
281:          *
282:          * @since 1.13
283:          * <!-- end-user-doc -->
284:          * @return the new adapter.
285:          * @see org.eclipse.emf.ecp.view.spi.table.model.VSingleColumnConfiguration
286:          * @generated
287:          */
288:         public Adapter createSingleColumnConfigurationAdapter() {
289:                 return null;
290:         }
291:
292:         /**
293:          * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.spi.model.VElement
294:          * <em>Element</em>}'.
295:          * <!-- begin-user-doc -->
296:          * This default implementation returns null so that we can easily ignore cases;
297:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
298:          * <!-- end-user-doc -->
299:          *
300:          * @return the new adapter.
301:          * @see org.eclipse.emf.ecp.view.spi.model.VElement
302:          * @generated
303:          */
304:         public Adapter createElementAdapter() {
305:                 return null;
306:         }
307:
308:         /**
309:          * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.spi.model.VContainedElement
310:          * <em>Contained Element</em>}'.
311:          * <!-- begin-user-doc -->
312:          * This default implementation returns null so that we can easily ignore cases;
313:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
314:          * <!-- end-user-doc -->
315:          *
316:          * @return the new adapter.
317:          * @see org.eclipse.emf.ecp.view.spi.model.VContainedElement
318:          * @generated
319:          */
320:         public Adapter createContainedElementAdapter() {
321:                 return null;
322:         }
323:
324:         /**
325:          * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.spi.model.VControl
326:          * <em>Control</em>}'.
327:          * <!-- begin-user-doc -->
328:          * This default implementation returns null so that we can easily ignore cases;
329:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
330:          * <!-- end-user-doc -->
331:          *
332:          * @return the new adapter.
333:          * @see org.eclipse.emf.ecp.view.spi.model.VControl
334:          * @generated
335:          */
336:         public Adapter createControlAdapter() {
337:                 return null;
338:         }
339:
340:         /**
341:          * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecp.view.spi.model.VDomainModelReference
342:          * <em>Domain Model Reference</em>}'.
343:          * <!-- begin-user-doc -->
344:          * This default implementation returns null so that we can easily ignore cases;
345:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
346:          * <!-- end-user-doc -->
347:          *
348:          * @return the new adapter.
349:          * @see org.eclipse.emf.ecp.view.spi.model.VDomainModelReference
350:          * @generated
351:          */
352:         public Adapter createDomainModelReferenceAdapter() {
353:                 return null;
354:         }
355:
356:         /**
357:          * Creates a new adapter for an object of class
358:          * '{@link org.eclipse.emf.ecp.view.spi.model.VFeaturePathDomainModelReference <em>Feature Path Domain Model
359:          * Reference</em>}'.
360:          * <!-- begin-user-doc -->
361:          * This default implementation returns null so that we can easily ignore cases;
362:          * it's useful to ignore a case when inheritance will catch all the cases anyway.
363:          * <!-- end-user-doc -->
364:          *
365:          * @return the new adapter.
366:          * @see org.eclipse.emf.ecp.view.spi.model.VFeaturePathDomainModelReference
367:          * @generated
368:          */
369:         public Adapter createFeaturePathDomainModelReferenceAdapter() {
370:                 return null;
371:         }
372:
373:         /**
374:          * Creates a new adapter for the default case.
375:          * <!-- begin-user-doc -->
376:          * This default implementation returns null.
377:          * <!-- end-user-doc -->
378:          *
379:          * @return the new adapter.
380:          * @generated
381:          */
382:         public Adapter createEObjectAdapter() {
383:                 return null;
384:         }
385:
386: } // TableAdapterFactory