diff options
Diffstat (limited to 'plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ControllerImpl.java')
-rw-r--r-- | plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ControllerImpl.java | 124 |
1 files changed, 52 insertions, 72 deletions
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ControllerImpl.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ControllerImpl.java index 5fd8152..08fac12 100644 --- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ControllerImpl.java +++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ControllerImpl.java @@ -4,14 +4,14 @@ * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ - * + * * SPDX-License-Identifier: EPL-2.0 - * + * * Contributors: * CEA LIST - Initial API and implementation - * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - * Gabriel Pedroza (CEA LIST) gabriel.pedroza@cea.fr - * + * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr + * Gabriel Pedroza (CEA LIST) gabriel.pedroza@cea.fr + * */ package org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl; @@ -47,9 +47,9 @@ import org.eclipse.uml2.uml.NamedElement; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ControllerImpl#getProcessor <em>Processor</em>}</li> - * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ControllerImpl#getBase_NamedElement <em>Base Named Element</em>}</li> - * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ControllerImpl#getPersonalData <em>Personal Data</em>}</li> + * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ControllerImpl#getProcessor <em>Processor</em>}</li> + * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ControllerImpl#getBase_NamedElement <em>Base Named Element</em>}</li> + * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ControllerImpl#getPersonalData <em>Personal Data</em>}</li> * </ul> * * @generated @@ -59,7 +59,6 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont * The cached value of the '{@link #getProcessor() <em>Processor</em>}' reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getProcessor() * @generated * @ordered @@ -70,7 +69,6 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont * The cached value of the '{@link #getBase_NamedElement() <em>Base Named Element</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getBase_NamedElement() * @generated * @ordered @@ -81,7 +79,6 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont * The cached value of the '{@link #getPersonalData() <em>Personal Data</em>}' reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getPersonalData() * @generated * @ordered @@ -91,7 +88,6 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ protected ControllerImpl() { @@ -101,7 +97,6 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override @@ -112,13 +107,12 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public EList<Processor> getProcessor() { if (processor == null) { - processor = new EObjectResolvingEList<>(Processor.class, this, Pdp4engCommonGDPRPackage.CONTROLLER__PROCESSOR); + processor = new EObjectResolvingEList<Processor>(Processor.class, this, Pdp4engCommonGDPRPackage.CONTROLLER__PROCESSOR); } return processor; } @@ -126,18 +120,16 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public NamedElement getBase_NamedElement() { if (base_NamedElement != null && base_NamedElement.eIsProxy()) { - InternalEObject oldBase_NamedElement = (InternalEObject) base_NamedElement; - base_NamedElement = (NamedElement) eResolveProxy(oldBase_NamedElement); + InternalEObject oldBase_NamedElement = (InternalEObject)base_NamedElement; + base_NamedElement = (NamedElement)eResolveProxy(oldBase_NamedElement); if (base_NamedElement != oldBase_NamedElement) { - if (eNotificationRequired()) { + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.CONTROLLER__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); - } } } return base_NamedElement; @@ -146,7 +138,6 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public NamedElement basicGetBase_NamedElement() { @@ -156,28 +147,25 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public void setBase_NamedElement(NamedElement newBase_NamedElement) { NamedElement oldBase_NamedElement = base_NamedElement; base_NamedElement = newBase_NamedElement; - if (eNotificationRequired()) { + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.CONTROLLER__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); - } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public EList<PersonalData> getPersonalData() { if (personalData == null) { - personalData = new EObjectWithInverseResolvingEList<>(PersonalData.class, this, Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA, Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE); + personalData = new EObjectWithInverseResolvingEList<PersonalData>(PersonalData.class, this, Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA, Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE); } return personalData; } @@ -185,15 +173,14 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { - case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: - return ((InternalEList<InternalEObject>) (InternalEList<?>) getPersonalData()).basicAdd(otherEnd, msgs); + case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: + return ((InternalEList<InternalEObject>)(InternalEList<?>)getPersonalData()).basicAdd(otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); } @@ -201,14 +188,13 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { - case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: - return ((InternalEList<?>) getPersonalData()).basicRemove(otherEnd, msgs); + case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: + return ((InternalEList<?>)getPersonalData()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } @@ -216,21 +202,18 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { - case Pdp4engCommonGDPRPackage.CONTROLLER__PROCESSOR: - return getProcessor(); - case Pdp4engCommonGDPRPackage.CONTROLLER__BASE_NAMED_ELEMENT: - if (resolve) { - return getBase_NamedElement(); - } - return basicGetBase_NamedElement(); - case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: - return getPersonalData(); + case Pdp4engCommonGDPRPackage.CONTROLLER__PROCESSOR: + return getProcessor(); + case Pdp4engCommonGDPRPackage.CONTROLLER__BASE_NAMED_ELEMENT: + if (resolve) return getBase_NamedElement(); + return basicGetBase_NamedElement(); + case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: + return getPersonalData(); } return super.eGet(featureID, resolve, coreType); } @@ -238,24 +221,23 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { - case Pdp4engCommonGDPRPackage.CONTROLLER__PROCESSOR: - getProcessor().clear(); - getProcessor().addAll((Collection<? extends Processor>) newValue); - return; - case Pdp4engCommonGDPRPackage.CONTROLLER__BASE_NAMED_ELEMENT: - setBase_NamedElement((NamedElement) newValue); - return; - case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: - getPersonalData().clear(); - getPersonalData().addAll((Collection<? extends PersonalData>) newValue); - return; + case Pdp4engCommonGDPRPackage.CONTROLLER__PROCESSOR: + getProcessor().clear(); + getProcessor().addAll((Collection<? extends Processor>)newValue); + return; + case Pdp4engCommonGDPRPackage.CONTROLLER__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)newValue); + return; + case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: + getPersonalData().clear(); + getPersonalData().addAll((Collection<? extends PersonalData>)newValue); + return; } super.eSet(featureID, newValue); } @@ -263,21 +245,20 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { - case Pdp4engCommonGDPRPackage.CONTROLLER__PROCESSOR: - getProcessor().clear(); - return; - case Pdp4engCommonGDPRPackage.CONTROLLER__BASE_NAMED_ELEMENT: - setBase_NamedElement((NamedElement) null); - return; - case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: - getPersonalData().clear(); - return; + case Pdp4engCommonGDPRPackage.CONTROLLER__PROCESSOR: + getProcessor().clear(); + return; + case Pdp4engCommonGDPRPackage.CONTROLLER__BASE_NAMED_ELEMENT: + setBase_NamedElement((NamedElement)null); + return; + case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: + getPersonalData().clear(); + return; } super.eUnset(featureID); } @@ -285,20 +266,19 @@ public class ControllerImpl extends MinimalEObjectImpl.Container implements Cont /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { - case Pdp4engCommonGDPRPackage.CONTROLLER__PROCESSOR: - return processor != null && !processor.isEmpty(); - case Pdp4engCommonGDPRPackage.CONTROLLER__BASE_NAMED_ELEMENT: - return base_NamedElement != null; - case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: - return personalData != null && !personalData.isEmpty(); + case Pdp4engCommonGDPRPackage.CONTROLLER__PROCESSOR: + return processor != null && !processor.isEmpty(); + case Pdp4engCommonGDPRPackage.CONTROLLER__BASE_NAMED_ELEMENT: + return base_NamedElement != null; + case Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA: + return personalData != null && !personalData.isEmpty(); } return super.eIsSet(featureID); } -} // ControllerImpl +} //ControllerImpl |