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