| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package de.fzi.se.quality.parameters.pcm.util; |
| 8 | |
| 9 | import de.fzi.se.quality.parameters.BusinessOperationReference; |
| 10 | import de.fzi.se.quality.parameters.ComponentReference; |
| 11 | import de.fzi.se.quality.parameters.InfrastructureOperationReference; |
| 12 | import de.fzi.se.quality.parameters.OperationReference; |
| 13 | import de.fzi.se.quality.parameters.ParameterReference; |
| 14 | import de.fzi.se.quality.parameters.ParameterValue; |
| 15 | |
| 16 | import de.fzi.se.quality.parameters.pcm.*; |
| 17 | |
| 18 | import de.uka.ipd.sdq.identifier.Identifier; |
| 19 | |
| 20 | import org.eclipse.emf.common.notify.Adapter; |
| 21 | import org.eclipse.emf.common.notify.Notifier; |
| 22 | |
| 23 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
| 24 | |
| 25 | import org.eclipse.emf.ecore.EObject; |
| 26 | |
| 27 | /** |
| 28 | * <!-- begin-user-doc --> |
| 29 | * The <b>Adapter Factory</b> for the model. |
| 30 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
| 31 | * <!-- end-user-doc --> |
| 32 | * @see de.fzi.se.quality.parameters.pcm.PCMPackage |
| 33 | * @generated |
| 34 | */ |
| 35 | public class PCMAdapterFactory extends AdapterFactoryImpl { |
| 36 | /** |
| 37 | * The cached model package. |
| 38 | * <!-- begin-user-doc --> |
| 39 | * <!-- end-user-doc --> |
| 40 | * @generated |
| 41 | */ |
| 42 | protected static PCMPackage modelPackage; |
| 43 | |
| 44 | /** |
| 45 | * Creates an instance of the adapter factory. |
| 46 | * <!-- begin-user-doc --> |
| 47 | * <!-- end-user-doc --> |
| 48 | * @generated |
| 49 | */ |
| 50 | public PCMAdapterFactory() { |
| 51 | if (modelPackage == null) { |
| 52 | modelPackage = PCMPackage.eINSTANCE; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Returns whether this factory is applicable for the type of the object. |
| 58 | * <!-- begin-user-doc --> |
| 59 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
| 60 | * <!-- end-user-doc --> |
| 61 | * @return whether this factory is applicable for the type of the object. |
| 62 | * @generated |
| 63 | */ |
| 64 | @Override |
| 65 | public boolean isFactoryForType(Object object) { |
| 66 | if (object == modelPackage) { |
| 67 | return true; |
| 68 | } |
| 69 | if (object instanceof EObject) { |
| 70 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
| 71 | } |
| 72 | return false; |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * The switch that delegates to the <code>createXXX</code> methods. |
| 77 | * <!-- begin-user-doc --> |
| 78 | * <!-- end-user-doc --> |
| 79 | * @generated |
| 80 | */ |
| 81 | protected PCMSwitch<Adapter> modelSwitch = |
| 82 | new PCMSwitch<Adapter>() { |
| 83 | @Override |
| 84 | public Adapter casePCMParameterReference(PCMParameterReference object) { |
| 85 | return createPCMParameterReferenceAdapter(); |
| 86 | } |
| 87 | @Override |
| 88 | public Adapter casePCMParameterValue(PCMParameterValue object) { |
| 89 | return createPCMParameterValueAdapter(); |
| 90 | } |
| 91 | @Override |
| 92 | public Adapter casePCMInfrastructureOperationReference(PCMInfrastructureOperationReference object) { |
| 93 | return createPCMInfrastructureOperationReferenceAdapter(); |
| 94 | } |
| 95 | @Override |
| 96 | public Adapter casePCMBusinessOperationReference(PCMBusinessOperationReference object) { |
| 97 | return createPCMBusinessOperationReferenceAdapter(); |
| 98 | } |
| 99 | @Override |
| 100 | public Adapter casePCMComponentReference(PCMComponentReference object) { |
| 101 | return createPCMComponentReferenceAdapter(); |
| 102 | } |
| 103 | @Override |
| 104 | public Adapter casePCMComponentParameterReference(PCMComponentParameterReference object) { |
| 105 | return createPCMComponentParameterReferenceAdapter(); |
| 106 | } |
| 107 | @Override |
| 108 | public Adapter casePCMOperationParameterReference(PCMOperationParameterReference object) { |
| 109 | return createPCMOperationParameterReferenceAdapter(); |
| 110 | } |
| 111 | @Override |
| 112 | public Adapter casePCMRequiredBusinessOperationReturnParameterReference(PCMRequiredBusinessOperationReturnParameterReference object) { |
| 113 | return createPCMRequiredBusinessOperationReturnParameterReferenceAdapter(); |
| 114 | } |
| 115 | @Override |
| 116 | public Adapter caseIdentifier(Identifier object) { |
| 117 | return createIdentifierAdapter(); |
| 118 | } |
| 119 | @Override |
| 120 | public Adapter caseParameterReference(ParameterReference object) { |
| 121 | return createParameterReferenceAdapter(); |
| 122 | } |
| 123 | @Override |
| 124 | public Adapter caseParameterValue(ParameterValue object) { |
| 125 | return createParameterValueAdapter(); |
| 126 | } |
| 127 | @Override |
| 128 | public Adapter caseOperationReference(OperationReference object) { |
| 129 | return createOperationReferenceAdapter(); |
| 130 | } |
| 131 | @Override |
| 132 | public Adapter caseInfrastructureOperationReference(InfrastructureOperationReference object) { |
| 133 | return createInfrastructureOperationReferenceAdapter(); |
| 134 | } |
| 135 | @Override |
| 136 | public Adapter caseBusinessOperationReference(BusinessOperationReference object) { |
| 137 | return createBusinessOperationReferenceAdapter(); |
| 138 | } |
| 139 | @Override |
| 140 | public Adapter caseComponentReference(ComponentReference object) { |
| 141 | return createComponentReferenceAdapter(); |
| 142 | } |
| 143 | @Override |
| 144 | public Adapter defaultCase(EObject object) { |
| 145 | return createEObjectAdapter(); |
| 146 | } |
| 147 | }; |
| 148 | |
| 149 | /** |
| 150 | * Creates an adapter for the <code>target</code>. |
| 151 | * <!-- begin-user-doc --> |
| 152 | * <!-- end-user-doc --> |
| 153 | * @param target the object to adapt. |
| 154 | * @return the adapter for the <code>target</code>. |
| 155 | * @generated |
| 156 | */ |
| 157 | @Override |
| 158 | public Adapter createAdapter(Notifier target) { |
| 159 | return modelSwitch.doSwitch((EObject)target); |
| 160 | } |
| 161 | |
| 162 | |
| 163 | /** |
| 164 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.pcm.PCMParameterReference <em>Parameter Reference</em>}'. |
| 165 | * <!-- begin-user-doc --> |
| 166 | * This default implementation returns null so that we can easily ignore cases; |
| 167 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 168 | * <!-- end-user-doc --> |
| 169 | * @return the new adapter. |
| 170 | * @see de.fzi.se.quality.parameters.pcm.PCMParameterReference |
| 171 | * @generated |
| 172 | */ |
| 173 | public Adapter createPCMParameterReferenceAdapter() { |
| 174 | return null; |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.pcm.PCMParameterValue <em>Parameter Value</em>}'. |
| 179 | * <!-- begin-user-doc --> |
| 180 | * This default implementation returns null so that we can easily ignore cases; |
| 181 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 182 | * <!-- end-user-doc --> |
| 183 | * @return the new adapter. |
| 184 | * @see de.fzi.se.quality.parameters.pcm.PCMParameterValue |
| 185 | * @generated |
| 186 | */ |
| 187 | public Adapter createPCMParameterValueAdapter() { |
| 188 | return null; |
| 189 | } |
| 190 | |
| 191 | /** |
| 192 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.pcm.PCMInfrastructureOperationReference <em>Infrastructure Operation Reference</em>}'. |
| 193 | * <!-- begin-user-doc --> |
| 194 | * This default implementation returns null so that we can easily ignore cases; |
| 195 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 196 | * <!-- end-user-doc --> |
| 197 | * @return the new adapter. |
| 198 | * @see de.fzi.se.quality.parameters.pcm.PCMInfrastructureOperationReference |
| 199 | * @generated |
| 200 | */ |
| 201 | public Adapter createPCMInfrastructureOperationReferenceAdapter() { |
| 202 | return null; |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.pcm.PCMBusinessOperationReference <em>Business Operation Reference</em>}'. |
| 207 | * <!-- begin-user-doc --> |
| 208 | * This default implementation returns null so that we can easily ignore cases; |
| 209 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 210 | * <!-- end-user-doc --> |
| 211 | * @return the new adapter. |
| 212 | * @see de.fzi.se.quality.parameters.pcm.PCMBusinessOperationReference |
| 213 | * @generated |
| 214 | */ |
| 215 | public Adapter createPCMBusinessOperationReferenceAdapter() { |
| 216 | return null; |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.pcm.PCMComponentReference <em>Component Reference</em>}'. |
| 221 | * <!-- begin-user-doc --> |
| 222 | * This default implementation returns null so that we can easily ignore cases; |
| 223 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 224 | * <!-- end-user-doc --> |
| 225 | * @return the new adapter. |
| 226 | * @see de.fzi.se.quality.parameters.pcm.PCMComponentReference |
| 227 | * @generated |
| 228 | */ |
| 229 | public Adapter createPCMComponentReferenceAdapter() { |
| 230 | return null; |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.pcm.PCMComponentParameterReference <em>Component Parameter Reference</em>}'. |
| 235 | * <!-- begin-user-doc --> |
| 236 | * This default implementation returns null so that we can easily ignore cases; |
| 237 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 238 | * <!-- end-user-doc --> |
| 239 | * @return the new adapter. |
| 240 | * @see de.fzi.se.quality.parameters.pcm.PCMComponentParameterReference |
| 241 | * @generated |
| 242 | */ |
| 243 | public Adapter createPCMComponentParameterReferenceAdapter() { |
| 244 | return null; |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.pcm.PCMOperationParameterReference <em>Operation Parameter Reference</em>}'. |
| 249 | * <!-- begin-user-doc --> |
| 250 | * This default implementation returns null so that we can easily ignore cases; |
| 251 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 252 | * <!-- end-user-doc --> |
| 253 | * @return the new adapter. |
| 254 | * @see de.fzi.se.quality.parameters.pcm.PCMOperationParameterReference |
| 255 | * @generated |
| 256 | */ |
| 257 | public Adapter createPCMOperationParameterReferenceAdapter() { |
| 258 | return null; |
| 259 | } |
| 260 | |
| 261 | /** |
| 262 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.pcm.PCMRequiredBusinessOperationReturnParameterReference <em>Required Business Operation Return Parameter Reference</em>}'. |
| 263 | * <!-- begin-user-doc --> |
| 264 | * This default implementation returns null so that we can easily ignore cases; |
| 265 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 266 | * <!-- end-user-doc --> |
| 267 | * @return the new adapter. |
| 268 | * @see de.fzi.se.quality.parameters.pcm.PCMRequiredBusinessOperationReturnParameterReference |
| 269 | * @generated |
| 270 | */ |
| 271 | public Adapter createPCMRequiredBusinessOperationReturnParameterReferenceAdapter() { |
| 272 | return null; |
| 273 | } |
| 274 | |
| 275 | /** |
| 276 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'. |
| 277 | * <!-- begin-user-doc --> |
| 278 | * This default implementation returns null so that we can easily ignore cases; |
| 279 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 280 | * <!-- end-user-doc --> |
| 281 | * @return the new adapter. |
| 282 | * @see de.uka.ipd.sdq.identifier.Identifier |
| 283 | * @generated |
| 284 | */ |
| 285 | public Adapter createIdentifierAdapter() { |
| 286 | return null; |
| 287 | } |
| 288 | |
| 289 | /** |
| 290 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.ParameterReference <em>Parameter Reference</em>}'. |
| 291 | * <!-- begin-user-doc --> |
| 292 | * This default implementation returns null so that we can easily ignore cases; |
| 293 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 294 | * <!-- end-user-doc --> |
| 295 | * @return the new adapter. |
| 296 | * @see de.fzi.se.quality.parameters.ParameterReference |
| 297 | * @generated |
| 298 | */ |
| 299 | public Adapter createParameterReferenceAdapter() { |
| 300 | return null; |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.ParameterValue <em>Parameter Value</em>}'. |
| 305 | * <!-- begin-user-doc --> |
| 306 | * This default implementation returns null so that we can easily ignore cases; |
| 307 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 308 | * <!-- end-user-doc --> |
| 309 | * @return the new adapter. |
| 310 | * @see de.fzi.se.quality.parameters.ParameterValue |
| 311 | * @generated |
| 312 | */ |
| 313 | public Adapter createParameterValueAdapter() { |
| 314 | return null; |
| 315 | } |
| 316 | |
| 317 | /** |
| 318 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.OperationReference <em>Operation Reference</em>}'. |
| 319 | * <!-- begin-user-doc --> |
| 320 | * This default implementation returns null so that we can easily ignore cases; |
| 321 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 322 | * <!-- end-user-doc --> |
| 323 | * @return the new adapter. |
| 324 | * @see de.fzi.se.quality.parameters.OperationReference |
| 325 | * @generated |
| 326 | */ |
| 327 | public Adapter createOperationReferenceAdapter() { |
| 328 | return null; |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.InfrastructureOperationReference <em>Infrastructure Operation Reference</em>}'. |
| 333 | * <!-- begin-user-doc --> |
| 334 | * This default implementation returns null so that we can easily ignore cases; |
| 335 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 336 | * <!-- end-user-doc --> |
| 337 | * @return the new adapter. |
| 338 | * @see de.fzi.se.quality.parameters.InfrastructureOperationReference |
| 339 | * @generated |
| 340 | */ |
| 341 | public Adapter createInfrastructureOperationReferenceAdapter() { |
| 342 | return null; |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.BusinessOperationReference <em>Business Operation Reference</em>}'. |
| 347 | * <!-- begin-user-doc --> |
| 348 | * This default implementation returns null so that we can easily ignore cases; |
| 349 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 350 | * <!-- end-user-doc --> |
| 351 | * @return the new adapter. |
| 352 | * @see de.fzi.se.quality.parameters.BusinessOperationReference |
| 353 | * @generated |
| 354 | */ |
| 355 | public Adapter createBusinessOperationReferenceAdapter() { |
| 356 | return null; |
| 357 | } |
| 358 | |
| 359 | /** |
| 360 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.ComponentReference <em>Component Reference</em>}'. |
| 361 | * <!-- begin-user-doc --> |
| 362 | * This default implementation returns null so that we can easily ignore cases; |
| 363 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 364 | * <!-- end-user-doc --> |
| 365 | * @return the new adapter. |
| 366 | * @see de.fzi.se.quality.parameters.ComponentReference |
| 367 | * @generated |
| 368 | */ |
| 369 | public Adapter createComponentReferenceAdapter() { |
| 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 | * @return the new adapter. |
| 379 | * @generated |
| 380 | */ |
| 381 | public Adapter createEObjectAdapter() { |
| 382 | return null; |
| 383 | } |
| 384 | |
| 385 | } //PCMAdapterFactory |