| /** |
| * Copyright (c) 2020 CEA LIST, Committer Name, and others. |
| * All rights reserved. This program and the accompanying materials |
| * 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 |
| * |
| */ |
| package org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl; |
| |
| import java.util.Collection; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| import org.eclipse.emf.common.notify.NotificationChain; |
| |
| import org.eclipse.emf.common.util.EList; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.InternalEObject; |
| |
| import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
| |
| import org.eclipse.emf.ecore.util.EObjectResolvingEList; |
| import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; |
| import org.eclipse.emf.ecore.util.InternalEList; |
| |
| import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Contract; |
| import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Data; |
| import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.LegalObligation; |
| import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.LegitimateInterest; |
| import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Pdp4engCommonGDPRPackage; |
| import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.PersonalData; |
| import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.PublicInterest; |
| import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Purpose; |
| import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.VitalInterest; |
| |
| import org.eclipse.uml2.uml.NamedElement; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Process</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getBase_NamedElement <em>Base Named Element</em>}</li> |
| * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getPersonaldata <em>Personaldata</em>}</li> |
| * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getContributedTo <em>Contributed To</em>}</li> |
| * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getPerformAContract <em>Perform AContract</em>}</li> |
| * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getData <em>Data</em>}</li> |
| * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForPublicInterest <em>Needed For Public Interest</em>}</li> |
| * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForLegimateInterest <em>Needed For Legimate Interest</em>}</li> |
| * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForLegalObligation <em>Needed For Legal Obligation</em>}</li> |
| * <li>{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForVitalInterest <em>Needed For Vital Interest</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class ProcessImpl extends MinimalEObjectImpl.Container implements org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process { |
| /** |
| * 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 |
| */ |
| protected NamedElement base_NamedElement; |
| |
| /** |
| * The cached value of the '{@link #getPersonaldata() <em>Personaldata</em>}' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPersonaldata() |
| * @generated |
| * @ordered |
| */ |
| protected EList<PersonalData> personaldata; |
| |
| /** |
| * The cached value of the '{@link #getContributedTo() <em>Contributed To</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getContributedTo() |
| * @generated |
| * @ordered |
| */ |
| protected Purpose contributedTo; |
| |
| /** |
| * The cached value of the '{@link #getPerformAContract() <em>Perform AContract</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPerformAContract() |
| * @generated |
| * @ordered |
| */ |
| protected Contract performAContract; |
| |
| /** |
| * The cached value of the '{@link #getData() <em>Data</em>}' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getData() |
| * @generated |
| * @ordered |
| */ |
| protected EList<Data> data; |
| |
| /** |
| * The cached value of the '{@link #getNeededForPublicInterest() <em>Needed For Public Interest</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getNeededForPublicInterest() |
| * @generated |
| * @ordered |
| */ |
| protected PublicInterest neededForPublicInterest; |
| |
| /** |
| * The cached value of the '{@link #getNeededForLegimateInterest() <em>Needed For Legimate Interest</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getNeededForLegimateInterest() |
| * @generated |
| * @ordered |
| */ |
| protected LegitimateInterest neededForLegimateInterest; |
| |
| /** |
| * The cached value of the '{@link #getNeededForLegalObligation() <em>Needed For Legal Obligation</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getNeededForLegalObligation() |
| * @generated |
| * @ordered |
| */ |
| protected LegalObligation neededForLegalObligation; |
| |
| /** |
| * The cached value of the '{@link #getNeededForVitalInterest() <em>Needed For Vital Interest</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getNeededForVitalInterest() |
| * @generated |
| * @ordered |
| */ |
| protected VitalInterest neededForVitalInterest; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected ProcessImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return Pdp4engCommonGDPRPackage.Literals.PROCESS; |
| } |
| |
| /** |
| * <!-- 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); |
| if (base_NamedElement != oldBase_NamedElement) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement)); |
| } |
| } |
| return base_NamedElement; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NamedElement basicGetBase_NamedElement() { |
| return base_NamedElement; |
| } |
| |
| /** |
| * <!-- 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()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__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.ManyInverse<PersonalData>(PersonalData.class, this, Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA, Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY); |
| } |
| return personaldata; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Purpose getContributedTo() { |
| if (contributedTo != null && contributedTo.eIsProxy()) { |
| InternalEObject oldContributedTo = (InternalEObject)contributedTo; |
| contributedTo = (Purpose)eResolveProxy(oldContributedTo); |
| if (contributedTo != oldContributedTo) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO, oldContributedTo, contributedTo)); |
| } |
| } |
| return contributedTo; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Purpose basicGetContributedTo() { |
| return contributedTo; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetContributedTo(Purpose newContributedTo, NotificationChain msgs) { |
| Purpose oldContributedTo = contributedTo; |
| contributedTo = newContributedTo; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO, oldContributedTo, newContributedTo); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setContributedTo(Purpose newContributedTo) { |
| if (newContributedTo != contributedTo) { |
| NotificationChain msgs = null; |
| if (contributedTo != null) |
| msgs = ((InternalEObject)contributedTo).eInverseRemove(this, Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES, Purpose.class, msgs); |
| if (newContributedTo != null) |
| msgs = ((InternalEObject)newContributedTo).eInverseAdd(this, Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES, Purpose.class, msgs); |
| msgs = basicSetContributedTo(newContributedTo, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO, newContributedTo, newContributedTo)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Contract getPerformAContract() { |
| if (performAContract != null && performAContract.eIsProxy()) { |
| InternalEObject oldPerformAContract = (InternalEObject)performAContract; |
| performAContract = (Contract)eResolveProxy(oldPerformAContract); |
| if (performAContract != oldPerformAContract) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__PERFORM_ACONTRACT, oldPerformAContract, performAContract)); |
| } |
| } |
| return performAContract; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Contract basicGetPerformAContract() { |
| return performAContract; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetPerformAContract(Contract newPerformAContract, NotificationChain msgs) { |
| Contract oldPerformAContract = performAContract; |
| performAContract = newPerformAContract; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__PERFORM_ACONTRACT, oldPerformAContract, newPerformAContract); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setPerformAContract(Contract newPerformAContract) { |
| if (newPerformAContract != performAContract) { |
| NotificationChain msgs = null; |
| if (performAContract != null) |
| msgs = ((InternalEObject)performAContract).eInverseRemove(this, Pdp4engCommonGDPRPackage.CONTRACT__PROCESS, Contract.class, msgs); |
| if (newPerformAContract != null) |
| msgs = ((InternalEObject)newPerformAContract).eInverseAdd(this, Pdp4engCommonGDPRPackage.CONTRACT__PROCESS, Contract.class, msgs); |
| msgs = basicSetPerformAContract(newPerformAContract, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__PERFORM_ACONTRACT, newPerformAContract, newPerformAContract)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public EList<Data> getData() { |
| if (data == null) { |
| data = new EObjectResolvingEList<Data>(Data.class, this, Pdp4engCommonGDPRPackage.PROCESS__DATA); |
| } |
| return data; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public PublicInterest getNeededForPublicInterest() { |
| if (neededForPublicInterest != null && neededForPublicInterest.eIsProxy()) { |
| InternalEObject oldNeededForPublicInterest = (InternalEObject)neededForPublicInterest; |
| neededForPublicInterest = (PublicInterest)eResolveProxy(oldNeededForPublicInterest); |
| if (neededForPublicInterest != oldNeededForPublicInterest) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_PUBLIC_INTEREST, oldNeededForPublicInterest, neededForPublicInterest)); |
| } |
| } |
| return neededForPublicInterest; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PublicInterest basicGetNeededForPublicInterest() { |
| return neededForPublicInterest; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setNeededForPublicInterest(PublicInterest newNeededForPublicInterest) { |
| PublicInterest oldNeededForPublicInterest = neededForPublicInterest; |
| neededForPublicInterest = newNeededForPublicInterest; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_PUBLIC_INTEREST, oldNeededForPublicInterest, neededForPublicInterest)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public LegitimateInterest getNeededForLegimateInterest() { |
| if (neededForLegimateInterest != null && neededForLegimateInterest.eIsProxy()) { |
| InternalEObject oldNeededForLegimateInterest = (InternalEObject)neededForLegimateInterest; |
| neededForLegimateInterest = (LegitimateInterest)eResolveProxy(oldNeededForLegimateInterest); |
| if (neededForLegimateInterest != oldNeededForLegimateInterest) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGIMATE_INTEREST, oldNeededForLegimateInterest, neededForLegimateInterest)); |
| } |
| } |
| return neededForLegimateInterest; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public LegitimateInterest basicGetNeededForLegimateInterest() { |
| return neededForLegimateInterest; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setNeededForLegimateInterest(LegitimateInterest newNeededForLegimateInterest) { |
| LegitimateInterest oldNeededForLegimateInterest = neededForLegimateInterest; |
| neededForLegimateInterest = newNeededForLegimateInterest; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGIMATE_INTEREST, oldNeededForLegimateInterest, neededForLegimateInterest)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public LegalObligation getNeededForLegalObligation() { |
| if (neededForLegalObligation != null && neededForLegalObligation.eIsProxy()) { |
| InternalEObject oldNeededForLegalObligation = (InternalEObject)neededForLegalObligation; |
| neededForLegalObligation = (LegalObligation)eResolveProxy(oldNeededForLegalObligation); |
| if (neededForLegalObligation != oldNeededForLegalObligation) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGAL_OBLIGATION, oldNeededForLegalObligation, neededForLegalObligation)); |
| } |
| } |
| return neededForLegalObligation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public LegalObligation basicGetNeededForLegalObligation() { |
| return neededForLegalObligation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setNeededForLegalObligation(LegalObligation newNeededForLegalObligation) { |
| LegalObligation oldNeededForLegalObligation = neededForLegalObligation; |
| neededForLegalObligation = newNeededForLegalObligation; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGAL_OBLIGATION, oldNeededForLegalObligation, neededForLegalObligation)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public VitalInterest getNeededForVitalInterest() { |
| if (neededForVitalInterest != null && neededForVitalInterest.eIsProxy()) { |
| InternalEObject oldNeededForVitalInterest = (InternalEObject)neededForVitalInterest; |
| neededForVitalInterest = (VitalInterest)eResolveProxy(oldNeededForVitalInterest); |
| if (neededForVitalInterest != oldNeededForVitalInterest) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_VITAL_INTEREST, oldNeededForVitalInterest, neededForVitalInterest)); |
| } |
| } |
| return neededForVitalInterest; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public VitalInterest basicGetNeededForVitalInterest() { |
| return neededForVitalInterest; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void setNeededForVitalInterest(VitalInterest newNeededForVitalInterest) { |
| VitalInterest oldNeededForVitalInterest = neededForVitalInterest; |
| neededForVitalInterest = newNeededForVitalInterest; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_VITAL_INTEREST, oldNeededForVitalInterest, neededForVitalInterest)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @SuppressWarnings("unchecked") |
| @Override |
| public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA: |
| return ((InternalEList<InternalEObject>)(InternalEList<?>)getPersonaldata()).basicAdd(otherEnd, msgs); |
| case Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO: |
| if (contributedTo != null) |
| msgs = ((InternalEObject)contributedTo).eInverseRemove(this, Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES, Purpose.class, msgs); |
| return basicSetContributedTo((Purpose)otherEnd, msgs); |
| case Pdp4engCommonGDPRPackage.PROCESS__PERFORM_ACONTRACT: |
| if (performAContract != null) |
| msgs = ((InternalEObject)performAContract).eInverseRemove(this, Pdp4engCommonGDPRPackage.CONTRACT__PROCESS, Contract.class, msgs); |
| return basicSetPerformAContract((Contract)otherEnd, msgs); |
| } |
| return super.eInverseAdd(otherEnd, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA: |
| return ((InternalEList<?>)getPersonaldata()).basicRemove(otherEnd, msgs); |
| case Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO: |
| return basicSetContributedTo(null, msgs); |
| case Pdp4engCommonGDPRPackage.PROCESS__PERFORM_ACONTRACT: |
| return basicSetPerformAContract(null, msgs); |
| } |
| return super.eInverseRemove(otherEnd, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| switch (featureID) { |
| case Pdp4engCommonGDPRPackage.PROCESS__BASE_NAMED_ELEMENT: |
| if (resolve) return getBase_NamedElement(); |
| return basicGetBase_NamedElement(); |
| case Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA: |
| return getPersonaldata(); |
| case Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO: |
| if (resolve) return getContributedTo(); |
| return basicGetContributedTo(); |
| case Pdp4engCommonGDPRPackage.PROCESS__PERFORM_ACONTRACT: |
| if (resolve) return getPerformAContract(); |
| return basicGetPerformAContract(); |
| case Pdp4engCommonGDPRPackage.PROCESS__DATA: |
| return getData(); |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_PUBLIC_INTEREST: |
| if (resolve) return getNeededForPublicInterest(); |
| return basicGetNeededForPublicInterest(); |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGIMATE_INTEREST: |
| if (resolve) return getNeededForLegimateInterest(); |
| return basicGetNeededForLegimateInterest(); |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGAL_OBLIGATION: |
| if (resolve) return getNeededForLegalObligation(); |
| return basicGetNeededForLegalObligation(); |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_VITAL_INTEREST: |
| if (resolve) return getNeededForVitalInterest(); |
| return basicGetNeededForVitalInterest(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @SuppressWarnings("unchecked") |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case Pdp4engCommonGDPRPackage.PROCESS__BASE_NAMED_ELEMENT: |
| setBase_NamedElement((NamedElement)newValue); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA: |
| getPersonaldata().clear(); |
| getPersonaldata().addAll((Collection<? extends PersonalData>)newValue); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO: |
| setContributedTo((Purpose)newValue); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__PERFORM_ACONTRACT: |
| setPerformAContract((Contract)newValue); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__DATA: |
| getData().clear(); |
| getData().addAll((Collection<? extends Data>)newValue); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_PUBLIC_INTEREST: |
| setNeededForPublicInterest((PublicInterest)newValue); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGIMATE_INTEREST: |
| setNeededForLegimateInterest((LegitimateInterest)newValue); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGAL_OBLIGATION: |
| setNeededForLegalObligation((LegalObligation)newValue); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_VITAL_INTEREST: |
| setNeededForVitalInterest((VitalInterest)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case Pdp4engCommonGDPRPackage.PROCESS__BASE_NAMED_ELEMENT: |
| setBase_NamedElement((NamedElement)null); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA: |
| getPersonaldata().clear(); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO: |
| setContributedTo((Purpose)null); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__PERFORM_ACONTRACT: |
| setPerformAContract((Contract)null); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__DATA: |
| getData().clear(); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_PUBLIC_INTEREST: |
| setNeededForPublicInterest((PublicInterest)null); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGIMATE_INTEREST: |
| setNeededForLegimateInterest((LegitimateInterest)null); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGAL_OBLIGATION: |
| setNeededForLegalObligation((LegalObligation)null); |
| return; |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_VITAL_INTEREST: |
| setNeededForVitalInterest((VitalInterest)null); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case Pdp4engCommonGDPRPackage.PROCESS__BASE_NAMED_ELEMENT: |
| return base_NamedElement != null; |
| case Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA: |
| return personaldata != null && !personaldata.isEmpty(); |
| case Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO: |
| return contributedTo != null; |
| case Pdp4engCommonGDPRPackage.PROCESS__PERFORM_ACONTRACT: |
| return performAContract != null; |
| case Pdp4engCommonGDPRPackage.PROCESS__DATA: |
| return data != null && !data.isEmpty(); |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_PUBLIC_INTEREST: |
| return neededForPublicInterest != null; |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGIMATE_INTEREST: |
| return neededForLegimateInterest != null; |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGAL_OBLIGATION: |
| return neededForLegalObligation != null; |
| case Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_VITAL_INTEREST: |
| return neededForVitalInterest != null; |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| } //ProcessImpl |