| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package de.fzi.se.quality.parameters.util; |
| 8 | |
| 9 | import de.fzi.se.quality.parameters.*; |
| 10 | |
| 11 | import de.uka.ipd.sdq.identifier.Identifier; |
| 12 | |
| 13 | import org.eclipse.emf.common.notify.Adapter; |
| 14 | import org.eclipse.emf.common.notify.Notifier; |
| 15 | |
| 16 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
| 17 | |
| 18 | import org.eclipse.emf.ecore.EObject; |
| 19 | |
| 20 | /** |
| 21 | * <!-- begin-user-doc --> |
| 22 | * The <b>Adapter Factory</b> for the model. |
| 23 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
| 24 | * <!-- end-user-doc --> |
| 25 | * @see de.fzi.se.quality.parameters.ParametersPackage |
| 26 | * @generated |
| 27 | */ |
| 28 | public class ParametersAdapterFactory extends AdapterFactoryImpl { |
| 29 | /** |
| 30 | * The cached model package. |
| 31 | * <!-- begin-user-doc --> |
| 32 | * <!-- end-user-doc --> |
| 33 | * @generated |
| 34 | */ |
| 35 | protected static ParametersPackage modelPackage; |
| 36 | |
| 37 | /** |
| 38 | * Creates an instance of the adapter factory. |
| 39 | * <!-- begin-user-doc --> |
| 40 | * <!-- end-user-doc --> |
| 41 | * @generated |
| 42 | */ |
| 43 | public ParametersAdapterFactory() { |
| 44 | if (modelPackage == null) { |
| 45 | modelPackage = ParametersPackage.eINSTANCE; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Returns whether this factory is applicable for the type of the object. |
| 51 | * <!-- begin-user-doc --> |
| 52 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
| 53 | * <!-- end-user-doc --> |
| 54 | * @return whether this factory is applicable for the type of the object. |
| 55 | * @generated |
| 56 | */ |
| 57 | @Override |
| 58 | public boolean isFactoryForType(Object object) { |
| 59 | if (object == modelPackage) { |
| 60 | return true; |
| 61 | } |
| 62 | if (object instanceof EObject) { |
| 63 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
| 64 | } |
| 65 | return false; |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * The switch that delegates to the <code>createXXX</code> methods. |
| 70 | * <!-- begin-user-doc --> |
| 71 | * <!-- end-user-doc --> |
| 72 | * @generated |
| 73 | */ |
| 74 | protected ParametersSwitch<Adapter> modelSwitch = |
| 75 | new ParametersSwitch<Adapter>() { |
| 76 | @Override |
| 77 | public Adapter caseParameterPartition(ParameterPartition object) { |
| 78 | return createParameterPartitionAdapter(); |
| 79 | } |
| 80 | @Override |
| 81 | public Adapter caseParameterValue(ParameterValue object) { |
| 82 | return createParameterValueAdapter(); |
| 83 | } |
| 84 | @Override |
| 85 | public Adapter caseParameterInstance(ParameterInstance object) { |
| 86 | return createParameterInstanceAdapter(); |
| 87 | } |
| 88 | @Override |
| 89 | public Adapter caseCallInstance(CallInstance object) { |
| 90 | return createCallInstanceAdapter(); |
| 91 | } |
| 92 | @Override |
| 93 | public Adapter caseOperationReference(OperationReference object) { |
| 94 | return createOperationReferenceAdapter(); |
| 95 | } |
| 96 | @Override |
| 97 | public Adapter caseComponentInstance(ComponentInstance object) { |
| 98 | return createComponentInstanceAdapter(); |
| 99 | } |
| 100 | @Override |
| 101 | public Adapter caseComponentReference(ComponentReference object) { |
| 102 | return createComponentReferenceAdapter(); |
| 103 | } |
| 104 | @Override |
| 105 | public Adapter caseInfrastructureOperationReference(InfrastructureOperationReference object) { |
| 106 | return createInfrastructureOperationReferenceAdapter(); |
| 107 | } |
| 108 | @Override |
| 109 | public Adapter caseBusinessOperationReference(BusinessOperationReference object) { |
| 110 | return createBusinessOperationReferenceAdapter(); |
| 111 | } |
| 112 | @Override |
| 113 | public Adapter caseParameterReference(ParameterReference object) { |
| 114 | return createParameterReferenceAdapter(); |
| 115 | } |
| 116 | @Override |
| 117 | public Adapter caseIdentifier(Identifier object) { |
| 118 | return createIdentifierAdapter(); |
| 119 | } |
| 120 | @Override |
| 121 | public Adapter defaultCase(EObject object) { |
| 122 | return createEObjectAdapter(); |
| 123 | } |
| 124 | }; |
| 125 | |
| 126 | /** |
| 127 | * Creates an adapter for the <code>target</code>. |
| 128 | * <!-- begin-user-doc --> |
| 129 | * <!-- end-user-doc --> |
| 130 | * @param target the object to adapt. |
| 131 | * @return the adapter for the <code>target</code>. |
| 132 | * @generated |
| 133 | */ |
| 134 | @Override |
| 135 | public Adapter createAdapter(Notifier target) { |
| 136 | return modelSwitch.doSwitch((EObject)target); |
| 137 | } |
| 138 | |
| 139 | |
| 140 | /** |
| 141 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.ParameterPartition <em>Parameter Partition</em>}'. |
| 142 | * <!-- begin-user-doc --> |
| 143 | * This default implementation returns null so that we can easily ignore cases; |
| 144 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 145 | * <!-- end-user-doc --> |
| 146 | * @return the new adapter. |
| 147 | * @see de.fzi.se.quality.parameters.ParameterPartition |
| 148 | * @generated |
| 149 | */ |
| 150 | public Adapter createParameterPartitionAdapter() { |
| 151 | return null; |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.ParameterValue <em>Parameter Value</em>}'. |
| 156 | * <!-- begin-user-doc --> |
| 157 | * This default implementation returns null so that we can easily ignore cases; |
| 158 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 159 | * <!-- end-user-doc --> |
| 160 | * @return the new adapter. |
| 161 | * @see de.fzi.se.quality.parameters.ParameterValue |
| 162 | * @generated |
| 163 | */ |
| 164 | public Adapter createParameterValueAdapter() { |
| 165 | return null; |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.ParameterInstance <em>Parameter Instance</em>}'. |
| 170 | * <!-- begin-user-doc --> |
| 171 | * This default implementation returns null so that we can easily ignore cases; |
| 172 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 173 | * <!-- end-user-doc --> |
| 174 | * @return the new adapter. |
| 175 | * @see de.fzi.se.quality.parameters.ParameterInstance |
| 176 | * @generated |
| 177 | */ |
| 178 | public Adapter createParameterInstanceAdapter() { |
| 179 | return null; |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.CallInstance <em>Call Instance</em>}'. |
| 184 | * <!-- begin-user-doc --> |
| 185 | * This default implementation returns null so that we can easily ignore cases; |
| 186 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 187 | * <!-- end-user-doc --> |
| 188 | * @return the new adapter. |
| 189 | * @see de.fzi.se.quality.parameters.CallInstance |
| 190 | * @generated |
| 191 | */ |
| 192 | public Adapter createCallInstanceAdapter() { |
| 193 | return null; |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.OperationReference <em>Operation Reference</em>}'. |
| 198 | * <!-- begin-user-doc --> |
| 199 | * This default implementation returns null so that we can easily ignore cases; |
| 200 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 201 | * <!-- end-user-doc --> |
| 202 | * @return the new adapter. |
| 203 | * @see de.fzi.se.quality.parameters.OperationReference |
| 204 | * @generated |
| 205 | */ |
| 206 | public Adapter createOperationReferenceAdapter() { |
| 207 | return null; |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.ComponentInstance <em>Component Instance</em>}'. |
| 212 | * <!-- begin-user-doc --> |
| 213 | * This default implementation returns null so that we can easily ignore cases; |
| 214 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 215 | * <!-- end-user-doc --> |
| 216 | * @return the new adapter. |
| 217 | * @see de.fzi.se.quality.parameters.ComponentInstance |
| 218 | * @generated |
| 219 | */ |
| 220 | public Adapter createComponentInstanceAdapter() { |
| 221 | return null; |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.ComponentReference <em>Component Reference</em>}'. |
| 226 | * <!-- begin-user-doc --> |
| 227 | * This default implementation returns null so that we can easily ignore cases; |
| 228 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 229 | * <!-- end-user-doc --> |
| 230 | * @return the new adapter. |
| 231 | * @see de.fzi.se.quality.parameters.ComponentReference |
| 232 | * @generated |
| 233 | */ |
| 234 | public Adapter createComponentReferenceAdapter() { |
| 235 | return null; |
| 236 | } |
| 237 | |
| 238 | /** |
| 239 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.InfrastructureOperationReference <em>Infrastructure Operation Reference</em>}'. |
| 240 | * <!-- begin-user-doc --> |
| 241 | * This default implementation returns null so that we can easily ignore cases; |
| 242 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 243 | * <!-- end-user-doc --> |
| 244 | * @return the new adapter. |
| 245 | * @see de.fzi.se.quality.parameters.InfrastructureOperationReference |
| 246 | * @generated |
| 247 | */ |
| 248 | public Adapter createInfrastructureOperationReferenceAdapter() { |
| 249 | return null; |
| 250 | } |
| 251 | |
| 252 | /** |
| 253 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.BusinessOperationReference <em>Business Operation Reference</em>}'. |
| 254 | * <!-- begin-user-doc --> |
| 255 | * This default implementation returns null so that we can easily ignore cases; |
| 256 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 257 | * <!-- end-user-doc --> |
| 258 | * @return the new adapter. |
| 259 | * @see de.fzi.se.quality.parameters.BusinessOperationReference |
| 260 | * @generated |
| 261 | */ |
| 262 | public Adapter createBusinessOperationReferenceAdapter() { |
| 263 | return null; |
| 264 | } |
| 265 | |
| 266 | /** |
| 267 | * Creates a new adapter for an object of class '{@link de.fzi.se.quality.parameters.ParameterReference <em>Parameter Reference</em>}'. |
| 268 | * <!-- begin-user-doc --> |
| 269 | * This default implementation returns null so that we can easily ignore cases; |
| 270 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 271 | * <!-- end-user-doc --> |
| 272 | * @return the new adapter. |
| 273 | * @see de.fzi.se.quality.parameters.ParameterReference |
| 274 | * @generated |
| 275 | */ |
| 276 | public Adapter createParameterReferenceAdapter() { |
| 277 | return null; |
| 278 | } |
| 279 | |
| 280 | /** |
| 281 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'. |
| 282 | * <!-- begin-user-doc --> |
| 283 | * This default implementation returns null so that we can easily ignore cases; |
| 284 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 285 | * <!-- end-user-doc --> |
| 286 | * @return the new adapter. |
| 287 | * @see de.uka.ipd.sdq.identifier.Identifier |
| 288 | * @generated |
| 289 | */ |
| 290 | public Adapter createIdentifierAdapter() { |
| 291 | return null; |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * Creates a new adapter for the default case. |
| 296 | * <!-- begin-user-doc --> |
| 297 | * This default implementation returns null. |
| 298 | * <!-- end-user-doc --> |
| 299 | * @return the new adapter. |
| 300 | * @generated |
| 301 | */ |
| 302 | public Adapter createEObjectAdapter() { |
| 303 | return null; |
| 304 | } |
| 305 | |
| 306 | } //ParametersAdapterFactory |