| 1 | /** |
| 2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
| 3 | * |
| 4 | * $Id$ |
| 5 | */ |
| 6 | package de.uka.ipd.sdq.pcm.reliability.impl; |
| 7 | |
| 8 | import java.util.Map; |
| 9 | |
| 10 | import org.eclipse.emf.common.notify.Notification; |
| 11 | import org.eclipse.emf.common.notify.NotificationChain; |
| 12 | import org.eclipse.emf.common.util.BasicDiagnostic; |
| 13 | import org.eclipse.emf.common.util.Diagnostic; |
| 14 | import org.eclipse.emf.common.util.DiagnosticChain; |
| 15 | import org.eclipse.emf.ecore.EClass; |
| 16 | import org.eclipse.emf.ecore.InternalEObject; |
| 17 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| 18 | import org.eclipse.emf.ecore.plugin.EcorePlugin; |
| 19 | import org.eclipse.emf.ecore.util.EObjectValidator; |
| 20 | import org.eclipse.emf.ecore.util.EcoreUtil; |
| 21 | import org.eclipse.ocl.ParserException; |
| 22 | import org.eclipse.ocl.ecore.Constraint; |
| 23 | import org.eclipse.ocl.ecore.OCL; |
| 24 | |
| 25 | import de.uka.ipd.sdq.pcm.reliability.InternalFailureOccurrenceDescription; |
| 26 | import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage; |
| 27 | import de.uka.ipd.sdq.pcm.reliability.SoftwareInducedFailureType; |
| 28 | import de.uka.ipd.sdq.pcm.reliability.util.ReliabilityValidator; |
| 29 | import de.uka.ipd.sdq.pcm.seff.InternalAction; |
| 30 | import de.uka.ipd.sdq.pcm.seff.SeffPackage; |
| 31 | |
| 32 | /** |
| 33 | * <!-- begin-user-doc --> |
| 34 | * An implementation of the model object '<em><b>Internal Failure Occurrence Description</b></em>'. |
| 35 | * <!-- end-user-doc --> |
| 36 | * <p> |
| 37 | * The following features are implemented: |
| 38 | * <ul> |
| 39 | * <li>{@link de.uka.ipd.sdq.pcm.reliability.impl.InternalFailureOccurrenceDescriptionImpl#getInternalAction__InternalFailureOccurrenceDescription <em>Internal Action Internal Failure Occurrence Description</em>}</li> |
| 40 | * <li>{@link de.uka.ipd.sdq.pcm.reliability.impl.InternalFailureOccurrenceDescriptionImpl#getSoftwareInducedFailureType__InternalFailureOccurrenceDescription <em>Software Induced Failure Type Internal Failure Occurrence Description</em>}</li> |
| 41 | * </ul> |
| 42 | * </p> |
| 43 | * |
| 44 | * @generated |
| 45 | */ |
| 46 | public class InternalFailureOccurrenceDescriptionImpl extends FailureOccurrenceDescriptionImpl implements InternalFailureOccurrenceDescription { |
| 47 | /** |
| 48 | * <!-- begin-user-doc --> |
| 49 | * <!-- end-user-doc --> |
| 50 | * @generated |
| 51 | */ |
| 52 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
| 53 | |
| 54 | /** |
| 55 | * The cached value of the '{@link #getSoftwareInducedFailureType__InternalFailureOccurrenceDescription() <em>Software Induced Failure Type Internal Failure Occurrence Description</em>}' reference. |
| 56 | * <!-- begin-user-doc --> |
| 57 | * <!-- end-user-doc --> |
| 58 | * @see #getSoftwareInducedFailureType__InternalFailureOccurrenceDescription() |
| 59 | * @generated |
| 60 | * @ordered |
| 61 | */ |
| 62 | protected SoftwareInducedFailureType softwareInducedFailureType__InternalFailureOccurrenceDescription; |
| 63 | |
| 64 | /** |
| 65 | * <!-- begin-user-doc --> |
| 66 | * <!-- end-user-doc --> |
| 67 | * @generated |
| 68 | */ |
| 69 | protected InternalFailureOccurrenceDescriptionImpl() { |
| 70 | super(); |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * <!-- begin-user-doc --> |
| 75 | * <!-- end-user-doc --> |
| 76 | * @generated |
| 77 | */ |
| 78 | @Override |
| 79 | protected EClass eStaticClass() { |
| 80 | return ReliabilityPackage.Literals.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * <!-- begin-user-doc --> |
| 85 | * <!-- end-user-doc --> |
| 86 | * @generated |
| 87 | */ |
| 88 | public SoftwareInducedFailureType getSoftwareInducedFailureType__InternalFailureOccurrenceDescription() { |
| 89 | if (softwareInducedFailureType__InternalFailureOccurrenceDescription != null && softwareInducedFailureType__InternalFailureOccurrenceDescription.eIsProxy()) { |
| 90 | InternalEObject oldSoftwareInducedFailureType__InternalFailureOccurrenceDescription = (InternalEObject)softwareInducedFailureType__InternalFailureOccurrenceDescription; |
| 91 | softwareInducedFailureType__InternalFailureOccurrenceDescription = (SoftwareInducedFailureType)eResolveProxy(oldSoftwareInducedFailureType__InternalFailureOccurrenceDescription); |
| 92 | if (softwareInducedFailureType__InternalFailureOccurrenceDescription != oldSoftwareInducedFailureType__InternalFailureOccurrenceDescription) { |
| 93 | if (eNotificationRequired()) |
| 94 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION, oldSoftwareInducedFailureType__InternalFailureOccurrenceDescription, softwareInducedFailureType__InternalFailureOccurrenceDescription)); |
| 95 | } |
| 96 | } |
| 97 | return softwareInducedFailureType__InternalFailureOccurrenceDescription; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * <!-- begin-user-doc --> |
| 102 | * <!-- end-user-doc --> |
| 103 | * @generated |
| 104 | */ |
| 105 | public SoftwareInducedFailureType basicGetSoftwareInducedFailureType__InternalFailureOccurrenceDescription() { |
| 106 | return softwareInducedFailureType__InternalFailureOccurrenceDescription; |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * <!-- begin-user-doc --> |
| 111 | * <!-- end-user-doc --> |
| 112 | * @generated |
| 113 | */ |
| 114 | public NotificationChain basicSetSoftwareInducedFailureType__InternalFailureOccurrenceDescription(SoftwareInducedFailureType newSoftwareInducedFailureType__InternalFailureOccurrenceDescription, NotificationChain msgs) { |
| 115 | SoftwareInducedFailureType oldSoftwareInducedFailureType__InternalFailureOccurrenceDescription = softwareInducedFailureType__InternalFailureOccurrenceDescription; |
| 116 | softwareInducedFailureType__InternalFailureOccurrenceDescription = newSoftwareInducedFailureType__InternalFailureOccurrenceDescription; |
| 117 | if (eNotificationRequired()) { |
| 118 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION, oldSoftwareInducedFailureType__InternalFailureOccurrenceDescription, newSoftwareInducedFailureType__InternalFailureOccurrenceDescription); |
| 119 | if (msgs == null) msgs = notification; else msgs.add(notification); |
| 120 | } |
| 121 | return msgs; |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * <!-- begin-user-doc --> |
| 126 | * <!-- end-user-doc --> |
| 127 | * @generated |
| 128 | */ |
| 129 | public void setSoftwareInducedFailureType__InternalFailureOccurrenceDescription(SoftwareInducedFailureType newSoftwareInducedFailureType__InternalFailureOccurrenceDescription) { |
| 130 | if (newSoftwareInducedFailureType__InternalFailureOccurrenceDescription != softwareInducedFailureType__InternalFailureOccurrenceDescription) { |
| 131 | NotificationChain msgs = null; |
| 132 | if (softwareInducedFailureType__InternalFailureOccurrenceDescription != null) |
| 133 | msgs = ((InternalEObject)softwareInducedFailureType__InternalFailureOccurrenceDescription).eInverseRemove(this, ReliabilityPackage.SOFTWARE_INDUCED_FAILURE_TYPE__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_SOFTWARE_INDUCED_FAILURE_TYPE, SoftwareInducedFailureType.class, msgs); |
| 134 | if (newSoftwareInducedFailureType__InternalFailureOccurrenceDescription != null) |
| 135 | msgs = ((InternalEObject)newSoftwareInducedFailureType__InternalFailureOccurrenceDescription).eInverseAdd(this, ReliabilityPackage.SOFTWARE_INDUCED_FAILURE_TYPE__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_SOFTWARE_INDUCED_FAILURE_TYPE, SoftwareInducedFailureType.class, msgs); |
| 136 | msgs = basicSetSoftwareInducedFailureType__InternalFailureOccurrenceDescription(newSoftwareInducedFailureType__InternalFailureOccurrenceDescription, msgs); |
| 137 | if (msgs != null) msgs.dispatch(); |
| 138 | } |
| 139 | else if (eNotificationRequired()) |
| 140 | eNotify(new ENotificationImpl(this, Notification.SET, ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION, newSoftwareInducedFailureType__InternalFailureOccurrenceDescription, newSoftwareInducedFailureType__InternalFailureOccurrenceDescription)); |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * The cached OCL expression body for the '{@link #NoResourceTimeoutFailureAllowedForInternalFailureOccurrenceDescription(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>No Resource Timeout Failure Allowed For Internal Failure Occurrence Description</em>}' operation. |
| 145 | * <!-- begin-user-doc --> |
| 146 | * <!-- end-user-doc --> |
| 147 | * @see #NoResourceTimeoutFailureAllowedForInternalFailureOccurrenceDescription(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) |
| 148 | * @generated |
| 149 | * @ordered |
| 150 | */ |
| 151 | protected static final String NO_RESOURCE_TIMEOUT_FAILURE_ALLOWED_FOR_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP = "not self.softwareInducedFailureType__InternalFailureOccurrenceDescription.oclIsTypeOf(ResourceTimeoutFailureType)"; |
| 152 | |
| 153 | /** |
| 154 | * The cached OCL invariant for the '{@link #NoResourceTimeoutFailureAllowedForInternalFailureOccurrenceDescription(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>No Resource Timeout Failure Allowed For Internal Failure Occurrence Description</em>}' invariant operation. |
| 155 | * <!-- begin-user-doc --> |
| 156 | * <!-- end-user-doc --> |
| 157 | * @see #NoResourceTimeoutFailureAllowedForInternalFailureOccurrenceDescription(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) |
| 158 | * @generated |
| 159 | * @ordered |
| 160 | */ |
| 161 | protected static Constraint NO_RESOURCE_TIMEOUT_FAILURE_ALLOWED_FOR_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__DIAGNOSTIC_CHAIN_MAP__EOCL_INV; |
| 162 | |
| 163 | /** |
| 164 | * <!-- begin-user-doc --> |
| 165 | * <!-- end-user-doc --> |
| 166 | * @generated |
| 167 | */ |
| 168 | public boolean NoResourceTimeoutFailureAllowedForInternalFailureOccurrenceDescription(DiagnosticChain diagnostics, Map<Object, Object> context) { |
| 169 | if (NO_RESOURCE_TIMEOUT_FAILURE_ALLOWED_FOR_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__DIAGNOSTIC_CHAIN_MAP__EOCL_INV == null) { |
| 170 | OCL.Helper helper = EOCL_ENV.createOCLHelper(); |
| 171 | helper.setContext(ReliabilityPackage.Literals.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION); |
| 172 | try { |
| 173 | NO_RESOURCE_TIMEOUT_FAILURE_ALLOWED_FOR_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__DIAGNOSTIC_CHAIN_MAP__EOCL_INV = helper.createInvariant(NO_RESOURCE_TIMEOUT_FAILURE_ALLOWED_FOR_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__DIAGNOSTIC_CHAIN_MAP__EOCL_EXP); |
| 174 | } |
| 175 | catch (ParserException pe) { |
| 176 | throw new UnsupportedOperationException(pe.getLocalizedMessage()); |
| 177 | } |
| 178 | } |
| 179 | if (!EOCL_ENV.createQuery(NO_RESOURCE_TIMEOUT_FAILURE_ALLOWED_FOR_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__DIAGNOSTIC_CHAIN_MAP__EOCL_INV).check(this)) { |
| 180 | if (diagnostics != null) { |
| 181 | diagnostics.add |
| 182 | (new BasicDiagnostic |
| 183 | (Diagnostic.ERROR, |
| 184 | ReliabilityValidator.DIAGNOSTIC_SOURCE, |
| 185 | ReliabilityValidator.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__NO_RESOURCE_TIMEOUT_FAILURE_ALLOWED_FOR_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION, |
| 186 | EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "NoResourceTimeoutFailureAllowedForInternalFailureOccurrenceDescription", EObjectValidator.getObjectLabel(this, context) }), |
| 187 | new Object [] { this })); |
| 188 | } |
| 189 | return false; |
| 190 | } |
| 191 | return true; |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * <!-- begin-user-doc --> |
| 196 | * <!-- end-user-doc --> |
| 197 | * @generated |
| 198 | */ |
| 199 | public InternalAction getInternalAction__InternalFailureOccurrenceDescription() { |
| 200 | if (eContainerFeatureID() != ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION) return null; |
| 201 | return (InternalAction)eContainer(); |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * <!-- begin-user-doc --> |
| 206 | * <!-- end-user-doc --> |
| 207 | * @generated |
| 208 | */ |
| 209 | public NotificationChain basicSetInternalAction__InternalFailureOccurrenceDescription(InternalAction newInternalAction__InternalFailureOccurrenceDescription, NotificationChain msgs) { |
| 210 | msgs = eBasicSetContainer((InternalEObject)newInternalAction__InternalFailureOccurrenceDescription, ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION, msgs); |
| 211 | return msgs; |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * <!-- begin-user-doc --> |
| 216 | * <!-- end-user-doc --> |
| 217 | * @generated |
| 218 | */ |
| 219 | public void setInternalAction__InternalFailureOccurrenceDescription(InternalAction newInternalAction__InternalFailureOccurrenceDescription) { |
| 220 | if (newInternalAction__InternalFailureOccurrenceDescription != eInternalContainer() || (eContainerFeatureID() != ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION && newInternalAction__InternalFailureOccurrenceDescription != null)) { |
| 221 | if (EcoreUtil.isAncestor(this, newInternalAction__InternalFailureOccurrenceDescription)) |
| 222 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); |
| 223 | NotificationChain msgs = null; |
| 224 | if (eInternalContainer() != null) |
| 225 | msgs = eBasicRemoveFromContainer(msgs); |
| 226 | if (newInternalAction__InternalFailureOccurrenceDescription != null) |
| 227 | msgs = ((InternalEObject)newInternalAction__InternalFailureOccurrenceDescription).eInverseAdd(this, SeffPackage.INTERNAL_ACTION__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_INTERNAL_ACTION, InternalAction.class, msgs); |
| 228 | msgs = basicSetInternalAction__InternalFailureOccurrenceDescription(newInternalAction__InternalFailureOccurrenceDescription, msgs); |
| 229 | if (msgs != null) msgs.dispatch(); |
| 230 | } |
| 231 | else if (eNotificationRequired()) |
| 232 | eNotify(new ENotificationImpl(this, Notification.SET, ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION, newInternalAction__InternalFailureOccurrenceDescription, newInternalAction__InternalFailureOccurrenceDescription)); |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * <!-- begin-user-doc --> |
| 237 | * <!-- end-user-doc --> |
| 238 | * @generated |
| 239 | */ |
| 240 | @Override |
| 241 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| 242 | switch (featureID) { |
| 243 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 244 | if (eInternalContainer() != null) |
| 245 | msgs = eBasicRemoveFromContainer(msgs); |
| 246 | return basicSetInternalAction__InternalFailureOccurrenceDescription((InternalAction)otherEnd, msgs); |
| 247 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 248 | if (softwareInducedFailureType__InternalFailureOccurrenceDescription != null) |
| 249 | msgs = ((InternalEObject)softwareInducedFailureType__InternalFailureOccurrenceDescription).eInverseRemove(this, ReliabilityPackage.SOFTWARE_INDUCED_FAILURE_TYPE__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_SOFTWARE_INDUCED_FAILURE_TYPE, SoftwareInducedFailureType.class, msgs); |
| 250 | return basicSetSoftwareInducedFailureType__InternalFailureOccurrenceDescription((SoftwareInducedFailureType)otherEnd, msgs); |
| 251 | } |
| 252 | return super.eInverseAdd(otherEnd, featureID, msgs); |
| 253 | } |
| 254 | |
| 255 | /** |
| 256 | * <!-- begin-user-doc --> |
| 257 | * <!-- end-user-doc --> |
| 258 | * @generated |
| 259 | */ |
| 260 | @Override |
| 261 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| 262 | switch (featureID) { |
| 263 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 264 | return basicSetInternalAction__InternalFailureOccurrenceDescription(null, msgs); |
| 265 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 266 | return basicSetSoftwareInducedFailureType__InternalFailureOccurrenceDescription(null, msgs); |
| 267 | } |
| 268 | return super.eInverseRemove(otherEnd, featureID, msgs); |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | * <!-- begin-user-doc --> |
| 273 | * <!-- end-user-doc --> |
| 274 | * @generated |
| 275 | */ |
| 276 | @Override |
| 277 | public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { |
| 278 | switch (eContainerFeatureID()) { |
| 279 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 280 | return eInternalContainer().eInverseRemove(this, SeffPackage.INTERNAL_ACTION__INTERNAL_FAILURE_OCCURRENCE_DESCRIPTIONS_INTERNAL_ACTION, InternalAction.class, msgs); |
| 281 | } |
| 282 | return super.eBasicRemoveFromContainerFeature(msgs); |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * <!-- begin-user-doc --> |
| 287 | * <!-- end-user-doc --> |
| 288 | * @generated |
| 289 | */ |
| 290 | @Override |
| 291 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| 292 | switch (featureID) { |
| 293 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 294 | return getInternalAction__InternalFailureOccurrenceDescription(); |
| 295 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 296 | if (resolve) return getSoftwareInducedFailureType__InternalFailureOccurrenceDescription(); |
| 297 | return basicGetSoftwareInducedFailureType__InternalFailureOccurrenceDescription(); |
| 298 | } |
| 299 | return super.eGet(featureID, resolve, coreType); |
| 300 | } |
| 301 | |
| 302 | /** |
| 303 | * <!-- begin-user-doc --> |
| 304 | * <!-- end-user-doc --> |
| 305 | * @generated |
| 306 | */ |
| 307 | @Override |
| 308 | public void eSet(int featureID, Object newValue) { |
| 309 | switch (featureID) { |
| 310 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 311 | setInternalAction__InternalFailureOccurrenceDescription((InternalAction)newValue); |
| 312 | return; |
| 313 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 314 | setSoftwareInducedFailureType__InternalFailureOccurrenceDescription((SoftwareInducedFailureType)newValue); |
| 315 | return; |
| 316 | } |
| 317 | super.eSet(featureID, newValue); |
| 318 | } |
| 319 | |
| 320 | /** |
| 321 | * <!-- begin-user-doc --> |
| 322 | * <!-- end-user-doc --> |
| 323 | * @generated |
| 324 | */ |
| 325 | @Override |
| 326 | public void eUnset(int featureID) { |
| 327 | switch (featureID) { |
| 328 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 329 | setInternalAction__InternalFailureOccurrenceDescription((InternalAction)null); |
| 330 | return; |
| 331 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 332 | setSoftwareInducedFailureType__InternalFailureOccurrenceDescription((SoftwareInducedFailureType)null); |
| 333 | return; |
| 334 | } |
| 335 | super.eUnset(featureID); |
| 336 | } |
| 337 | |
| 338 | /** |
| 339 | * <!-- begin-user-doc --> |
| 340 | * <!-- end-user-doc --> |
| 341 | * @generated |
| 342 | */ |
| 343 | @Override |
| 344 | public boolean eIsSet(int featureID) { |
| 345 | switch (featureID) { |
| 346 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__INTERNAL_ACTION_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 347 | return getInternalAction__InternalFailureOccurrenceDescription() != null; |
| 348 | case ReliabilityPackage.INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION__SOFTWARE_INDUCED_FAILURE_TYPE_INTERNAL_FAILURE_OCCURRENCE_DESCRIPTION: |
| 349 | return softwareInducedFailureType__InternalFailureOccurrenceDescription != null; |
| 350 | } |
| 351 | return super.eIsSet(featureID); |
| 352 | } |
| 353 | |
| 354 | } //InternalFailureOccurrenceDescriptionImpl |