diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/impl/GroundImpl.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/impl/GroundImpl.java | 110 |
1 files changed, 63 insertions, 47 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/impl/GroundImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/impl/GroundImpl.java index 575b560adfe..b65aee8ece8 100644 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/impl/GroundImpl.java +++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetycase/impl/GroundImpl.java @@ -37,19 +37,21 @@ import org.eclipse.uml2.uml.NamedElement; * <p> * The following features are implemented: * <ul> - * <li>{@link org.eclipse.papyrus.eastadl.dependability.safetycase.impl.GroundImpl#getSafetyEvidence <em>Safety Evidence</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.dependability.safetycase.impl.GroundImpl#getBase_Class <em>Base Class</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.dependability.safetycase.impl.GroundImpl#getJustification <em>Justification</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.dependability.safetycase.impl.GroundImpl#getSafetyEvidence <em>Safety Evidence</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.dependability.safetycase.impl.GroundImpl#getBase_Class <em>Base Class</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.dependability.safetycase.impl.GroundImpl#getJustification <em>Justification</em>}</li> * </ul> * </p> - * + * * @generated */ public class GroundImpl extends TraceableSpecificationImpl implements Ground { + /** * The cached value of the '{@link #getSafetyEvidence() <em>Safety Evidence</em>}' reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getSafetyEvidence() * @generated * @ordered @@ -60,6 +62,7 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { * The cached value of the '{@link #getBase_Class() <em>Base Class</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getBase_Class() * @generated * @ordered @@ -70,6 +73,7 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { * The cached value of the '{@link #getJustification() <em>Justification</em>}' reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getJustification() * @generated * @ordered @@ -79,6 +83,7 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected GroundImpl() { @@ -88,18 +93,20 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case SafetycasePackage.GROUND__SAFETY_EVIDENCE: - return getSafetyEvidence(); - case SafetycasePackage.GROUND__BASE_CLASS: - if (resolve) return getBase_Class(); - return basicGetBase_Class(); - case SafetycasePackage.GROUND__JUSTIFICATION: - return getJustification(); + switch(featureID) { + case SafetycasePackage.GROUND__SAFETY_EVIDENCE: + return getSafetyEvidence(); + case SafetycasePackage.GROUND__BASE_CLASS: + if(resolve) + return getBase_Class(); + return basicGetBase_Class(); + case SafetycasePackage.GROUND__JUSTIFICATION: + return getJustification(); } return super.eGet(featureID, resolve, coreType); } @@ -107,17 +114,18 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { - switch (featureID) { - case SafetycasePackage.GROUND__SAFETY_EVIDENCE: - return safetyEvidence != null && !safetyEvidence.isEmpty(); - case SafetycasePackage.GROUND__BASE_CLASS: - return base_Class != null; - case SafetycasePackage.GROUND__JUSTIFICATION: - return justification != null && !justification.isEmpty(); + switch(featureID) { + case SafetycasePackage.GROUND__SAFETY_EVIDENCE: + return safetyEvidence != null && !safetyEvidence.isEmpty(); + case SafetycasePackage.GROUND__BASE_CLASS: + return base_Class != null; + case SafetycasePackage.GROUND__JUSTIFICATION: + return justification != null && !justification.isEmpty(); } return super.eIsSet(featureID); } @@ -125,23 +133,24 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { - switch (featureID) { - case SafetycasePackage.GROUND__SAFETY_EVIDENCE: - getSafetyEvidence().clear(); - getSafetyEvidence().addAll((Collection<? extends NamedElement>)newValue); - return; - case SafetycasePackage.GROUND__BASE_CLASS: - setBase_Class((org.eclipse.uml2.uml.Class)newValue); - return; - case SafetycasePackage.GROUND__JUSTIFICATION: - getJustification().clear(); - getJustification().addAll((Collection<? extends Comment>)newValue); - return; + switch(featureID) { + case SafetycasePackage.GROUND__SAFETY_EVIDENCE: + getSafetyEvidence().clear(); + getSafetyEvidence().addAll((Collection<? extends NamedElement>)newValue); + return; + case SafetycasePackage.GROUND__BASE_CLASS: + setBase_Class((org.eclipse.uml2.uml.Class)newValue); + return; + case SafetycasePackage.GROUND__JUSTIFICATION: + getJustification().clear(); + getJustification().addAll((Collection<? extends Comment>)newValue); + return; } super.eSet(featureID, newValue); } @@ -149,6 +158,7 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override @@ -159,20 +169,21 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { - switch (featureID) { - case SafetycasePackage.GROUND__SAFETY_EVIDENCE: - getSafetyEvidence().clear(); - return; - case SafetycasePackage.GROUND__BASE_CLASS: - setBase_Class((org.eclipse.uml2.uml.Class)null); - return; - case SafetycasePackage.GROUND__JUSTIFICATION: - getJustification().clear(); - return; + switch(featureID) { + case SafetycasePackage.GROUND__SAFETY_EVIDENCE: + getSafetyEvidence().clear(); + return; + case SafetycasePackage.GROUND__BASE_CLASS: + setBase_Class((org.eclipse.uml2.uml.Class)null); + return; + case SafetycasePackage.GROUND__JUSTIFICATION: + getJustification().clear(); + return; } super.eUnset(featureID); } @@ -180,10 +191,11 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public EList<Comment> getJustification() { - if (justification == null) { + if(justification == null) { justification = new EObjectResolvingEList<Comment>(Comment.class, this, SafetycasePackage.GROUND__JUSTIFICATION); } return justification; @@ -192,10 +204,11 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public EList<NamedElement> getSafetyEvidence() { - if (safetyEvidence == null) { + if(safetyEvidence == null) { safetyEvidence = new EObjectResolvingEList<NamedElement>(NamedElement.class, this, SafetycasePackage.GROUND__SAFETY_EVIDENCE); } return safetyEvidence; @@ -204,14 +217,15 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public org.eclipse.uml2.uml.Class getBase_Class() { - if (base_Class != null && base_Class.eIsProxy()) { + if(base_Class != null && base_Class.eIsProxy()) { InternalEObject oldBase_Class = (InternalEObject)base_Class; base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class); - if (base_Class != oldBase_Class) { - if (eNotificationRequired()) + if(base_Class != oldBase_Class) { + if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, SafetycasePackage.GROUND__BASE_CLASS, oldBase_Class, base_Class)); } } @@ -221,6 +235,7 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public org.eclipse.uml2.uml.Class basicGetBase_Class() { @@ -230,12 +245,13 @@ public class GroundImpl extends TraceableSpecificationImpl implements Ground { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) { org.eclipse.uml2.uml.Class oldBase_Class = base_Class; base_Class = newBase_Class; - if (eNotificationRequired()) + if(eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SafetycasePackage.GROUND__BASE_CLASS, oldBase_Class, base_Class)); } |