diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/elements/impl/RealizationImpl.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/elements/impl/RealizationImpl.java | 113 |
1 files changed, 68 insertions, 45 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/elements/impl/RealizationImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/elements/impl/RealizationImpl.java index bfc85d1d0fa..102214f1987 100644 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/elements/impl/RealizationImpl.java +++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/elements/impl/RealizationImpl.java @@ -1,7 +1,7 @@ /***************************************************************************** * Copyright (c) 2010 CEA LIST. * - * + * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -36,9 +36,9 @@ import org.eclipse.papyrus.eastadl.infrastructure.elements.Realization; * <p> * The following features are implemented: * <ul> - * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.elements.impl.RealizationImpl#getBase_Realization <em>Base Realization</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.elements.impl.RealizationImpl#getRealized <em>Realized</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.elements.impl.RealizationImpl#getRealizedBy <em>Realized By</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.elements.impl.RealizationImpl#getBase_Realization <em>Base Realization</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.elements.impl.RealizationImpl#getRealized <em>Realized</em>}</li> + * <li>{@link org.eclipse.papyrus.eastadl.infrastructure.elements.impl.RealizationImpl#getRealizedBy <em>Realized By</em>}</li> * </ul> * </p> * @@ -50,6 +50,7 @@ public class RealizationImpl extends RelationshipImpl implements Realization { * The cached value of the '{@link #getBase_Realization() <em>Base Realization</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getBase_Realization() * @generated * @ordered @@ -60,6 +61,7 @@ public class RealizationImpl extends RelationshipImpl implements Realization { * The cached value of the '{@link #getRealized() <em>Realized</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getRealized() * @generated * @ordered @@ -69,6 +71,7 @@ public class RealizationImpl extends RelationshipImpl implements Realization { * The cached value of the '{@link #getRealizedBy() <em>Realized By</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @see #getRealizedBy() * @generated * @ordered @@ -77,6 +80,7 @@ public class RealizationImpl extends RelationshipImpl implements Realization { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ protected RealizationImpl() { @@ -85,64 +89,70 @@ public class RealizationImpl extends RelationshipImpl implements Realization { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { - case ElementsPackage.REALIZATION__BASE_REALIZATION: - if (resolve) return getBase_Realization(); - return basicGetBase_Realization(); - case ElementsPackage.REALIZATION__REALIZED: - return getRealized(); - case ElementsPackage.REALIZATION__REALIZED_BY: - return getRealizedBy(); + case ElementsPackage.REALIZATION__BASE_REALIZATION: + if (resolve) { + return getBase_Realization(); + } + return basicGetBase_Realization(); + case ElementsPackage.REALIZATION__REALIZED: + return getRealized(); + case ElementsPackage.REALIZATION__REALIZED_BY: + return getRealizedBy(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { - case ElementsPackage.REALIZATION__BASE_REALIZATION: - return base_Realization != null; - case ElementsPackage.REALIZATION__REALIZED: - return realized != null && !realized.isEmpty(); - case ElementsPackage.REALIZATION__REALIZED_BY: - return realizedBy != null && !realizedBy.isEmpty(); + case ElementsPackage.REALIZATION__BASE_REALIZATION: + return base_Realization != null; + case ElementsPackage.REALIZATION__REALIZED: + return realized != null && !realized.isEmpty(); + case ElementsPackage.REALIZATION__REALIZED_BY: + return realizedBy != null && !realizedBy.isEmpty(); } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { - case ElementsPackage.REALIZATION__BASE_REALIZATION: - setBase_Realization((org.eclipse.uml2.uml.Realization)newValue); - return; - case ElementsPackage.REALIZATION__REALIZED: - getRealized().clear(); - getRealized().addAll((Collection<? extends Realization_realizedInstanceRef>)newValue); - return; - case ElementsPackage.REALIZATION__REALIZED_BY: - getRealizedBy().clear(); - getRealizedBy().addAll((Collection<? extends Realization_realizedByInstanceRef>)newValue); - return; + case ElementsPackage.REALIZATION__BASE_REALIZATION: + setBase_Realization((org.eclipse.uml2.uml.Realization) newValue); + return; + case ElementsPackage.REALIZATION__REALIZED: + getRealized().clear(); + getRealized().addAll((Collection<? extends Realization_realizedInstanceRef>) newValue); + return; + case ElementsPackage.REALIZATION__REALIZED_BY: + getRealizedBy().clear(); + getRealizedBy().addAll((Collection<? extends Realization_realizedByInstanceRef>) newValue); + return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -152,28 +162,31 @@ public class RealizationImpl extends RelationshipImpl implements Realization { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { - case ElementsPackage.REALIZATION__BASE_REALIZATION: - setBase_Realization((org.eclipse.uml2.uml.Realization)null); - return; - case ElementsPackage.REALIZATION__REALIZED: - getRealized().clear(); - return; - case ElementsPackage.REALIZATION__REALIZED_BY: - getRealizedBy().clear(); - return; + case ElementsPackage.REALIZATION__BASE_REALIZATION: + setBase_Realization((org.eclipse.uml2.uml.Realization) null); + return; + case ElementsPackage.REALIZATION__REALIZED: + getRealized().clear(); + return; + case ElementsPackage.REALIZATION__REALIZED_BY: + getRealizedBy().clear(); + return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ + @Override public EList<Realization_realizedInstanceRef> getRealized() { if (realized == null) { realized = new EObjectContainmentEList<Realization_realizedInstanceRef>(Realization_realizedInstanceRef.class, this, ElementsPackage.REALIZATION__REALIZED); @@ -183,8 +196,10 @@ public class RealizationImpl extends RelationshipImpl implements Realization { /** * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ + @Override public EList<Realization_realizedByInstanceRef> getRealizedBy() { if (realizedBy == null) { realizedBy = new EObjectContainmentEList<Realization_realizedByInstanceRef>(Realization_realizedByInstanceRef.class, this, ElementsPackage.REALIZATION__REALIZED_BY); @@ -195,15 +210,18 @@ public class RealizationImpl extends RelationshipImpl implements Realization { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ + @Override public org.eclipse.uml2.uml.Realization getBase_Realization() { if (base_Realization != null && base_Realization.eIsProxy()) { - InternalEObject oldBase_Realization = (InternalEObject)base_Realization; - base_Realization = (org.eclipse.uml2.uml.Realization)eResolveProxy(oldBase_Realization); + InternalEObject oldBase_Realization = (InternalEObject) base_Realization; + base_Realization = (org.eclipse.uml2.uml.Realization) eResolveProxy(oldBase_Realization); if (base_Realization != oldBase_Realization) { - if (eNotificationRequired()) + if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.RESOLVE, ElementsPackage.REALIZATION__BASE_REALIZATION, oldBase_Realization, base_Realization)); + } } } return base_Realization; @@ -212,6 +230,7 @@ public class RealizationImpl extends RelationshipImpl implements Realization { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public org.eclipse.uml2.uml.Realization basicGetBase_Realization() { @@ -221,27 +240,31 @@ public class RealizationImpl extends RelationshipImpl implements Realization { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ + @Override public void setBase_Realization(org.eclipse.uml2.uml.Realization newBase_Realization) { org.eclipse.uml2.uml.Realization oldBase_Realization = base_Realization; base_Realization = newBase_Realization; - if (eNotificationRequired()) + if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.SET, ElementsPackage.REALIZATION__BASE_REALIZATION, oldBase_Realization, base_Realization)); + } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { - case ElementsPackage.REALIZATION__REALIZED: - return ((InternalEList<?>)getRealized()).basicRemove(otherEnd, msgs); - case ElementsPackage.REALIZATION__REALIZED_BY: - return ((InternalEList<?>)getRealizedBy()).basicRemove(otherEnd, msgs); + case ElementsPackage.REALIZATION__REALIZED: + return ((InternalEList<?>) getRealized()).basicRemove(otherEnd, msgs); + case ElementsPackage.REALIZATION__REALIZED_BY: + return ((InternalEList<?>) getRealizedBy()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } |