1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.core.composition.util; |
7 | |
8 | import org.eclipse.emf.common.notify.Adapter; |
9 | import org.eclipse.emf.common.notify.Notifier; |
10 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
11 | import org.eclipse.emf.ecore.EObject; |
12 | |
13 | import de.uka.ipd.sdq.identifier.Identifier; |
14 | import de.uka.ipd.sdq.pcm.core.composition.*; |
15 | import de.uka.ipd.sdq.pcm.core.composition.AssemblyConnector; |
16 | import de.uka.ipd.sdq.pcm.core.composition.AssemblyContext; |
17 | import de.uka.ipd.sdq.pcm.core.composition.AssemblyEventConnector; |
18 | import de.uka.ipd.sdq.pcm.core.composition.AssemblyInfrastructureConnector; |
19 | import de.uka.ipd.sdq.pcm.core.composition.ComposedStructure; |
20 | import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage; |
21 | import de.uka.ipd.sdq.pcm.core.composition.Connector; |
22 | import de.uka.ipd.sdq.pcm.core.composition.DelegationConnector; |
23 | import de.uka.ipd.sdq.pcm.core.composition.EventChannel; |
24 | import de.uka.ipd.sdq.pcm.core.composition.EventChannelSinkConnector; |
25 | import de.uka.ipd.sdq.pcm.core.composition.EventChannelSourceConnector; |
26 | import de.uka.ipd.sdq.pcm.core.composition.ProvidedDelegationConnector; |
27 | import de.uka.ipd.sdq.pcm.core.composition.ProvidedInfrastructureDelegationConnector; |
28 | import de.uka.ipd.sdq.pcm.core.composition.RequiredDelegationConnector; |
29 | import de.uka.ipd.sdq.pcm.core.composition.RequiredInfrastructureDelegationConnector; |
30 | import de.uka.ipd.sdq.pcm.core.composition.RequiredResourceDelegationConnector; |
31 | import de.uka.ipd.sdq.pcm.core.composition.ResourceRequiredDelegationConnector; |
32 | import de.uka.ipd.sdq.pcm.core.composition.SinkDelegationConnector; |
33 | import de.uka.ipd.sdq.pcm.core.composition.SourceDelegationConnector; |
34 | import de.uka.ipd.sdq.pcm.core.entity.Entity; |
35 | import de.uka.ipd.sdq.pcm.core.entity.NamedElement; |
36 | |
37 | /** |
38 | * <!-- begin-user-doc --> |
39 | * The <b>Adapter Factory</b> for the model. |
40 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
41 | * <!-- end-user-doc --> |
42 | * @see de.uka.ipd.sdq.pcm.core.composition.CompositionPackage |
43 | * @generated |
44 | */ |
45 | public class CompositionAdapterFactory extends AdapterFactoryImpl { |
46 | /** |
47 | * <!-- begin-user-doc --> |
48 | * <!-- end-user-doc --> |
49 | * @generated |
50 | */ |
51 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
52 | |
53 | /** |
54 | * The cached model package. |
55 | * <!-- begin-user-doc --> |
56 | * <!-- end-user-doc --> |
57 | * @generated |
58 | */ |
59 | protected static CompositionPackage modelPackage; |
60 | |
61 | /** |
62 | * Creates an instance of the adapter factory. |
63 | * <!-- begin-user-doc --> |
64 | * <!-- end-user-doc --> |
65 | * @generated |
66 | */ |
67 | public CompositionAdapterFactory() { |
68 | if (modelPackage == null) { |
69 | modelPackage = CompositionPackage.eINSTANCE; |
70 | } |
71 | } |
72 | |
73 | /** |
74 | * Returns whether this factory is applicable for the type of the object. |
75 | * <!-- begin-user-doc --> |
76 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
77 | * <!-- end-user-doc --> |
78 | * @return whether this factory is applicable for the type of the object. |
79 | * @generated |
80 | */ |
81 | @Override |
82 | public boolean isFactoryForType(Object object) { |
83 | if (object == modelPackage) { |
84 | return true; |
85 | } |
86 | if (object instanceof EObject) { |
87 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
88 | } |
89 | return false; |
90 | } |
91 | |
92 | /** |
93 | * The switch that delegates to the <code>createXXX</code> methods. |
94 | * <!-- begin-user-doc --> |
95 | * <!-- end-user-doc --> |
96 | * @generated |
97 | */ |
98 | protected CompositionSwitch<Adapter> modelSwitch = |
99 | new CompositionSwitch<Adapter>() { |
100 | @Override |
101 | public Adapter caseDelegationConnector(DelegationConnector object) { |
102 | return createDelegationConnectorAdapter(); |
103 | } |
104 | @Override |
105 | public Adapter caseConnector(Connector object) { |
106 | return createConnectorAdapter(); |
107 | } |
108 | @Override |
109 | public Adapter caseComposedStructure(ComposedStructure object) { |
110 | return createComposedStructureAdapter(); |
111 | } |
112 | @Override |
113 | public Adapter caseResourceRequiredDelegationConnector(ResourceRequiredDelegationConnector object) { |
114 | return createResourceRequiredDelegationConnectorAdapter(); |
115 | } |
116 | @Override |
117 | public Adapter caseEventChannel(EventChannel object) { |
118 | return createEventChannelAdapter(); |
119 | } |
120 | @Override |
121 | public Adapter caseEventChannelSourceConnector(EventChannelSourceConnector object) { |
122 | return createEventChannelSourceConnectorAdapter(); |
123 | } |
124 | @Override |
125 | public Adapter caseEventChannelSinkConnector(EventChannelSinkConnector object) { |
126 | return createEventChannelSinkConnectorAdapter(); |
127 | } |
128 | @Override |
129 | public Adapter caseProvidedDelegationConnector(ProvidedDelegationConnector object) { |
130 | return createProvidedDelegationConnectorAdapter(); |
131 | } |
132 | @Override |
133 | public Adapter caseRequiredDelegationConnector(RequiredDelegationConnector object) { |
134 | return createRequiredDelegationConnectorAdapter(); |
135 | } |
136 | @Override |
137 | public Adapter caseAssemblyConnector(AssemblyConnector object) { |
138 | return createAssemblyConnectorAdapter(); |
139 | } |
140 | @Override |
141 | public Adapter caseAssemblyEventConnector(AssemblyEventConnector object) { |
142 | return createAssemblyEventConnectorAdapter(); |
143 | } |
144 | @Override |
145 | public Adapter caseSourceDelegationConnector(SourceDelegationConnector object) { |
146 | return createSourceDelegationConnectorAdapter(); |
147 | } |
148 | @Override |
149 | public Adapter caseSinkDelegationConnector(SinkDelegationConnector object) { |
150 | return createSinkDelegationConnectorAdapter(); |
151 | } |
152 | @Override |
153 | public Adapter caseAssemblyInfrastructureConnector(AssemblyInfrastructureConnector object) { |
154 | return createAssemblyInfrastructureConnectorAdapter(); |
155 | } |
156 | @Override |
157 | public Adapter caseProvidedInfrastructureDelegationConnector(ProvidedInfrastructureDelegationConnector object) { |
158 | return createProvidedInfrastructureDelegationConnectorAdapter(); |
159 | } |
160 | @Override |
161 | public Adapter caseRequiredInfrastructureDelegationConnector(RequiredInfrastructureDelegationConnector object) { |
162 | return createRequiredInfrastructureDelegationConnectorAdapter(); |
163 | } |
164 | @Override |
165 | public Adapter caseRequiredResourceDelegationConnector(RequiredResourceDelegationConnector object) { |
166 | return createRequiredResourceDelegationConnectorAdapter(); |
167 | } |
168 | @Override |
169 | public Adapter caseAssemblyContext(AssemblyContext object) { |
170 | return createAssemblyContextAdapter(); |
171 | } |
172 | @Override |
173 | public Adapter caseIdentifier(Identifier object) { |
174 | return createIdentifierAdapter(); |
175 | } |
176 | @Override |
177 | public Adapter caseNamedElement(NamedElement object) { |
178 | return createNamedElementAdapter(); |
179 | } |
180 | @Override |
181 | public Adapter caseEntity(Entity object) { |
182 | return createEntityAdapter(); |
183 | } |
184 | @Override |
185 | public Adapter defaultCase(EObject object) { |
186 | return createEObjectAdapter(); |
187 | } |
188 | }; |
189 | |
190 | /** |
191 | * Creates an adapter for the <code>target</code>. |
192 | * <!-- begin-user-doc --> |
193 | * <!-- end-user-doc --> |
194 | * @param target the object to adapt. |
195 | * @return the adapter for the <code>target</code>. |
196 | * @generated |
197 | */ |
198 | @Override |
199 | public Adapter createAdapter(Notifier target) { |
200 | return modelSwitch.doSwitch((EObject)target); |
201 | } |
202 | |
203 | |
204 | /** |
205 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.ProvidedDelegationConnector <em>Provided Delegation Connector</em>}'. |
206 | * <!-- begin-user-doc --> |
207 | * This default implementation returns null so that we can easily ignore cases; |
208 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
209 | * <!-- end-user-doc --> |
210 | * @return the new adapter. |
211 | * @see de.uka.ipd.sdq.pcm.core.composition.ProvidedDelegationConnector |
212 | * @generated |
213 | */ |
214 | public Adapter createProvidedDelegationConnectorAdapter() { |
215 | return null; |
216 | } |
217 | |
218 | /** |
219 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.AssemblyContext <em>Assembly Context</em>}'. |
220 | * <!-- begin-user-doc --> |
221 | * This default implementation returns null so that we can easily ignore cases; |
222 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
223 | * <!-- end-user-doc --> |
224 | * @return the new adapter. |
225 | * @see de.uka.ipd.sdq.pcm.core.composition.AssemblyContext |
226 | * @generated |
227 | */ |
228 | public Adapter createAssemblyContextAdapter() { |
229 | return null; |
230 | } |
231 | |
232 | /** |
233 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.RequiredDelegationConnector <em>Required Delegation Connector</em>}'. |
234 | * <!-- begin-user-doc --> |
235 | * This default implementation returns null so that we can easily ignore cases; |
236 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
237 | * <!-- end-user-doc --> |
238 | * @return the new adapter. |
239 | * @see de.uka.ipd.sdq.pcm.core.composition.RequiredDelegationConnector |
240 | * @generated |
241 | */ |
242 | public Adapter createRequiredDelegationConnectorAdapter() { |
243 | return null; |
244 | } |
245 | |
246 | /** |
247 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.AssemblyConnector <em>Assembly Connector</em>}'. |
248 | * <!-- begin-user-doc --> |
249 | * This default implementation returns null so that we can easily ignore cases; |
250 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
251 | * <!-- end-user-doc --> |
252 | * @return the new adapter. |
253 | * @see de.uka.ipd.sdq.pcm.core.composition.AssemblyConnector |
254 | * @generated |
255 | */ |
256 | public Adapter createAssemblyConnectorAdapter() { |
257 | return null; |
258 | } |
259 | |
260 | /** |
261 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.ResourceRequiredDelegationConnector <em>Resource Required Delegation Connector</em>}'. |
262 | * <!-- begin-user-doc --> |
263 | * This default implementation returns null so that we can easily ignore cases; |
264 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
265 | * <!-- end-user-doc --> |
266 | * @return the new adapter. |
267 | * @see de.uka.ipd.sdq.pcm.core.composition.ResourceRequiredDelegationConnector |
268 | * @generated |
269 | */ |
270 | public Adapter createResourceRequiredDelegationConnectorAdapter() { |
271 | return null; |
272 | } |
273 | |
274 | /** |
275 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.EventChannel <em>Event Channel</em>}'. |
276 | * <!-- begin-user-doc --> |
277 | * This default implementation returns null so that we can easily ignore cases; |
278 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
279 | * <!-- end-user-doc --> |
280 | * @return the new adapter. |
281 | * @see de.uka.ipd.sdq.pcm.core.composition.EventChannel |
282 | * @generated |
283 | */ |
284 | public Adapter createEventChannelAdapter() { |
285 | return null; |
286 | } |
287 | |
288 | /** |
289 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.AssemblyEventConnector <em>Assembly Event Connector</em>}'. |
290 | * <!-- begin-user-doc --> |
291 | * This default implementation returns null so that we can easily ignore cases; |
292 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
293 | * <!-- end-user-doc --> |
294 | * @return the new adapter. |
295 | * @see de.uka.ipd.sdq.pcm.core.composition.AssemblyEventConnector |
296 | * @generated |
297 | */ |
298 | public Adapter createAssemblyEventConnectorAdapter() { |
299 | return null; |
300 | } |
301 | |
302 | /** |
303 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.SourceDelegationConnector <em>Source Delegation Connector</em>}'. |
304 | * <!-- begin-user-doc --> |
305 | * This default implementation returns null so that we can easily ignore cases; |
306 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
307 | * <!-- end-user-doc --> |
308 | * @return the new adapter. |
309 | * @see de.uka.ipd.sdq.pcm.core.composition.SourceDelegationConnector |
310 | * @generated |
311 | */ |
312 | public Adapter createSourceDelegationConnectorAdapter() { |
313 | return null; |
314 | } |
315 | |
316 | /** |
317 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.SinkDelegationConnector <em>Sink Delegation Connector</em>}'. |
318 | * <!-- begin-user-doc --> |
319 | * This default implementation returns null so that we can easily ignore cases; |
320 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
321 | * <!-- end-user-doc --> |
322 | * @return the new adapter. |
323 | * @see de.uka.ipd.sdq.pcm.core.composition.SinkDelegationConnector |
324 | * @generated |
325 | */ |
326 | public Adapter createSinkDelegationConnectorAdapter() { |
327 | return null; |
328 | } |
329 | |
330 | /** |
331 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.AssemblyInfrastructureConnector <em>Assembly Infrastructure Connector</em>}'. |
332 | * <!-- begin-user-doc --> |
333 | * This default implementation returns null so that we can easily ignore cases; |
334 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
335 | * <!-- end-user-doc --> |
336 | * @return the new adapter. |
337 | * @see de.uka.ipd.sdq.pcm.core.composition.AssemblyInfrastructureConnector |
338 | * @generated |
339 | */ |
340 | public Adapter createAssemblyInfrastructureConnectorAdapter() { |
341 | return null; |
342 | } |
343 | |
344 | /** |
345 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.RequiredInfrastructureDelegationConnector <em>Required Infrastructure Delegation Connector</em>}'. |
346 | * <!-- begin-user-doc --> |
347 | * This default implementation returns null so that we can easily ignore cases; |
348 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
349 | * <!-- end-user-doc --> |
350 | * @return the new adapter. |
351 | * @see de.uka.ipd.sdq.pcm.core.composition.RequiredInfrastructureDelegationConnector |
352 | * @generated |
353 | */ |
354 | public Adapter createRequiredInfrastructureDelegationConnectorAdapter() { |
355 | return null; |
356 | } |
357 | |
358 | /** |
359 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.ProvidedInfrastructureDelegationConnector <em>Provided Infrastructure Delegation Connector</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 | * @return the new adapter. |
365 | * @see de.uka.ipd.sdq.pcm.core.composition.ProvidedInfrastructureDelegationConnector |
366 | * @generated |
367 | */ |
368 | public Adapter createProvidedInfrastructureDelegationConnectorAdapter() { |
369 | return null; |
370 | } |
371 | |
372 | /** |
373 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.RequiredResourceDelegationConnector <em>Required Resource Delegation Connector</em>}'. |
374 | * <!-- begin-user-doc --> |
375 | * This default implementation returns null so that we can easily ignore cases; |
376 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
377 | * <!-- end-user-doc --> |
378 | * @return the new adapter. |
379 | * @see de.uka.ipd.sdq.pcm.core.composition.RequiredResourceDelegationConnector |
380 | * @generated |
381 | */ |
382 | public Adapter createRequiredResourceDelegationConnectorAdapter() { |
383 | return null; |
384 | } |
385 | |
386 | /** |
387 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.EventChannelSinkConnector <em>Event Channel Sink Connector</em>}'. |
388 | * <!-- begin-user-doc --> |
389 | * This default implementation returns null so that we can easily ignore cases; |
390 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
391 | * <!-- end-user-doc --> |
392 | * @return the new adapter. |
393 | * @see de.uka.ipd.sdq.pcm.core.composition.EventChannelSinkConnector |
394 | * @generated |
395 | */ |
396 | public Adapter createEventChannelSinkConnectorAdapter() { |
397 | return null; |
398 | } |
399 | |
400 | /** |
401 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.EventChannelSourceConnector <em>Event Channel Source Connector</em>}'. |
402 | * <!-- begin-user-doc --> |
403 | * This default implementation returns null so that we can easily ignore cases; |
404 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
405 | * <!-- end-user-doc --> |
406 | * @return the new adapter. |
407 | * @see de.uka.ipd.sdq.pcm.core.composition.EventChannelSourceConnector |
408 | * @generated |
409 | */ |
410 | public Adapter createEventChannelSourceConnectorAdapter() { |
411 | return null; |
412 | } |
413 | |
414 | /** |
415 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.ComposedStructure <em>Composed Structure</em>}'. |
416 | * <!-- begin-user-doc --> |
417 | * This default implementation returns null so that we can easily ignore cases; |
418 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
419 | * <!-- end-user-doc --> |
420 | * @return the new adapter. |
421 | * @see de.uka.ipd.sdq.pcm.core.composition.ComposedStructure |
422 | * @generated |
423 | */ |
424 | public Adapter createComposedStructureAdapter() { |
425 | return null; |
426 | } |
427 | |
428 | /** |
429 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'. |
430 | * <!-- begin-user-doc --> |
431 | * This default implementation returns null so that we can easily ignore cases; |
432 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
433 | * <!-- end-user-doc --> |
434 | * @return the new adapter. |
435 | * @see de.uka.ipd.sdq.identifier.Identifier |
436 | * @generated |
437 | */ |
438 | public Adapter createIdentifierAdapter() { |
439 | return null; |
440 | } |
441 | |
442 | /** |
443 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</em>}'. |
444 | * <!-- begin-user-doc --> |
445 | * This default implementation returns null so that we can easily ignore cases; |
446 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
447 | * <!-- end-user-doc --> |
448 | * @return the new adapter. |
449 | * @see de.uka.ipd.sdq.pcm.core.entity.NamedElement |
450 | * @generated |
451 | */ |
452 | public Adapter createNamedElementAdapter() { |
453 | return null; |
454 | } |
455 | |
456 | /** |
457 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.Entity <em>Entity</em>}'. |
458 | * <!-- begin-user-doc --> |
459 | * This default implementation returns null so that we can easily ignore cases; |
460 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
461 | * <!-- end-user-doc --> |
462 | * @return the new adapter. |
463 | * @see de.uka.ipd.sdq.pcm.core.entity.Entity |
464 | * @generated |
465 | */ |
466 | public Adapter createEntityAdapter() { |
467 | return null; |
468 | } |
469 | |
470 | /** |
471 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.Connector <em>Connector</em>}'. |
472 | * <!-- begin-user-doc --> |
473 | * This default implementation returns null so that we can easily ignore cases; |
474 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
475 | * <!-- end-user-doc --> |
476 | * @return the new adapter. |
477 | * @see de.uka.ipd.sdq.pcm.core.composition.Connector |
478 | * @generated |
479 | */ |
480 | public Adapter createConnectorAdapter() { |
481 | return null; |
482 | } |
483 | |
484 | /** |
485 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.DelegationConnector <em>Delegation Connector</em>}'. |
486 | * <!-- begin-user-doc --> |
487 | * This default implementation returns null so that we can easily ignore cases; |
488 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
489 | * <!-- end-user-doc --> |
490 | * @return the new adapter. |
491 | * @see de.uka.ipd.sdq.pcm.core.composition.DelegationConnector |
492 | * @generated |
493 | */ |
494 | public Adapter createDelegationConnectorAdapter() { |
495 | return null; |
496 | } |
497 | |
498 | /** |
499 | * Creates a new adapter for the default case. |
500 | * <!-- begin-user-doc --> |
501 | * This default implementation returns null. |
502 | * <!-- end-user-doc --> |
503 | * @return the new adapter. |
504 | * @generated |
505 | */ |
506 | public Adapter createEObjectAdapter() { |
507 | return null; |
508 | } |
509 | |
510 | } //CompositionAdapterFactory |