| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package de.uka.ipd.sdq.sensitivity.impl; |
| 8 | |
| 9 | import de.uka.ipd.sdq.pcm.parameter.VariableCharacterisationType; |
| 10 | |
| 11 | import de.uka.ipd.sdq.pcm.repository.BasicComponent; |
| 12 | |
| 13 | import de.uka.ipd.sdq.pcm.usagemodel.EntryLevelSystemCall; |
| 14 | |
| 15 | import de.uka.ipd.sdq.sensitivity.SensitivityPackage; |
| 16 | import de.uka.ipd.sdq.sensitivity.VariableUsageParameter; |
| 17 | import de.uka.ipd.sdq.sensitivity.VariableUsageType; |
| 18 | |
| 19 | import de.uka.ipd.sdq.sensitivity.util.SensitivityValidator; |
| 20 | |
| 21 | import java.util.Map; |
| 22 | |
| 23 | import org.eclipse.emf.common.notify.Notification; |
| 24 | |
| 25 | import org.eclipse.emf.common.util.BasicDiagnostic; |
| 26 | import org.eclipse.emf.common.util.Diagnostic; |
| 27 | import org.eclipse.emf.common.util.DiagnosticChain; |
| 28 | |
| 29 | import org.eclipse.emf.ecore.EClass; |
| 30 | import org.eclipse.emf.ecore.InternalEObject; |
| 31 | |
| 32 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| 33 | |
| 34 | import org.eclipse.emf.ecore.plugin.EcorePlugin; |
| 35 | |
| 36 | import org.eclipse.emf.ecore.util.EObjectValidator; |
| 37 | |
| 38 | /** |
| 39 | * <!-- begin-user-doc --> |
| 40 | * An implementation of the model object '<em><b>Variable Usage Parameter</b></em>'. |
| 41 | * <!-- end-user-doc --> |
| 42 | * <p> |
| 43 | * The following features are implemented: |
| 44 | * <ul> |
| 45 | * <li>{@link de.uka.ipd.sdq.sensitivity.impl.VariableUsageParameterImpl#getVariableName <em>Variable Name</em>}</li> |
| 46 | * <li>{@link de.uka.ipd.sdq.sensitivity.impl.VariableUsageParameterImpl#getEntryLevelSystemCall__VariableUsageParameter <em>Entry Level System Call Variable Usage Parameter</em>}</li> |
| 47 | * <li>{@link de.uka.ipd.sdq.sensitivity.impl.VariableUsageParameterImpl#getVariableCharacterisationType__VariableUsageParameter <em>Variable Characterisation Type Variable Usage Parameter</em>}</li> |
| 48 | * <li>{@link de.uka.ipd.sdq.sensitivity.impl.VariableUsageParameterImpl#getVariableUsageType__VariableUsageParameter <em>Variable Usage Type Variable Usage Parameter</em>}</li> |
| 49 | * <li>{@link de.uka.ipd.sdq.sensitivity.impl.VariableUsageParameterImpl#getBasicComponent__VariableUsageParameter <em>Basic Component Variable Usage Parameter</em>}</li> |
| 50 | * </ul> |
| 51 | * </p> |
| 52 | * |
| 53 | * @generated |
| 54 | */ |
| 55 | public class VariableUsageParameterImpl extends SingleSensitivityParameterImpl implements VariableUsageParameter { |
| 56 | /** |
| 57 | * The default value of the '{@link #getVariableName() <em>Variable Name</em>}' attribute. |
| 58 | * <!-- begin-user-doc --> |
| 59 | * <!-- end-user-doc --> |
| 60 | * @see #getVariableName() |
| 61 | * @generated |
| 62 | * @ordered |
| 63 | */ |
| 64 | protected static final String VARIABLE_NAME_EDEFAULT = null; |
| 65 | |
| 66 | /** |
| 67 | * The cached value of the '{@link #getVariableName() <em>Variable Name</em>}' attribute. |
| 68 | * <!-- begin-user-doc --> |
| 69 | * <!-- end-user-doc --> |
| 70 | * @see #getVariableName() |
| 71 | * @generated |
| 72 | * @ordered |
| 73 | */ |
| 74 | protected String variableName = VARIABLE_NAME_EDEFAULT; |
| 75 | |
| 76 | /** |
| 77 | * The cached value of the '{@link #getEntryLevelSystemCall__VariableUsageParameter() <em>Entry Level System Call Variable Usage Parameter</em>}' reference. |
| 78 | * <!-- begin-user-doc --> |
| 79 | * <!-- end-user-doc --> |
| 80 | * @see #getEntryLevelSystemCall__VariableUsageParameter() |
| 81 | * @generated |
| 82 | * @ordered |
| 83 | */ |
| 84 | protected EntryLevelSystemCall entryLevelSystemCall__VariableUsageParameter; |
| 85 | |
| 86 | /** |
| 87 | * The default value of the '{@link #getVariableCharacterisationType__VariableUsageParameter() <em>Variable Characterisation Type Variable Usage Parameter</em>}' attribute. |
| 88 | * <!-- begin-user-doc --> |
| 89 | * <!-- end-user-doc --> |
| 90 | * @see #getVariableCharacterisationType__VariableUsageParameter() |
| 91 | * @generated |
| 92 | * @ordered |
| 93 | */ |
| 94 | protected static final VariableCharacterisationType VARIABLE_CHARACTERISATION_TYPE_VARIABLE_USAGE_PARAMETER_EDEFAULT = VariableCharacterisationType.STRUCTURE; |
| 95 | |
| 96 | /** |
| 97 | * The cached value of the '{@link #getVariableCharacterisationType__VariableUsageParameter() <em>Variable Characterisation Type Variable Usage Parameter</em>}' attribute. |
| 98 | * <!-- begin-user-doc --> |
| 99 | * <!-- end-user-doc --> |
| 100 | * @see #getVariableCharacterisationType__VariableUsageParameter() |
| 101 | * @generated |
| 102 | * @ordered |
| 103 | */ |
| 104 | protected VariableCharacterisationType variableCharacterisationType__VariableUsageParameter = VARIABLE_CHARACTERISATION_TYPE_VARIABLE_USAGE_PARAMETER_EDEFAULT; |
| 105 | |
| 106 | /** |
| 107 | * The default value of the '{@link #getVariableUsageType__VariableUsageParameter() <em>Variable Usage Type Variable Usage Parameter</em>}' attribute. |
| 108 | * <!-- begin-user-doc --> |
| 109 | * <!-- end-user-doc --> |
| 110 | * @see #getVariableUsageType__VariableUsageParameter() |
| 111 | * @generated |
| 112 | * @ordered |
| 113 | */ |
| 114 | protected static final VariableUsageType VARIABLE_USAGE_TYPE_VARIABLE_USAGE_PARAMETER_EDEFAULT = VariableUsageType.SYSTEM_CALL_INPUT; |
| 115 | |
| 116 | /** |
| 117 | * The cached value of the '{@link #getVariableUsageType__VariableUsageParameter() <em>Variable Usage Type Variable Usage Parameter</em>}' attribute. |
| 118 | * <!-- begin-user-doc --> |
| 119 | * <!-- end-user-doc --> |
| 120 | * @see #getVariableUsageType__VariableUsageParameter() |
| 121 | * @generated |
| 122 | * @ordered |
| 123 | */ |
| 124 | protected VariableUsageType variableUsageType__VariableUsageParameter = VARIABLE_USAGE_TYPE_VARIABLE_USAGE_PARAMETER_EDEFAULT; |
| 125 | |
| 126 | /** |
| 127 | * The cached value of the '{@link #getBasicComponent__VariableUsageParameter() <em>Basic Component Variable Usage Parameter</em>}' reference. |
| 128 | * <!-- begin-user-doc --> |
| 129 | * <!-- end-user-doc --> |
| 130 | * @see #getBasicComponent__VariableUsageParameter() |
| 131 | * @generated |
| 132 | * @ordered |
| 133 | */ |
| 134 | protected BasicComponent basicComponent__VariableUsageParameter; |
| 135 | |
| 136 | /** |
| 137 | * <!-- begin-user-doc --> |
| 138 | * <!-- end-user-doc --> |
| 139 | * @generated |
| 140 | */ |
| 141 | protected VariableUsageParameterImpl() { |
| 142 | super(); |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * <!-- begin-user-doc --> |
| 147 | * <!-- end-user-doc --> |
| 148 | * @generated |
| 149 | */ |
| 150 | @Override |
| 151 | protected EClass eStaticClass() { |
| 152 | return SensitivityPackage.Literals.VARIABLE_USAGE_PARAMETER; |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * <!-- begin-user-doc --> |
| 157 | * <!-- end-user-doc --> |
| 158 | * @generated |
| 159 | */ |
| 160 | public String getVariableName() { |
| 161 | return variableName; |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * <!-- begin-user-doc --> |
| 166 | * <!-- end-user-doc --> |
| 167 | * @generated |
| 168 | */ |
| 169 | public void setVariableName(String newVariableName) { |
| 170 | String oldVariableName = variableName; |
| 171 | variableName = newVariableName; |
| 172 | if (eNotificationRequired()) |
| 173 | eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_NAME, oldVariableName, variableName)); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * <!-- begin-user-doc --> |
| 178 | * <!-- end-user-doc --> |
| 179 | * @generated |
| 180 | */ |
| 181 | public EntryLevelSystemCall getEntryLevelSystemCall__VariableUsageParameter() { |
| 182 | if (entryLevelSystemCall__VariableUsageParameter != null && entryLevelSystemCall__VariableUsageParameter.eIsProxy()) { |
| 183 | InternalEObject oldEntryLevelSystemCall__VariableUsageParameter = (InternalEObject)entryLevelSystemCall__VariableUsageParameter; |
| 184 | entryLevelSystemCall__VariableUsageParameter = (EntryLevelSystemCall)eResolveProxy(oldEntryLevelSystemCall__VariableUsageParameter); |
| 185 | if (entryLevelSystemCall__VariableUsageParameter != oldEntryLevelSystemCall__VariableUsageParameter) { |
| 186 | if (eNotificationRequired()) |
| 187 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SensitivityPackage.VARIABLE_USAGE_PARAMETER__ENTRY_LEVEL_SYSTEM_CALL_VARIABLE_USAGE_PARAMETER, oldEntryLevelSystemCall__VariableUsageParameter, entryLevelSystemCall__VariableUsageParameter)); |
| 188 | } |
| 189 | } |
| 190 | return entryLevelSystemCall__VariableUsageParameter; |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * <!-- begin-user-doc --> |
| 195 | * <!-- end-user-doc --> |
| 196 | * @generated |
| 197 | */ |
| 198 | public EntryLevelSystemCall basicGetEntryLevelSystemCall__VariableUsageParameter() { |
| 199 | return entryLevelSystemCall__VariableUsageParameter; |
| 200 | } |
| 201 | |
| 202 | /** |
| 203 | * <!-- begin-user-doc --> |
| 204 | * <!-- end-user-doc --> |
| 205 | * @generated |
| 206 | */ |
| 207 | public void setEntryLevelSystemCall__VariableUsageParameter(EntryLevelSystemCall newEntryLevelSystemCall__VariableUsageParameter) { |
| 208 | EntryLevelSystemCall oldEntryLevelSystemCall__VariableUsageParameter = entryLevelSystemCall__VariableUsageParameter; |
| 209 | entryLevelSystemCall__VariableUsageParameter = newEntryLevelSystemCall__VariableUsageParameter; |
| 210 | if (eNotificationRequired()) |
| 211 | eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.VARIABLE_USAGE_PARAMETER__ENTRY_LEVEL_SYSTEM_CALL_VARIABLE_USAGE_PARAMETER, oldEntryLevelSystemCall__VariableUsageParameter, entryLevelSystemCall__VariableUsageParameter)); |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * <!-- begin-user-doc --> |
| 216 | * <!-- end-user-doc --> |
| 217 | * @generated |
| 218 | */ |
| 219 | public VariableCharacterisationType getVariableCharacterisationType__VariableUsageParameter() { |
| 220 | return variableCharacterisationType__VariableUsageParameter; |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * <!-- begin-user-doc --> |
| 225 | * <!-- end-user-doc --> |
| 226 | * @generated |
| 227 | */ |
| 228 | public void setVariableCharacterisationType__VariableUsageParameter(VariableCharacterisationType newVariableCharacterisationType__VariableUsageParameter) { |
| 229 | VariableCharacterisationType oldVariableCharacterisationType__VariableUsageParameter = variableCharacterisationType__VariableUsageParameter; |
| 230 | variableCharacterisationType__VariableUsageParameter = newVariableCharacterisationType__VariableUsageParameter == null ? VARIABLE_CHARACTERISATION_TYPE_VARIABLE_USAGE_PARAMETER_EDEFAULT : newVariableCharacterisationType__VariableUsageParameter; |
| 231 | if (eNotificationRequired()) |
| 232 | eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_CHARACTERISATION_TYPE_VARIABLE_USAGE_PARAMETER, oldVariableCharacterisationType__VariableUsageParameter, variableCharacterisationType__VariableUsageParameter)); |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * <!-- begin-user-doc --> |
| 237 | * <!-- end-user-doc --> |
| 238 | * @generated |
| 239 | */ |
| 240 | public VariableUsageType getVariableUsageType__VariableUsageParameter() { |
| 241 | return variableUsageType__VariableUsageParameter; |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * <!-- begin-user-doc --> |
| 246 | * <!-- end-user-doc --> |
| 247 | * @generated |
| 248 | */ |
| 249 | public void setVariableUsageType__VariableUsageParameter(VariableUsageType newVariableUsageType__VariableUsageParameter) { |
| 250 | VariableUsageType oldVariableUsageType__VariableUsageParameter = variableUsageType__VariableUsageParameter; |
| 251 | variableUsageType__VariableUsageParameter = newVariableUsageType__VariableUsageParameter == null ? VARIABLE_USAGE_TYPE_VARIABLE_USAGE_PARAMETER_EDEFAULT : newVariableUsageType__VariableUsageParameter; |
| 252 | if (eNotificationRequired()) |
| 253 | eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_USAGE_TYPE_VARIABLE_USAGE_PARAMETER, oldVariableUsageType__VariableUsageParameter, variableUsageType__VariableUsageParameter)); |
| 254 | } |
| 255 | |
| 256 | /** |
| 257 | * <!-- begin-user-doc --> |
| 258 | * <!-- end-user-doc --> |
| 259 | * @generated |
| 260 | */ |
| 261 | public BasicComponent getBasicComponent__VariableUsageParameter() { |
| 262 | if (basicComponent__VariableUsageParameter != null && basicComponent__VariableUsageParameter.eIsProxy()) { |
| 263 | InternalEObject oldBasicComponent__VariableUsageParameter = (InternalEObject)basicComponent__VariableUsageParameter; |
| 264 | basicComponent__VariableUsageParameter = (BasicComponent)eResolveProxy(oldBasicComponent__VariableUsageParameter); |
| 265 | if (basicComponent__VariableUsageParameter != oldBasicComponent__VariableUsageParameter) { |
| 266 | if (eNotificationRequired()) |
| 267 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, SensitivityPackage.VARIABLE_USAGE_PARAMETER__BASIC_COMPONENT_VARIABLE_USAGE_PARAMETER, oldBasicComponent__VariableUsageParameter, basicComponent__VariableUsageParameter)); |
| 268 | } |
| 269 | } |
| 270 | return basicComponent__VariableUsageParameter; |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * <!-- begin-user-doc --> |
| 275 | * <!-- end-user-doc --> |
| 276 | * @generated |
| 277 | */ |
| 278 | public BasicComponent basicGetBasicComponent__VariableUsageParameter() { |
| 279 | return basicComponent__VariableUsageParameter; |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | * <!-- begin-user-doc --> |
| 284 | * <!-- end-user-doc --> |
| 285 | * @generated |
| 286 | */ |
| 287 | public void setBasicComponent__VariableUsageParameter(BasicComponent newBasicComponent__VariableUsageParameter) { |
| 288 | BasicComponent oldBasicComponent__VariableUsageParameter = basicComponent__VariableUsageParameter; |
| 289 | basicComponent__VariableUsageParameter = newBasicComponent__VariableUsageParameter; |
| 290 | if (eNotificationRequired()) |
| 291 | eNotify(new ENotificationImpl(this, Notification.SET, SensitivityPackage.VARIABLE_USAGE_PARAMETER__BASIC_COMPONENT_VARIABLE_USAGE_PARAMETER, oldBasicComponent__VariableUsageParameter, basicComponent__VariableUsageParameter)); |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * <!-- begin-user-doc --> |
| 296 | * <!-- end-user-doc --> |
| 297 | * @generated |
| 298 | */ |
| 299 | public boolean SystemCallParameterMustHaveStringSequence(DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 300 | // TODO: implement this method |
| 301 | // -> specify the condition that violates the invariant |
| 302 | // -> verify the details of the diagnostic, including severity and message |
| 303 | // Ensure that you remove @generated or mark it @generated NOT |
| 304 | if (false) { |
| 305 | if (diagnostics != null) { |
| 306 | diagnostics.add |
| 307 | (new BasicDiagnostic |
| 308 | (Diagnostic.ERROR, |
| 309 | SensitivityValidator.DIAGNOSTIC_SOURCE, |
| 310 | SensitivityValidator.VARIABLE_USAGE_PARAMETER__SYSTEM_CALL_PARAMETER_MUST_HAVE_STRING_SEQUENCE, |
| 311 | EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "SystemCallParameterMustHaveStringSequence", EObjectValidator.getObjectLabel(this, context) }), |
| 312 | new Object [] { this })); |
| 313 | } |
| 314 | return false; |
| 315 | } |
| 316 | return true; |
| 317 | } |
| 318 | |
| 319 | /** |
| 320 | * <!-- begin-user-doc --> |
| 321 | * <!-- end-user-doc --> |
| 322 | * @generated |
| 323 | */ |
| 324 | @Override |
| 325 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| 326 | switch (featureID) { |
| 327 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_NAME: |
| 328 | return getVariableName(); |
| 329 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__ENTRY_LEVEL_SYSTEM_CALL_VARIABLE_USAGE_PARAMETER: |
| 330 | if (resolve) return getEntryLevelSystemCall__VariableUsageParameter(); |
| 331 | return basicGetEntryLevelSystemCall__VariableUsageParameter(); |
| 332 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_CHARACTERISATION_TYPE_VARIABLE_USAGE_PARAMETER: |
| 333 | return getVariableCharacterisationType__VariableUsageParameter(); |
| 334 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_USAGE_TYPE_VARIABLE_USAGE_PARAMETER: |
| 335 | return getVariableUsageType__VariableUsageParameter(); |
| 336 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__BASIC_COMPONENT_VARIABLE_USAGE_PARAMETER: |
| 337 | if (resolve) return getBasicComponent__VariableUsageParameter(); |
| 338 | return basicGetBasicComponent__VariableUsageParameter(); |
| 339 | } |
| 340 | return super.eGet(featureID, resolve, coreType); |
| 341 | } |
| 342 | |
| 343 | /** |
| 344 | * <!-- begin-user-doc --> |
| 345 | * <!-- end-user-doc --> |
| 346 | * @generated |
| 347 | */ |
| 348 | @Override |
| 349 | public void eSet(int featureID, Object newValue) { |
| 350 | switch (featureID) { |
| 351 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_NAME: |
| 352 | setVariableName((String)newValue); |
| 353 | return; |
| 354 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__ENTRY_LEVEL_SYSTEM_CALL_VARIABLE_USAGE_PARAMETER: |
| 355 | setEntryLevelSystemCall__VariableUsageParameter((EntryLevelSystemCall)newValue); |
| 356 | return; |
| 357 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_CHARACTERISATION_TYPE_VARIABLE_USAGE_PARAMETER: |
| 358 | setVariableCharacterisationType__VariableUsageParameter((VariableCharacterisationType)newValue); |
| 359 | return; |
| 360 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_USAGE_TYPE_VARIABLE_USAGE_PARAMETER: |
| 361 | setVariableUsageType__VariableUsageParameter((VariableUsageType)newValue); |
| 362 | return; |
| 363 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__BASIC_COMPONENT_VARIABLE_USAGE_PARAMETER: |
| 364 | setBasicComponent__VariableUsageParameter((BasicComponent)newValue); |
| 365 | return; |
| 366 | } |
| 367 | super.eSet(featureID, newValue); |
| 368 | } |
| 369 | |
| 370 | /** |
| 371 | * <!-- begin-user-doc --> |
| 372 | * <!-- end-user-doc --> |
| 373 | * @generated |
| 374 | */ |
| 375 | @Override |
| 376 | public void eUnset(int featureID) { |
| 377 | switch (featureID) { |
| 378 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_NAME: |
| 379 | setVariableName(VARIABLE_NAME_EDEFAULT); |
| 380 | return; |
| 381 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__ENTRY_LEVEL_SYSTEM_CALL_VARIABLE_USAGE_PARAMETER: |
| 382 | setEntryLevelSystemCall__VariableUsageParameter((EntryLevelSystemCall)null); |
| 383 | return; |
| 384 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_CHARACTERISATION_TYPE_VARIABLE_USAGE_PARAMETER: |
| 385 | setVariableCharacterisationType__VariableUsageParameter(VARIABLE_CHARACTERISATION_TYPE_VARIABLE_USAGE_PARAMETER_EDEFAULT); |
| 386 | return; |
| 387 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_USAGE_TYPE_VARIABLE_USAGE_PARAMETER: |
| 388 | setVariableUsageType__VariableUsageParameter(VARIABLE_USAGE_TYPE_VARIABLE_USAGE_PARAMETER_EDEFAULT); |
| 389 | return; |
| 390 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__BASIC_COMPONENT_VARIABLE_USAGE_PARAMETER: |
| 391 | setBasicComponent__VariableUsageParameter((BasicComponent)null); |
| 392 | return; |
| 393 | } |
| 394 | super.eUnset(featureID); |
| 395 | } |
| 396 | |
| 397 | /** |
| 398 | * <!-- begin-user-doc --> |
| 399 | * <!-- end-user-doc --> |
| 400 | * @generated |
| 401 | */ |
| 402 | @Override |
| 403 | public boolean eIsSet(int featureID) { |
| 404 | switch (featureID) { |
| 405 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_NAME: |
| 406 | return VARIABLE_NAME_EDEFAULT == null ? variableName != null : !VARIABLE_NAME_EDEFAULT.equals(variableName); |
| 407 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__ENTRY_LEVEL_SYSTEM_CALL_VARIABLE_USAGE_PARAMETER: |
| 408 | return entryLevelSystemCall__VariableUsageParameter != null; |
| 409 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_CHARACTERISATION_TYPE_VARIABLE_USAGE_PARAMETER: |
| 410 | return variableCharacterisationType__VariableUsageParameter != VARIABLE_CHARACTERISATION_TYPE_VARIABLE_USAGE_PARAMETER_EDEFAULT; |
| 411 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__VARIABLE_USAGE_TYPE_VARIABLE_USAGE_PARAMETER: |
| 412 | return variableUsageType__VariableUsageParameter != VARIABLE_USAGE_TYPE_VARIABLE_USAGE_PARAMETER_EDEFAULT; |
| 413 | case SensitivityPackage.VARIABLE_USAGE_PARAMETER__BASIC_COMPONENT_VARIABLE_USAGE_PARAMETER: |
| 414 | return basicComponent__VariableUsageParameter != null; |
| 415 | } |
| 416 | return super.eIsSet(featureID); |
| 417 | } |
| 418 | |
| 419 | /** |
| 420 | * <!-- begin-user-doc --> |
| 421 | * <!-- end-user-doc --> |
| 422 | * @generated |
| 423 | */ |
| 424 | @Override |
| 425 | public String toString() { |
| 426 | if (eIsProxy()) return super.toString(); |
| 427 | |
| 428 | StringBuffer result = new StringBuffer(super.toString()); |
| 429 | result.append(" (VariableName: "); |
| 430 | result.append(variableName); |
| 431 | result.append(", variableCharacterisationType__VariableUsageParameter: "); |
| 432 | result.append(variableCharacterisationType__VariableUsageParameter); |
| 433 | result.append(", variableUsageType__VariableUsageParameter: "); |
| 434 | result.append(variableUsageType__VariableUsageParameter); |
| 435 | result.append(')'); |
| 436 | return result.toString(); |
| 437 | } |
| 438 | |
| 439 | } //VariableUsageParameterImpl |