| 1 | /** |
| 2 | * Copyright SDQ, IPD, U Karlsruhe, 2007 |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.completions.util; |
| 7 | |
| 8 | import de.uka.ipd.sdq.completions.*; |
| 9 | import org.eclipse.emf.common.notify.Adapter; |
| 10 | import org.eclipse.emf.common.notify.Notifier; |
| 11 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
| 12 | import org.eclipse.emf.ecore.EObject; |
| 13 | |
| 14 | import de.uka.ipd.sdq.completions.Completion; |
| 15 | import de.uka.ipd.sdq.completions.CompletionRepository; |
| 16 | import de.uka.ipd.sdq.completions.CompletionsPackage; |
| 17 | import de.uka.ipd.sdq.completions.DelegatingExternalCallAction; |
| 18 | import de.uka.ipd.sdq.identifier.Identifier; |
| 19 | import de.uka.ipd.sdq.pcm.core.composition.ComposedStructure; |
| 20 | import de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity; |
| 21 | import de.uka.ipd.sdq.pcm.core.entity.Entity; |
| 22 | import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity; |
| 23 | import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity; |
| 24 | import de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity; |
| 25 | import de.uka.ipd.sdq.pcm.core.entity.NamedElement; |
| 26 | import de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity; |
| 27 | import de.uka.ipd.sdq.pcm.repository.ImplementationComponentType; |
| 28 | import de.uka.ipd.sdq.pcm.repository.RepositoryComponent; |
| 29 | import de.uka.ipd.sdq.pcm.seff.AbstractAction; |
| 30 | import de.uka.ipd.sdq.pcm.seff.CallAction; |
| 31 | import de.uka.ipd.sdq.pcm.seff.CallReturnAction; |
| 32 | import de.uka.ipd.sdq.pcm.seff.ExternalCallAction; |
| 33 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.FailureHandlingEntity; |
| 34 | |
| 35 | /** |
| 36 | * <!-- begin-user-doc --> |
| 37 | * The <b>Adapter Factory</b> for the model. |
| 38 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
| 39 | * <!-- end-user-doc --> |
| 40 | * @see de.uka.ipd.sdq.completions.CompletionsPackage |
| 41 | * @generated |
| 42 | */ |
| 43 | public class CompletionsAdapterFactory extends AdapterFactoryImpl { |
| 44 | /** |
| 45 | * The cached model package. |
| 46 | * <!-- begin-user-doc --> |
| 47 | * <!-- end-user-doc --> |
| 48 | * @generated |
| 49 | */ |
| 50 | protected static CompletionsPackage modelPackage; |
| 51 | |
| 52 | /** |
| 53 | * Creates an instance of the adapter factory. |
| 54 | * <!-- begin-user-doc --> |
| 55 | * <!-- end-user-doc --> |
| 56 | * @generated |
| 57 | */ |
| 58 | public CompletionsAdapterFactory() { |
| 59 | if (modelPackage == null) { |
| 60 | modelPackage = CompletionsPackage.eINSTANCE; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Returns whether this factory is applicable for the type of the object. |
| 66 | * <!-- begin-user-doc --> |
| 67 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
| 68 | * <!-- end-user-doc --> |
| 69 | * @return whether this factory is applicable for the type of the object. |
| 70 | * @generated |
| 71 | */ |
| 72 | @Override |
| 73 | public boolean isFactoryForType(Object object) { |
| 74 | if (object == modelPackage) { |
| 75 | return true; |
| 76 | } |
| 77 | if (object instanceof EObject) { |
| 78 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
| 79 | } |
| 80 | return false; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * The switch that delegates to the <code>createXXX</code> methods. |
| 85 | * <!-- begin-user-doc --> |
| 86 | * <!-- end-user-doc --> |
| 87 | * @generated |
| 88 | */ |
| 89 | protected CompletionsSwitch<Adapter> modelSwitch = |
| 90 | new CompletionsSwitch<Adapter>() { |
| 91 | @Override |
| 92 | public Adapter caseCompletion(Completion object) { |
| 93 | return createCompletionAdapter(); |
| 94 | } |
| 95 | @Override |
| 96 | public Adapter caseCompletionRepository(CompletionRepository object) { |
| 97 | return createCompletionRepositoryAdapter(); |
| 98 | } |
| 99 | @Override |
| 100 | public Adapter caseDelegatingExternalCallAction(DelegatingExternalCallAction object) { |
| 101 | return createDelegatingExternalCallActionAdapter(); |
| 102 | } |
| 103 | @Override |
| 104 | public Adapter caseIdentifier(Identifier object) { |
| 105 | return createIdentifierAdapter(); |
| 106 | } |
| 107 | @Override |
| 108 | public Adapter caseNamedElement(NamedElement object) { |
| 109 | return createNamedElementAdapter(); |
| 110 | } |
| 111 | @Override |
| 112 | public Adapter caseEntity(Entity object) { |
| 113 | return createEntityAdapter(); |
| 114 | } |
| 115 | @Override |
| 116 | public Adapter caseComposedStructure(ComposedStructure object) { |
| 117 | return createComposedStructureAdapter(); |
| 118 | } |
| 119 | @Override |
| 120 | public Adapter caseInterfaceProvidingEntity(InterfaceProvidingEntity object) { |
| 121 | return createInterfaceProvidingEntityAdapter(); |
| 122 | } |
| 123 | @Override |
| 124 | public Adapter caseResourceInterfaceRequiringEntity(ResourceInterfaceRequiringEntity object) { |
| 125 | return createResourceInterfaceRequiringEntityAdapter(); |
| 126 | } |
| 127 | @Override |
| 128 | public Adapter caseInterfaceRequiringEntity(InterfaceRequiringEntity object) { |
| 129 | return createInterfaceRequiringEntityAdapter(); |
| 130 | } |
| 131 | @Override |
| 132 | public Adapter caseInterfaceProvidingRequiringEntity(InterfaceProvidingRequiringEntity object) { |
| 133 | return createInterfaceProvidingRequiringEntityAdapter(); |
| 134 | } |
| 135 | @Override |
| 136 | public Adapter caseComposedProvidingRequiringEntity(ComposedProvidingRequiringEntity object) { |
| 137 | return createComposedProvidingRequiringEntityAdapter(); |
| 138 | } |
| 139 | @Override |
| 140 | public Adapter caseRepositoryComponent(RepositoryComponent object) { |
| 141 | return createRepositoryComponentAdapter(); |
| 142 | } |
| 143 | @Override |
| 144 | public Adapter caseImplementationComponentType(ImplementationComponentType object) { |
| 145 | return createImplementationComponentTypeAdapter(); |
| 146 | } |
| 147 | @Override |
| 148 | public Adapter caseAbstractAction(AbstractAction object) { |
| 149 | return createAbstractActionAdapter(); |
| 150 | } |
| 151 | @Override |
| 152 | public Adapter caseCallAction(CallAction object) { |
| 153 | return createCallActionAdapter(); |
| 154 | } |
| 155 | @Override |
| 156 | public Adapter caseCallReturnAction(CallReturnAction object) { |
| 157 | return createCallReturnActionAdapter(); |
| 158 | } |
| 159 | @Override |
| 160 | public Adapter caseFailureHandlingEntity(FailureHandlingEntity object) { |
| 161 | return createFailureHandlingEntityAdapter(); |
| 162 | } |
| 163 | @Override |
| 164 | public Adapter caseExternalCallAction(ExternalCallAction object) { |
| 165 | return createExternalCallActionAdapter(); |
| 166 | } |
| 167 | @Override |
| 168 | public Adapter defaultCase(EObject object) { |
| 169 | return createEObjectAdapter(); |
| 170 | } |
| 171 | }; |
| 172 | |
| 173 | /** |
| 174 | * Creates an adapter for the <code>target</code>. |
| 175 | * <!-- begin-user-doc --> |
| 176 | * <!-- end-user-doc --> |
| 177 | * @param target the object to adapt. |
| 178 | * @return the adapter for the <code>target</code>. |
| 179 | * @generated |
| 180 | */ |
| 181 | @Override |
| 182 | public Adapter createAdapter(Notifier target) { |
| 183 | return modelSwitch.doSwitch((EObject)target); |
| 184 | } |
| 185 | |
| 186 | |
| 187 | /** |
| 188 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.completions.Completion <em>Completion</em>}'. |
| 189 | * <!-- begin-user-doc --> |
| 190 | * This default implementation returns null so that we can easily ignore cases; |
| 191 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 192 | * <!-- end-user-doc --> |
| 193 | * @return the new adapter. |
| 194 | * @see de.uka.ipd.sdq.completions.Completion |
| 195 | * @generated |
| 196 | */ |
| 197 | public Adapter createCompletionAdapter() { |
| 198 | return null; |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.completions.CompletionRepository <em>Completion Repository</em>}'. |
| 203 | * <!-- begin-user-doc --> |
| 204 | * This default implementation returns null so that we can easily ignore cases; |
| 205 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 206 | * <!-- end-user-doc --> |
| 207 | * @return the new adapter. |
| 208 | * @see de.uka.ipd.sdq.completions.CompletionRepository |
| 209 | * @generated |
| 210 | */ |
| 211 | public Adapter createCompletionRepositoryAdapter() { |
| 212 | return null; |
| 213 | } |
| 214 | |
| 215 | /** |
| 216 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.completions.DelegatingExternalCallAction <em>Delegating External Call Action</em>}'. |
| 217 | * <!-- begin-user-doc --> |
| 218 | * This default implementation returns null so that we can easily ignore cases; |
| 219 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 220 | * <!-- end-user-doc --> |
| 221 | * @return the new adapter. |
| 222 | * @see de.uka.ipd.sdq.completions.DelegatingExternalCallAction |
| 223 | * @generated |
| 224 | */ |
| 225 | public Adapter createDelegatingExternalCallActionAdapter() { |
| 226 | return null; |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'. |
| 231 | * <!-- begin-user-doc --> |
| 232 | * This default implementation returns null so that we can easily ignore cases; |
| 233 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 234 | * <!-- end-user-doc --> |
| 235 | * @return the new adapter. |
| 236 | * @see de.uka.ipd.sdq.identifier.Identifier |
| 237 | * @generated |
| 238 | */ |
| 239 | public Adapter createIdentifierAdapter() { |
| 240 | return null; |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</em>}'. |
| 245 | * <!-- begin-user-doc --> |
| 246 | * This default implementation returns null so that we can easily ignore cases; |
| 247 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 248 | * <!-- end-user-doc --> |
| 249 | * @return the new adapter. |
| 250 | * @see de.uka.ipd.sdq.pcm.core.entity.NamedElement |
| 251 | * @generated |
| 252 | */ |
| 253 | public Adapter createNamedElementAdapter() { |
| 254 | return null; |
| 255 | } |
| 256 | |
| 257 | /** |
| 258 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.Entity <em>Entity</em>}'. |
| 259 | * <!-- begin-user-doc --> |
| 260 | * This default implementation returns null so that we can easily ignore cases; |
| 261 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 262 | * <!-- end-user-doc --> |
| 263 | * @return the new adapter. |
| 264 | * @see de.uka.ipd.sdq.pcm.core.entity.Entity |
| 265 | * @generated |
| 266 | */ |
| 267 | public Adapter createEntityAdapter() { |
| 268 | return null; |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.ComposedStructure <em>Composed Structure</em>}'. |
| 273 | * <!-- begin-user-doc --> |
| 274 | * This default implementation returns null so that we can easily ignore cases; |
| 275 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 276 | * <!-- end-user-doc --> |
| 277 | * @return the new adapter. |
| 278 | * @see de.uka.ipd.sdq.pcm.core.composition.ComposedStructure |
| 279 | * @generated |
| 280 | */ |
| 281 | public Adapter createComposedStructureAdapter() { |
| 282 | return null; |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity <em>Interface Providing Entity</em>}'. |
| 287 | * <!-- begin-user-doc --> |
| 288 | * This default implementation returns null so that we can easily ignore cases; |
| 289 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 290 | * <!-- end-user-doc --> |
| 291 | * @return the new adapter. |
| 292 | * @see de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity |
| 293 | * @generated |
| 294 | */ |
| 295 | public Adapter createInterfaceProvidingEntityAdapter() { |
| 296 | return null; |
| 297 | } |
| 298 | |
| 299 | /** |
| 300 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity <em>Interface Requiring Entity</em>}'. |
| 301 | * <!-- begin-user-doc --> |
| 302 | * This default implementation returns null so that we can easily ignore cases; |
| 303 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 304 | * <!-- end-user-doc --> |
| 305 | * @return the new adapter. |
| 306 | * @see de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity |
| 307 | * @generated |
| 308 | */ |
| 309 | public Adapter createInterfaceRequiringEntityAdapter() { |
| 310 | return null; |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity <em>Resource Interface Requiring Entity</em>}'. |
| 315 | * <!-- begin-user-doc --> |
| 316 | * This default implementation returns null so that we can easily ignore cases; |
| 317 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 318 | * <!-- end-user-doc --> |
| 319 | * @return the new adapter. |
| 320 | * @see de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity |
| 321 | * @generated |
| 322 | */ |
| 323 | public Adapter createResourceInterfaceRequiringEntityAdapter() { |
| 324 | return null; |
| 325 | } |
| 326 | |
| 327 | /** |
| 328 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity <em>Interface Providing Requiring Entity</em>}'. |
| 329 | * <!-- begin-user-doc --> |
| 330 | * This default implementation returns null so that we can easily ignore cases; |
| 331 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 332 | * <!-- end-user-doc --> |
| 333 | * @return the new adapter. |
| 334 | * @see de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity |
| 335 | * @generated |
| 336 | */ |
| 337 | public Adapter createInterfaceProvidingRequiringEntityAdapter() { |
| 338 | return null; |
| 339 | } |
| 340 | |
| 341 | /** |
| 342 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity <em>Composed Providing Requiring Entity</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 | * @return the new adapter. |
| 348 | * @see de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity |
| 349 | * @generated |
| 350 | */ |
| 351 | public Adapter createComposedProvidingRequiringEntityAdapter() { |
| 352 | return null; |
| 353 | } |
| 354 | |
| 355 | /** |
| 356 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.repository.RepositoryComponent <em>Component</em>}'. |
| 357 | * <!-- begin-user-doc --> |
| 358 | * This default implementation returns null so that we can easily ignore cases; |
| 359 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 360 | * <!-- end-user-doc --> |
| 361 | * @return the new adapter. |
| 362 | * @see de.uka.ipd.sdq.pcm.repository.RepositoryComponent |
| 363 | * @generated |
| 364 | */ |
| 365 | public Adapter createRepositoryComponentAdapter() { |
| 366 | return null; |
| 367 | } |
| 368 | |
| 369 | /** |
| 370 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.repository.ImplementationComponentType <em>Implementation Component Type</em>}'. |
| 371 | * <!-- begin-user-doc --> |
| 372 | * This default implementation returns null so that we can easily ignore cases; |
| 373 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 374 | * <!-- end-user-doc --> |
| 375 | * @return the new adapter. |
| 376 | * @see de.uka.ipd.sdq.pcm.repository.ImplementationComponentType |
| 377 | * @generated |
| 378 | */ |
| 379 | public Adapter createImplementationComponentTypeAdapter() { |
| 380 | return null; |
| 381 | } |
| 382 | |
| 383 | /** |
| 384 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.seff.AbstractAction <em>Abstract Action</em>}'. |
| 385 | * <!-- begin-user-doc --> |
| 386 | * This default implementation returns null so that we can easily ignore cases; |
| 387 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 388 | * <!-- end-user-doc --> |
| 389 | * @return the new adapter. |
| 390 | * @see de.uka.ipd.sdq.pcm.seff.AbstractAction |
| 391 | * @generated |
| 392 | */ |
| 393 | public Adapter createAbstractActionAdapter() { |
| 394 | return null; |
| 395 | } |
| 396 | |
| 397 | /** |
| 398 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.seff.CallAction <em>Call Action</em>}'. |
| 399 | * <!-- begin-user-doc --> |
| 400 | * This default implementation returns null so that we can easily ignore cases; |
| 401 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 402 | * <!-- end-user-doc --> |
| 403 | * @return the new adapter. |
| 404 | * @see de.uka.ipd.sdq.pcm.seff.CallAction |
| 405 | * @generated |
| 406 | */ |
| 407 | public Adapter createCallActionAdapter() { |
| 408 | return null; |
| 409 | } |
| 410 | |
| 411 | /** |
| 412 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.seff.CallReturnAction <em>Call Return Action</em>}'. |
| 413 | * <!-- begin-user-doc --> |
| 414 | * This default implementation returns null so that we can easily ignore cases; |
| 415 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 416 | * <!-- end-user-doc --> |
| 417 | * @return the new adapter. |
| 418 | * @see de.uka.ipd.sdq.pcm.seff.CallReturnAction |
| 419 | * @generated |
| 420 | */ |
| 421 | public Adapter createCallReturnActionAdapter() { |
| 422 | return null; |
| 423 | } |
| 424 | |
| 425 | /** |
| 426 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.seff.seff_reliability.FailureHandlingEntity <em>Failure Handling Entity</em>}'. |
| 427 | * <!-- begin-user-doc --> |
| 428 | * This default implementation returns null so that we can easily ignore cases; |
| 429 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 430 | * <!-- end-user-doc --> |
| 431 | * @return the new adapter. |
| 432 | * @see de.uka.ipd.sdq.pcm.seff.seff_reliability.FailureHandlingEntity |
| 433 | * @generated |
| 434 | */ |
| 435 | public Adapter createFailureHandlingEntityAdapter() { |
| 436 | return null; |
| 437 | } |
| 438 | |
| 439 | /** |
| 440 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.seff.ExternalCallAction <em>External Call Action</em>}'. |
| 441 | * <!-- begin-user-doc --> |
| 442 | * This default implementation returns null so that we can easily ignore cases; |
| 443 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 444 | * <!-- end-user-doc --> |
| 445 | * @return the new adapter. |
| 446 | * @see de.uka.ipd.sdq.pcm.seff.ExternalCallAction |
| 447 | * @generated |
| 448 | */ |
| 449 | public Adapter createExternalCallActionAdapter() { |
| 450 | return null; |
| 451 | } |
| 452 | |
| 453 | /** |
| 454 | * Creates a new adapter for the default case. |
| 455 | * <!-- begin-user-doc --> |
| 456 | * This default implementation returns null. |
| 457 | * <!-- end-user-doc --> |
| 458 | * @return the new adapter. |
| 459 | * @generated |
| 460 | */ |
| 461 | public Adapter createEObjectAdapter() { |
| 462 | return null; |
| 463 | } |
| 464 | |
| 465 | } //CompletionsAdapterFactory |