| 1 | /** |
| 2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.pcm.usagemodel.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.entity.Entity; |
| 15 | import de.uka.ipd.sdq.pcm.core.entity.NamedElement; |
| 16 | import de.uka.ipd.sdq.pcm.usagemodel.*; |
| 17 | import de.uka.ipd.sdq.pcm.usagemodel.AbstractUserAction; |
| 18 | import de.uka.ipd.sdq.pcm.usagemodel.Branch; |
| 19 | import de.uka.ipd.sdq.pcm.usagemodel.BranchTransition; |
| 20 | import de.uka.ipd.sdq.pcm.usagemodel.ClosedWorkload; |
| 21 | import de.uka.ipd.sdq.pcm.usagemodel.Delay; |
| 22 | import de.uka.ipd.sdq.pcm.usagemodel.EntryLevelSystemCall; |
| 23 | import de.uka.ipd.sdq.pcm.usagemodel.Loop; |
| 24 | import de.uka.ipd.sdq.pcm.usagemodel.OpenWorkload; |
| 25 | import de.uka.ipd.sdq.pcm.usagemodel.ScenarioBehaviour; |
| 26 | import de.uka.ipd.sdq.pcm.usagemodel.Start; |
| 27 | import de.uka.ipd.sdq.pcm.usagemodel.Stop; |
| 28 | import de.uka.ipd.sdq.pcm.usagemodel.UsageModel; |
| 29 | import de.uka.ipd.sdq.pcm.usagemodel.UsageScenario; |
| 30 | import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage; |
| 31 | import de.uka.ipd.sdq.pcm.usagemodel.UserData; |
| 32 | import de.uka.ipd.sdq.pcm.usagemodel.Workload; |
| 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 | * @see de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage |
| 40 | * @generated |
| 41 | */ |
| 42 | public class UsagemodelAdapterFactory extends AdapterFactoryImpl { |
| 43 | /** |
| 44 | * <!-- begin-user-doc --> |
| 45 | * <!-- end-user-doc --> |
| 46 | * @generated |
| 47 | */ |
| 48 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
| 49 | |
| 50 | /** |
| 51 | * The cached model package. |
| 52 | * <!-- begin-user-doc --> |
| 53 | * <!-- end-user-doc --> |
| 54 | * @generated |
| 55 | */ |
| 56 | protected static UsagemodelPackage modelPackage; |
| 57 | |
| 58 | /** |
| 59 | * Creates an instance of the adapter factory. |
| 60 | * <!-- begin-user-doc --> |
| 61 | * <!-- end-user-doc --> |
| 62 | * @generated |
| 63 | */ |
| 64 | public UsagemodelAdapterFactory() { |
| 65 | if (modelPackage == null) { |
| 66 | modelPackage = UsagemodelPackage.eINSTANCE; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Returns whether this factory is applicable for the type of the object. |
| 72 | * <!-- begin-user-doc --> |
| 73 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
| 74 | * <!-- end-user-doc --> |
| 75 | * @return whether this factory is applicable for the type of the object. |
| 76 | * @generated |
| 77 | */ |
| 78 | @Override |
| 79 | public boolean isFactoryForType(Object object) { |
| 80 | if (object == modelPackage) { |
| 81 | return true; |
| 82 | } |
| 83 | if (object instanceof EObject) { |
| 84 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
| 85 | } |
| 86 | return false; |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * The switch that delegates to the <code>createXXX</code> methods. |
| 91 | * <!-- begin-user-doc --> |
| 92 | * <!-- end-user-doc --> |
| 93 | * @generated |
| 94 | */ |
| 95 | protected UsagemodelSwitch<Adapter> modelSwitch = |
| 96 | new UsagemodelSwitch<Adapter>() { |
| 97 | @Override |
| 98 | public Adapter caseWorkload(Workload object) { |
| 99 | return createWorkloadAdapter(); |
| 100 | } |
| 101 | @Override |
| 102 | public Adapter caseUsageScenario(UsageScenario object) { |
| 103 | return createUsageScenarioAdapter(); |
| 104 | } |
| 105 | @Override |
| 106 | public Adapter caseUserData(UserData object) { |
| 107 | return createUserDataAdapter(); |
| 108 | } |
| 109 | @Override |
| 110 | public Adapter caseUsageModel(UsageModel object) { |
| 111 | return createUsageModelAdapter(); |
| 112 | } |
| 113 | @Override |
| 114 | public Adapter caseEntryLevelSystemCall(EntryLevelSystemCall object) { |
| 115 | return createEntryLevelSystemCallAdapter(); |
| 116 | } |
| 117 | @Override |
| 118 | public Adapter caseAbstractUserAction(AbstractUserAction object) { |
| 119 | return createAbstractUserActionAdapter(); |
| 120 | } |
| 121 | @Override |
| 122 | public Adapter caseScenarioBehaviour(ScenarioBehaviour object) { |
| 123 | return createScenarioBehaviourAdapter(); |
| 124 | } |
| 125 | @Override |
| 126 | public Adapter caseBranchTransition(BranchTransition object) { |
| 127 | return createBranchTransitionAdapter(); |
| 128 | } |
| 129 | @Override |
| 130 | public Adapter caseBranch(Branch object) { |
| 131 | return createBranchAdapter(); |
| 132 | } |
| 133 | @Override |
| 134 | public Adapter caseLoop(Loop object) { |
| 135 | return createLoopAdapter(); |
| 136 | } |
| 137 | @Override |
| 138 | public Adapter caseStop(Stop object) { |
| 139 | return createStopAdapter(); |
| 140 | } |
| 141 | @Override |
| 142 | public Adapter caseStart(Start object) { |
| 143 | return createStartAdapter(); |
| 144 | } |
| 145 | @Override |
| 146 | public Adapter caseOpenWorkload(OpenWorkload object) { |
| 147 | return createOpenWorkloadAdapter(); |
| 148 | } |
| 149 | @Override |
| 150 | public Adapter caseDelay(Delay object) { |
| 151 | return createDelayAdapter(); |
| 152 | } |
| 153 | @Override |
| 154 | public Adapter caseClosedWorkload(ClosedWorkload object) { |
| 155 | return createClosedWorkloadAdapter(); |
| 156 | } |
| 157 | @Override |
| 158 | public Adapter caseIdentifier(Identifier object) { |
| 159 | return createIdentifierAdapter(); |
| 160 | } |
| 161 | @Override |
| 162 | public Adapter caseNamedElement(NamedElement object) { |
| 163 | return createNamedElementAdapter(); |
| 164 | } |
| 165 | @Override |
| 166 | public Adapter caseEntity(Entity object) { |
| 167 | return createEntityAdapter(); |
| 168 | } |
| 169 | @Override |
| 170 | public Adapter defaultCase(EObject object) { |
| 171 | return createEObjectAdapter(); |
| 172 | } |
| 173 | }; |
| 174 | |
| 175 | /** |
| 176 | * Creates an adapter for the <code>target</code>. |
| 177 | * <!-- begin-user-doc --> |
| 178 | * <!-- end-user-doc --> |
| 179 | * @param target the object to adapt. |
| 180 | * @return the adapter for the <code>target</code>. |
| 181 | * @generated |
| 182 | */ |
| 183 | @Override |
| 184 | public Adapter createAdapter(Notifier target) { |
| 185 | return modelSwitch.doSwitch((EObject)target); |
| 186 | } |
| 187 | |
| 188 | |
| 189 | /** |
| 190 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.Workload <em>Workload</em>}'. |
| 191 | * <!-- begin-user-doc --> |
| 192 | * This default implementation returns null so that we can easily ignore cases; |
| 193 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 194 | * <!-- end-user-doc --> |
| 195 | * @return the new adapter. |
| 196 | * @see de.uka.ipd.sdq.pcm.usagemodel.Workload |
| 197 | * @generated |
| 198 | */ |
| 199 | public Adapter createWorkloadAdapter() { |
| 200 | return null; |
| 201 | } |
| 202 | |
| 203 | /** |
| 204 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.UsageScenario <em>Usage Scenario</em>}'. |
| 205 | * <!-- begin-user-doc --> |
| 206 | * This default implementation returns null so that we can easily ignore cases; |
| 207 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 208 | * <!-- end-user-doc --> |
| 209 | * @return the new adapter. |
| 210 | * @see de.uka.ipd.sdq.pcm.usagemodel.UsageScenario |
| 211 | * @generated |
| 212 | */ |
| 213 | public Adapter createUsageScenarioAdapter() { |
| 214 | return null; |
| 215 | } |
| 216 | |
| 217 | /** |
| 218 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.ScenarioBehaviour <em>Scenario Behaviour</em>}'. |
| 219 | * <!-- begin-user-doc --> |
| 220 | * This default implementation returns null so that we can easily ignore cases; |
| 221 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 222 | * <!-- end-user-doc --> |
| 223 | * @return the new adapter. |
| 224 | * @see de.uka.ipd.sdq.pcm.usagemodel.ScenarioBehaviour |
| 225 | * @generated |
| 226 | */ |
| 227 | public Adapter createScenarioBehaviourAdapter() { |
| 228 | return null; |
| 229 | } |
| 230 | |
| 231 | /** |
| 232 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.AbstractUserAction <em>Abstract User Action</em>}'. |
| 233 | * <!-- begin-user-doc --> |
| 234 | * This default implementation returns null so that we can easily ignore cases; |
| 235 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 236 | * <!-- end-user-doc --> |
| 237 | * @return the new adapter. |
| 238 | * @see de.uka.ipd.sdq.pcm.usagemodel.AbstractUserAction |
| 239 | * @generated |
| 240 | */ |
| 241 | public Adapter createAbstractUserActionAdapter() { |
| 242 | return null; |
| 243 | } |
| 244 | |
| 245 | /** |
| 246 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.BranchTransition <em>Branch Transition</em>}'. |
| 247 | * <!-- begin-user-doc --> |
| 248 | * This default implementation returns null so that we can easily ignore cases; |
| 249 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 250 | * <!-- end-user-doc --> |
| 251 | * @return the new adapter. |
| 252 | * @see de.uka.ipd.sdq.pcm.usagemodel.BranchTransition |
| 253 | * @generated |
| 254 | */ |
| 255 | public Adapter createBranchTransitionAdapter() { |
| 256 | return null; |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.Branch <em>Branch</em>}'. |
| 261 | * <!-- begin-user-doc --> |
| 262 | * This default implementation returns null so that we can easily ignore cases; |
| 263 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 264 | * <!-- end-user-doc --> |
| 265 | * @return the new adapter. |
| 266 | * @see de.uka.ipd.sdq.pcm.usagemodel.Branch |
| 267 | * @generated |
| 268 | */ |
| 269 | public Adapter createBranchAdapter() { |
| 270 | return null; |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.Loop <em>Loop</em>}'. |
| 275 | * <!-- begin-user-doc --> |
| 276 | * This default implementation returns null so that we can easily ignore cases; |
| 277 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 278 | * <!-- end-user-doc --> |
| 279 | * @return the new adapter. |
| 280 | * @see de.uka.ipd.sdq.pcm.usagemodel.Loop |
| 281 | * @generated |
| 282 | */ |
| 283 | public Adapter createLoopAdapter() { |
| 284 | return null; |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.UsageModel <em>Usage Model</em>}'. |
| 289 | * <!-- begin-user-doc --> |
| 290 | * This default implementation returns null so that we can easily ignore cases; |
| 291 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 292 | * <!-- end-user-doc --> |
| 293 | * @return the new adapter. |
| 294 | * @see de.uka.ipd.sdq.pcm.usagemodel.UsageModel |
| 295 | * @generated |
| 296 | */ |
| 297 | public Adapter createUsageModelAdapter() { |
| 298 | return null; |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.Stop <em>Stop</em>}'. |
| 303 | * <!-- begin-user-doc --> |
| 304 | * This default implementation returns null so that we can easily ignore cases; |
| 305 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 306 | * <!-- end-user-doc --> |
| 307 | * @return the new adapter. |
| 308 | * @see de.uka.ipd.sdq.pcm.usagemodel.Stop |
| 309 | * @generated |
| 310 | */ |
| 311 | public Adapter createStopAdapter() { |
| 312 | return null; |
| 313 | } |
| 314 | |
| 315 | /** |
| 316 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.Start <em>Start</em>}'. |
| 317 | * <!-- begin-user-doc --> |
| 318 | * This default implementation returns null so that we can easily ignore cases; |
| 319 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 320 | * <!-- end-user-doc --> |
| 321 | * @return the new adapter. |
| 322 | * @see de.uka.ipd.sdq.pcm.usagemodel.Start |
| 323 | * @generated |
| 324 | */ |
| 325 | public Adapter createStartAdapter() { |
| 326 | return null; |
| 327 | } |
| 328 | |
| 329 | /** |
| 330 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.OpenWorkload <em>Open Workload</em>}'. |
| 331 | * <!-- begin-user-doc --> |
| 332 | * This default implementation returns null so that we can easily ignore cases; |
| 333 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 334 | * <!-- end-user-doc --> |
| 335 | * @return the new adapter. |
| 336 | * @see de.uka.ipd.sdq.pcm.usagemodel.OpenWorkload |
| 337 | * @generated |
| 338 | */ |
| 339 | public Adapter createOpenWorkloadAdapter() { |
| 340 | return null; |
| 341 | } |
| 342 | |
| 343 | /** |
| 344 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.EntryLevelSystemCall <em>Entry Level System Call</em>}'. |
| 345 | * <!-- begin-user-doc --> |
| 346 | * This default implementation returns null so that we can easily ignore cases; |
| 347 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 348 | * <!-- end-user-doc --> |
| 349 | * @return the new adapter. |
| 350 | * @see de.uka.ipd.sdq.pcm.usagemodel.EntryLevelSystemCall |
| 351 | * @generated |
| 352 | */ |
| 353 | public Adapter createEntryLevelSystemCallAdapter() { |
| 354 | return null; |
| 355 | } |
| 356 | |
| 357 | /** |
| 358 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.ClosedWorkload <em>Closed Workload</em>}'. |
| 359 | * <!-- begin-user-doc --> |
| 360 | * This default implementation returns null so that we can easily ignore cases; |
| 361 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 362 | * <!-- end-user-doc --> |
| 363 | * @return the new adapter. |
| 364 | * @see de.uka.ipd.sdq.pcm.usagemodel.ClosedWorkload |
| 365 | * @generated |
| 366 | */ |
| 367 | public Adapter createClosedWorkloadAdapter() { |
| 368 | return null; |
| 369 | } |
| 370 | |
| 371 | /** |
| 372 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.Delay <em>Delay</em>}'. |
| 373 | * <!-- begin-user-doc --> |
| 374 | * This default implementation returns null so that we can easily ignore cases; |
| 375 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 376 | * <!-- end-user-doc --> |
| 377 | * @return the new adapter. |
| 378 | * @see de.uka.ipd.sdq.pcm.usagemodel.Delay |
| 379 | * @generated |
| 380 | */ |
| 381 | public Adapter createDelayAdapter() { |
| 382 | return null; |
| 383 | } |
| 384 | |
| 385 | /** |
| 386 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.usagemodel.UserData <em>User Data</em>}'. |
| 387 | * <!-- begin-user-doc --> |
| 388 | * This default implementation returns null so that we can easily ignore cases; |
| 389 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 390 | * <!-- end-user-doc --> |
| 391 | * @return the new adapter. |
| 392 | * @see de.uka.ipd.sdq.pcm.usagemodel.UserData |
| 393 | * @generated |
| 394 | */ |
| 395 | public Adapter createUserDataAdapter() { |
| 396 | return null; |
| 397 | } |
| 398 | |
| 399 | /** |
| 400 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'. |
| 401 | * <!-- begin-user-doc --> |
| 402 | * This default implementation returns null so that we can easily ignore cases; |
| 403 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 404 | * <!-- end-user-doc --> |
| 405 | * @return the new adapter. |
| 406 | * @see de.uka.ipd.sdq.identifier.Identifier |
| 407 | * @generated |
| 408 | */ |
| 409 | public Adapter createIdentifierAdapter() { |
| 410 | return null; |
| 411 | } |
| 412 | |
| 413 | /** |
| 414 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</em>}'. |
| 415 | * <!-- begin-user-doc --> |
| 416 | * This default implementation returns null so that we can easily ignore cases; |
| 417 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 418 | * <!-- end-user-doc --> |
| 419 | * @return the new adapter. |
| 420 | * @see de.uka.ipd.sdq.pcm.core.entity.NamedElement |
| 421 | * @generated |
| 422 | */ |
| 423 | public Adapter createNamedElementAdapter() { |
| 424 | return null; |
| 425 | } |
| 426 | |
| 427 | /** |
| 428 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.Entity <em>Entity</em>}'. |
| 429 | * <!-- begin-user-doc --> |
| 430 | * This default implementation returns null so that we can easily ignore cases; |
| 431 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 432 | * <!-- end-user-doc --> |
| 433 | * @return the new adapter. |
| 434 | * @see de.uka.ipd.sdq.pcm.core.entity.Entity |
| 435 | * @generated |
| 436 | */ |
| 437 | public Adapter createEntityAdapter() { |
| 438 | return null; |
| 439 | } |
| 440 | |
| 441 | /** |
| 442 | * Creates a new adapter for the default case. |
| 443 | * <!-- begin-user-doc --> |
| 444 | * This default implementation returns null. |
| 445 | * <!-- end-user-doc --> |
| 446 | * @return the new adapter. |
| 447 | * @generated |
| 448 | */ |
| 449 | public Adapter createEObjectAdapter() { |
| 450 | return null; |
| 451 | } |
| 452 | |
| 453 | } //UsagemodelAdapterFactory |