| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package de.uka.ipd.sdq.pcm.designdecision.QualityProperties.util; |
| 8 | |
| 9 | import de.uka.ipd.sdq.pcm.designdecision.QualityProperties.*; |
| 10 | |
| 11 | import org.eclipse.emf.common.notify.Adapter; |
| 12 | import org.eclipse.emf.common.notify.Notifier; |
| 13 | |
| 14 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
| 15 | |
| 16 | import org.eclipse.emf.ecore.EObject; |
| 17 | |
| 18 | /** |
| 19 | * <!-- begin-user-doc --> |
| 20 | * The <b>Adapter Factory</b> for the model. |
| 21 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
| 22 | * <!-- end-user-doc --> |
| 23 | * @see de.uka.ipd.sdq.pcm.designdecision.QualityProperties.QualityPropertiesPackage |
| 24 | * @generated |
| 25 | */ |
| 26 | public class QualityPropertiesAdapterFactory extends AdapterFactoryImpl { |
| 27 | /** |
| 28 | * The cached model package. |
| 29 | * <!-- begin-user-doc --> |
| 30 | * <!-- end-user-doc --> |
| 31 | * @generated |
| 32 | */ |
| 33 | protected static QualityPropertiesPackage modelPackage; |
| 34 | |
| 35 | /** |
| 36 | * Creates an instance of the adapter factory. |
| 37 | * <!-- begin-user-doc --> |
| 38 | * <!-- end-user-doc --> |
| 39 | * @generated |
| 40 | */ |
| 41 | public QualityPropertiesAdapterFactory() { |
| 42 | if (modelPackage == null) { |
| 43 | modelPackage = QualityPropertiesPackage.eINSTANCE; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Returns whether this factory is applicable for the type of the object. |
| 49 | * <!-- begin-user-doc --> |
| 50 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
| 51 | * <!-- end-user-doc --> |
| 52 | * @return whether this factory is applicable for the type of the object. |
| 53 | * @generated |
| 54 | */ |
| 55 | @Override |
| 56 | public boolean isFactoryForType(Object object) { |
| 57 | if (object == modelPackage) { |
| 58 | return true; |
| 59 | } |
| 60 | if (object instanceof EObject) { |
| 61 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
| 62 | } |
| 63 | return false; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * The switch that delegates to the <code>createXXX</code> methods. |
| 68 | * <!-- begin-user-doc --> |
| 69 | * <!-- end-user-doc --> |
| 70 | * @generated |
| 71 | */ |
| 72 | protected QualityPropertiesSwitch<Adapter> modelSwitch = |
| 73 | new QualityPropertiesSwitch<Adapter>() { |
| 74 | @Override |
| 75 | public Adapter caseNumericQualityProperty(NumericQualityProperty object) { |
| 76 | return createNumericQualityPropertyAdapter(); |
| 77 | } |
| 78 | @Override |
| 79 | public Adapter caseConfidenceInterval(ConfidenceInterval object) { |
| 80 | return createConfidenceIntervalAdapter(); |
| 81 | } |
| 82 | @Override |
| 83 | public Adapter caseElementQualityProperty(ElementQualityProperty object) { |
| 84 | return createElementQualityPropertyAdapter(); |
| 85 | } |
| 86 | @Override |
| 87 | public Adapter caseIntegerQualityProperty(IntegerQualityProperty object) { |
| 88 | return createIntegerQualityPropertyAdapter(); |
| 89 | } |
| 90 | @Override |
| 91 | public Adapter caseDoubleQualityProperty(DoubleQualityProperty object) { |
| 92 | return createDoubleQualityPropertyAdapter(); |
| 93 | } |
| 94 | @Override |
| 95 | public Adapter caseQualityPrediction(QualityPrediction object) { |
| 96 | return createQualityPredictionAdapter(); |
| 97 | } |
| 98 | @Override |
| 99 | public Adapter caseQualityProperty(QualityProperty object) { |
| 100 | return createQualityPropertyAdapter(); |
| 101 | } |
| 102 | @Override |
| 103 | public Adapter defaultCase(EObject object) { |
| 104 | return createEObjectAdapter(); |
| 105 | } |
| 106 | }; |
| 107 | |
| 108 | /** |
| 109 | * Creates an adapter for the <code>target</code>. |
| 110 | * <!-- begin-user-doc --> |
| 111 | * <!-- end-user-doc --> |
| 112 | * @param target the object to adapt. |
| 113 | * @return the adapter for the <code>target</code>. |
| 114 | * @generated |
| 115 | */ |
| 116 | @Override |
| 117 | public Adapter createAdapter(Notifier target) { |
| 118 | return modelSwitch.doSwitch((EObject)target); |
| 119 | } |
| 120 | |
| 121 | |
| 122 | /** |
| 123 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.QualityProperties.NumericQualityProperty <em>Numeric Quality Property</em>}'. |
| 124 | * <!-- begin-user-doc --> |
| 125 | * This default implementation returns null so that we can easily ignore cases; |
| 126 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 127 | * <!-- end-user-doc --> |
| 128 | * @return the new adapter. |
| 129 | * @see de.uka.ipd.sdq.pcm.designdecision.QualityProperties.NumericQualityProperty |
| 130 | * @generated |
| 131 | */ |
| 132 | public Adapter createNumericQualityPropertyAdapter() { |
| 133 | return null; |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.QualityProperties.ConfidenceInterval <em>Confidence Interval</em>}'. |
| 138 | * <!-- begin-user-doc --> |
| 139 | * This default implementation returns null so that we can easily ignore cases; |
| 140 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 141 | * <!-- end-user-doc --> |
| 142 | * @return the new adapter. |
| 143 | * @see de.uka.ipd.sdq.pcm.designdecision.QualityProperties.ConfidenceInterval |
| 144 | * @generated |
| 145 | */ |
| 146 | public Adapter createConfidenceIntervalAdapter() { |
| 147 | return null; |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.QualityProperties.ElementQualityProperty <em>Element Quality Property</em>}'. |
| 152 | * <!-- begin-user-doc --> |
| 153 | * This default implementation returns null so that we can easily ignore cases; |
| 154 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 155 | * <!-- end-user-doc --> |
| 156 | * @return the new adapter. |
| 157 | * @see de.uka.ipd.sdq.pcm.designdecision.QualityProperties.ElementQualityProperty |
| 158 | * @generated |
| 159 | */ |
| 160 | public Adapter createElementQualityPropertyAdapter() { |
| 161 | return null; |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.QualityProperties.IntegerQualityProperty <em>Integer Quality Property</em>}'. |
| 166 | * <!-- begin-user-doc --> |
| 167 | * This default implementation returns null so that we can easily ignore cases; |
| 168 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 169 | * <!-- end-user-doc --> |
| 170 | * @return the new adapter. |
| 171 | * @see de.uka.ipd.sdq.pcm.designdecision.QualityProperties.IntegerQualityProperty |
| 172 | * @generated |
| 173 | */ |
| 174 | public Adapter createIntegerQualityPropertyAdapter() { |
| 175 | return null; |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.QualityProperties.DoubleQualityProperty <em>Double Quality Property</em>}'. |
| 180 | * <!-- begin-user-doc --> |
| 181 | * This default implementation returns null so that we can easily ignore cases; |
| 182 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 183 | * <!-- end-user-doc --> |
| 184 | * @return the new adapter. |
| 185 | * @see de.uka.ipd.sdq.pcm.designdecision.QualityProperties.DoubleQualityProperty |
| 186 | * @generated |
| 187 | */ |
| 188 | public Adapter createDoubleQualityPropertyAdapter() { |
| 189 | return null; |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.QualityProperties.QualityPrediction <em>Quality Prediction</em>}'. |
| 194 | * <!-- begin-user-doc --> |
| 195 | * This default implementation returns null so that we can easily ignore cases; |
| 196 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 197 | * <!-- end-user-doc --> |
| 198 | * @return the new adapter. |
| 199 | * @see de.uka.ipd.sdq.pcm.designdecision.QualityProperties.QualityPrediction |
| 200 | * @generated |
| 201 | */ |
| 202 | public Adapter createQualityPredictionAdapter() { |
| 203 | return null; |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.QualityProperties.QualityProperty <em>Quality Property</em>}'. |
| 208 | * <!-- begin-user-doc --> |
| 209 | * This default implementation returns null so that we can easily ignore cases; |
| 210 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
| 211 | * <!-- end-user-doc --> |
| 212 | * @return the new adapter. |
| 213 | * @see de.uka.ipd.sdq.pcm.designdecision.QualityProperties.QualityProperty |
| 214 | * @generated |
| 215 | */ |
| 216 | public Adapter createQualityPropertyAdapter() { |
| 217 | return null; |
| 218 | } |
| 219 | |
| 220 | /** |
| 221 | * Creates a new adapter for the default case. |
| 222 | * <!-- begin-user-doc --> |
| 223 | * This default implementation returns null. |
| 224 | * <!-- end-user-doc --> |
| 225 | * @return the new adapter. |
| 226 | * @generated |
| 227 | */ |
| 228 | public Adapter createEObjectAdapter() { |
| 229 | return null; |
| 230 | } |
| 231 | |
| 232 | } //QualityPropertiesAdapterFactory |