)(InternalEList>)getPersonalData()).basicAdd(otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
@@ -295,18 +267,17 @@ public class DataSubjectImpl extends MinimalEObjectImpl.Container implements Dat
/**
*
*
- *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__GIVEN_CONSENT:
- return ((InternalEList>) getGivenConsent()).basicRemove(otherEnd, msgs);
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__CONTRACT:
- return basicSetContract(null, msgs);
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA:
- return ((InternalEList>) getPersonalData()).basicRemove(otherEnd, msgs);
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__GIVEN_CONSENT:
+ return ((InternalEList>)getGivenConsent()).basicRemove(otherEnd, msgs);
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__CONTRACT:
+ return basicSetContract(null, msgs);
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA:
+ return ((InternalEList>)getPersonalData()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -314,26 +285,21 @@ public class DataSubjectImpl extends MinimalEObjectImpl.Container implements Dat
/**
*
*
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__BASE_NAMED_ELEMENT:
- if (resolve) {
- return getBase_NamedElement();
- }
- return basicGetBase_NamedElement();
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__GIVEN_CONSENT:
- return getGivenConsent();
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__CONTRACT:
- if (resolve) {
- return getContract();
- }
- return basicGetContract();
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA:
- return getPersonalData();
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__BASE_NAMED_ELEMENT:
+ if (resolve) return getBase_NamedElement();
+ return basicGetBase_NamedElement();
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__GIVEN_CONSENT:
+ return getGivenConsent();
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__CONTRACT:
+ if (resolve) return getContract();
+ return basicGetContract();
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA:
+ return getPersonalData();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -341,27 +307,26 @@ public class DataSubjectImpl extends MinimalEObjectImpl.Container implements Dat
/**
*
*
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) newValue);
- return;
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__GIVEN_CONSENT:
- getGivenConsent().clear();
- getGivenConsent().addAll((Collection extends Consent>) newValue);
- return;
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__CONTRACT:
- setContract((Contract) newValue);
- return;
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA:
- getPersonalData().clear();
- getPersonalData().addAll((Collection extends PersonalData>) newValue);
- return;
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)newValue);
+ return;
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__GIVEN_CONSENT:
+ getGivenConsent().clear();
+ getGivenConsent().addAll((Collection extends Consent>)newValue);
+ return;
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__CONTRACT:
+ setContract((Contract)newValue);
+ return;
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA:
+ getPersonalData().clear();
+ getPersonalData().addAll((Collection extends PersonalData>)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -369,24 +334,23 @@ public class DataSubjectImpl extends MinimalEObjectImpl.Container implements Dat
/**
*
*
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) null);
- return;
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__GIVEN_CONSENT:
- getGivenConsent().clear();
- return;
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__CONTRACT:
- setContract((Contract) null);
- return;
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA:
- getPersonalData().clear();
- return;
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)null);
+ return;
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__GIVEN_CONSENT:
+ getGivenConsent().clear();
+ return;
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__CONTRACT:
+ setContract((Contract)null);
+ return;
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA:
+ getPersonalData().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -394,22 +358,21 @@ public class DataSubjectImpl extends MinimalEObjectImpl.Container implements Dat
/**
*
*
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__BASE_NAMED_ELEMENT:
- return base_NamedElement != null;
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__GIVEN_CONSENT:
- return givenConsent != null && !givenConsent.isEmpty();
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__CONTRACT:
- return contract != null;
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA:
- return personalData != null && !personalData.isEmpty();
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__BASE_NAMED_ELEMENT:
+ return base_NamedElement != null;
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__GIVEN_CONSENT:
+ return givenConsent != null && !givenConsent.isEmpty();
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__CONTRACT:
+ return contract != null;
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA:
+ return personalData != null && !personalData.isEmpty();
}
return super.eIsSet(featureID);
}
-} // DataSubjectImpl
+} //DataSubjectImpl
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/LegalObligationImpl.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/LegalObligationImpl.java
index 6a9f9df..6119351 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/LegalObligationImpl.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/LegalObligationImpl.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;
@@ -36,7 +36,7 @@ import org.eclipse.uml2.uml.NamedElement;
* The following features are implemented:
*
*
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.LegalObligationImpl#getBase_NamedElement Base Named Element}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.LegalObligationImpl#getBase_NamedElement Base Named Element}
*
*
* @generated
@@ -46,7 +46,6 @@ public class LegalObligationImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference.
*
*
- *
* @see #getBase_NamedElement()
* @generated
* @ordered
@@ -56,7 +55,6 @@ public class LegalObligationImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
protected LegalObligationImpl() {
@@ -66,7 +64,6 @@ public class LegalObligationImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
@Override
@@ -77,18 +74,16 @@ public class LegalObligationImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @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.LEGAL_OBLIGATION__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
}
return base_NamedElement;
@@ -97,7 +92,6 @@ public class LegalObligationImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
public NamedElement basicGetBase_NamedElement() {
@@ -107,32 +101,27 @@ public class LegalObligationImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @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.LEGAL_OBLIGATION__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
/**
*
*
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION__BASE_NAMED_ELEMENT:
- if (resolve) {
- return getBase_NamedElement();
- }
- return basicGetBase_NamedElement();
+ case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION__BASE_NAMED_ELEMENT:
+ if (resolve) return getBase_NamedElement();
+ return basicGetBase_NamedElement();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -140,15 +129,14 @@ public class LegalObligationImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) newValue);
- return;
+ case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -156,15 +144,14 @@ public class LegalObligationImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) null);
- return;
+ case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)null);
+ return;
}
super.eUnset(featureID);
}
@@ -172,16 +159,15 @@ public class LegalObligationImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION__BASE_NAMED_ELEMENT:
- return base_NamedElement != null;
+ case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION__BASE_NAMED_ELEMENT:
+ return base_NamedElement != null;
}
return super.eIsSet(featureID);
}
-} // LegalObligationImpl
+} //LegalObligationImpl
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/LegitimateInterestImpl.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/LegitimateInterestImpl.java
index bc13b18..f940fed 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/LegitimateInterestImpl.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/LegitimateInterestImpl.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;
@@ -36,7 +36,7 @@ import org.eclipse.uml2.uml.NamedElement;
* The following features are implemented:
*
*
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.LegitimateInterestImpl#getBase_NamedElement Base Named Element}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.LegitimateInterestImpl#getBase_NamedElement Base Named Element}
*
*
* @generated
@@ -46,7 +46,6 @@ public class LegitimateInterestImpl extends MinimalEObjectImpl.Container impleme
* The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference.
*
*
- *
* @see #getBase_NamedElement()
* @generated
* @ordered
@@ -56,7 +55,6 @@ public class LegitimateInterestImpl extends MinimalEObjectImpl.Container impleme
/**
*
*
- *
* @generated
*/
protected LegitimateInterestImpl() {
@@ -66,7 +64,6 @@ public class LegitimateInterestImpl extends MinimalEObjectImpl.Container impleme
/**
*
*
- *
* @generated
*/
@Override
@@ -77,18 +74,16 @@ public class LegitimateInterestImpl extends MinimalEObjectImpl.Container impleme
/**
*
*
- *
* @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.LEGITIMATE_INTEREST__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
}
return base_NamedElement;
@@ -97,7 +92,6 @@ public class LegitimateInterestImpl extends MinimalEObjectImpl.Container impleme
/**
*
*
- *
* @generated
*/
public NamedElement basicGetBase_NamedElement() {
@@ -107,32 +101,27 @@ public class LegitimateInterestImpl extends MinimalEObjectImpl.Container impleme
/**
*
*
- *
* @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.LEGITIMATE_INTEREST__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
/**
*
*
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST__BASE_NAMED_ELEMENT:
- if (resolve) {
- return getBase_NamedElement();
- }
- return basicGetBase_NamedElement();
+ case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST__BASE_NAMED_ELEMENT:
+ if (resolve) return getBase_NamedElement();
+ return basicGetBase_NamedElement();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -140,15 +129,14 @@ public class LegitimateInterestImpl extends MinimalEObjectImpl.Container impleme
/**
*
*
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) newValue);
- return;
+ case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -156,15 +144,14 @@ public class LegitimateInterestImpl extends MinimalEObjectImpl.Container impleme
/**
*
*
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) null);
- return;
+ case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)null);
+ return;
}
super.eUnset(featureID);
}
@@ -172,16 +159,15 @@ public class LegitimateInterestImpl extends MinimalEObjectImpl.Container impleme
/**
*
*
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST__BASE_NAMED_ELEMENT:
- return base_NamedElement != null;
+ case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST__BASE_NAMED_ELEMENT:
+ return base_NamedElement != null;
}
return super.eIsSet(featureID);
}
-} // LegitimateInterestImpl
+} //LegitimateInterestImpl
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/Pdp4engCommonGDPRFactoryImpl.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/Pdp4engCommonGDPRFactoryImpl.java
index c901c37..004b230 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/Pdp4engCommonGDPRFactoryImpl.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/Pdp4engCommonGDPRFactoryImpl.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;
@@ -42,7 +42,6 @@ import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.VitalInteres
*
* An implementation of the model Factory.
*
- *
* @generated
*/
public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4engCommonGDPRFactory {
@@ -50,16 +49,16 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
* Creates the default factory implementation.
*
*
- *
* @generated
*/
public static Pdp4engCommonGDPRFactory init() {
try {
- Pdp4engCommonGDPRFactory thePdp4engCommonGDPRFactory = (Pdp4engCommonGDPRFactory) EPackage.Registry.INSTANCE.getEFactory(Pdp4engCommonGDPRPackage.eNS_URI);
+ Pdp4engCommonGDPRFactory thePdp4engCommonGDPRFactory = (Pdp4engCommonGDPRFactory)EPackage.Registry.INSTANCE.getEFactory(Pdp4engCommonGDPRPackage.eNS_URI);
if (thePdp4engCommonGDPRFactory != null) {
return thePdp4engCommonGDPRFactory;
}
- } catch (Exception exception) {
+ }
+ catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new Pdp4engCommonGDPRFactoryImpl();
@@ -69,7 +68,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
* Creates an instance of the factory.
*
*
- *
* @generated
*/
public Pdp4engCommonGDPRFactoryImpl() {
@@ -79,47 +77,32 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case Pdp4engCommonGDPRPackage.PROCESS:
- return createProcess();
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA:
- return createPersonalData();
- case Pdp4engCommonGDPRPackage.DATA:
- return createData();
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT:
- return createDataSubject();
- case Pdp4engCommonGDPRPackage.CONSENT:
- return createConsent();
- case Pdp4engCommonGDPRPackage.PURPOSE:
- return createPurpose();
- case Pdp4engCommonGDPRPackage.CONTRACT:
- return createContract();
- case Pdp4engCommonGDPRPackage.CONTROLLER:
- return createController();
- case Pdp4engCommonGDPRPackage.PROCESSOR:
- return createProcessor();
- case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST:
- return createPublicInterest();
- case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST:
- return createLegitimateInterest();
- case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION:
- return createLegalObligation();
- case Pdp4engCommonGDPRPackage.VITAL_INTEREST:
- return createVitalInterest();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ case Pdp4engCommonGDPRPackage.PROCESS: return createProcess();
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA: return createPersonalData();
+ case Pdp4engCommonGDPRPackage.DATA: return createData();
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT: return createDataSubject();
+ case Pdp4engCommonGDPRPackage.CONSENT: return createConsent();
+ case Pdp4engCommonGDPRPackage.PURPOSE: return createPurpose();
+ case Pdp4engCommonGDPRPackage.CONTRACT: return createContract();
+ case Pdp4engCommonGDPRPackage.CONTROLLER: return createController();
+ case Pdp4engCommonGDPRPackage.PROCESSOR: return createProcessor();
+ case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST: return createPublicInterest();
+ case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST: return createLegitimateInterest();
+ case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION: return createLegalObligation();
+ case Pdp4engCommonGDPRPackage.VITAL_INTEREST: return createVitalInterest();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
*
*
- *
* @generated
*/
@Override
@@ -131,7 +114,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -143,7 +125,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -155,7 +136,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -167,7 +147,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -179,7 +158,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -191,7 +169,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -203,7 +180,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -215,7 +191,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -227,7 +202,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -239,7 +213,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -251,7 +224,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -263,7 +235,6 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -275,18 +246,16 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public Pdp4engCommonGDPRPackage getPdp4engCommonGDPRPackage() {
- return (Pdp4engCommonGDPRPackage) getEPackage();
+ return (Pdp4engCommonGDPRPackage)getEPackage();
}
/**
*
*
- *
* @deprecated
* @generated
*/
@@ -295,4 +264,4 @@ public class Pdp4engCommonGDPRFactoryImpl extends EFactoryImpl implements Pdp4en
return Pdp4engCommonGDPRPackage.eINSTANCE;
}
-} // Pdp4engCommonGDPRFactoryImpl
+} //Pdp4engCommonGDPRFactoryImpl
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/Pdp4engCommonGDPRPackageImpl.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/Pdp4engCommonGDPRPackageImpl.java
index a6e727c..5cbb104 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/Pdp4engCommonGDPRPackageImpl.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/Pdp4engCommonGDPRPackageImpl.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;
@@ -45,14 +45,12 @@ import org.eclipse.uml2.uml.UMLPackage;
*
* An implementation of the model Package.
*
- *
* @generated
*/
public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4engCommonGDPRPackage {
/**
*
*
- *
* @generated
*/
private EClass processEClass = null;
@@ -60,7 +58,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass personalDataEClass = null;
@@ -68,7 +65,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass dataEClass = null;
@@ -76,7 +72,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass dataSubjectEClass = null;
@@ -84,7 +79,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass consentEClass = null;
@@ -92,7 +86,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass purposeEClass = null;
@@ -100,7 +93,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass contractEClass = null;
@@ -108,7 +100,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass controllerEClass = null;
@@ -116,7 +107,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass processorEClass = null;
@@ -124,7 +114,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass publicInterestEClass = null;
@@ -132,7 +121,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass legitimateInterestEClass = null;
@@ -140,7 +128,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass legalObligationEClass = null;
@@ -148,7 +135,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private EClass vitalInterestEClass = null;
@@ -157,14 +143,12 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
* Creates an instance of the model Package, registered with
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
- *
- * Note: the correct way to create the package is via the static
+ *
Note: the correct way to create the package is via the static
* factory method {@link #init init()}, which also performs
* initialization of the package, or returns the registered package,
* if one already exists.
*
*
- *
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Pdp4engCommonGDPRPackage#eNS_URI
* @see #init()
@@ -177,7 +161,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private static boolean isInited = false;
@@ -185,25 +168,21 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
* Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
*
- *
- * This method is used to initialize {@link Pdp4engCommonGDPRPackage#eINSTANCE} when that field is accessed.
+ *
This method is used to initialize {@link Pdp4engCommonGDPRPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
*
*
- *
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static Pdp4engCommonGDPRPackage init() {
- if (isInited) {
- return (Pdp4engCommonGDPRPackage) EPackage.Registry.INSTANCE.getEPackage(Pdp4engCommonGDPRPackage.eNS_URI);
- }
+ if (isInited) return (Pdp4engCommonGDPRPackage)EPackage.Registry.INSTANCE.getEPackage(Pdp4engCommonGDPRPackage.eNS_URI);
// Obtain or create and register package
Object registeredPdp4engCommonGDPRPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
- Pdp4engCommonGDPRPackageImpl thePdp4engCommonGDPRPackage = registeredPdp4engCommonGDPRPackage instanceof Pdp4engCommonGDPRPackageImpl ? (Pdp4engCommonGDPRPackageImpl) registeredPdp4engCommonGDPRPackage : new Pdp4engCommonGDPRPackageImpl();
+ Pdp4engCommonGDPRPackageImpl thePdp4engCommonGDPRPackage = registeredPdp4engCommonGDPRPackage instanceof Pdp4engCommonGDPRPackageImpl ? (Pdp4engCommonGDPRPackageImpl)registeredPdp4engCommonGDPRPackage : new Pdp4engCommonGDPRPackageImpl();
isInited = true;
@@ -229,7 +208,6 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
@@ -240,106 +218,96 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getProcess_Base_NamedElement() {
- return (EReference) processEClass.getEStructuralFeatures().get(0);
+ return (EReference)processEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getProcess_Personaldata() {
- return (EReference) processEClass.getEStructuralFeatures().get(1);
+ return (EReference)processEClass.getEStructuralFeatures().get(1);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getProcess_ContributedTo() {
- return (EReference) processEClass.getEStructuralFeatures().get(2);
+ return (EReference)processEClass.getEStructuralFeatures().get(2);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getProcess_PerformAContract() {
- return (EReference) processEClass.getEStructuralFeatures().get(3);
+ return (EReference)processEClass.getEStructuralFeatures().get(3);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getProcess_Data() {
- return (EReference) processEClass.getEStructuralFeatures().get(4);
+ return (EReference)processEClass.getEStructuralFeatures().get(4);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getProcess_NeededForPublicInterest() {
- return (EReference) processEClass.getEStructuralFeatures().get(5);
+ return (EReference)processEClass.getEStructuralFeatures().get(5);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getProcess_NeededForLegimateInterest() {
- return (EReference) processEClass.getEStructuralFeatures().get(6);
+ return (EReference)processEClass.getEStructuralFeatures().get(6);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getProcess_NeededForLegalObligation() {
- return (EReference) processEClass.getEStructuralFeatures().get(7);
+ return (EReference)processEClass.getEStructuralFeatures().get(7);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getProcess_NeededForVitalInterest() {
- return (EReference) processEClass.getEStructuralFeatures().get(8);
+ return (EReference)processEClass.getEStructuralFeatures().get(8);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -350,40 +318,36 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getPersonalData_RelatedTo() {
- return (EReference) personalDataEClass.getEStructuralFeatures().get(0);
+ return (EReference)personalDataEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getPersonalData_Responsible() {
- return (EReference) personalDataEClass.getEStructuralFeatures().get(1);
+ return (EReference)personalDataEClass.getEStructuralFeatures().get(1);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getPersonalData_ProcessedBy() {
- return (EReference) personalDataEClass.getEStructuralFeatures().get(2);
+ return (EReference)personalDataEClass.getEStructuralFeatures().get(2);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -394,18 +358,16 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getData_Base_NamedElement() {
- return (EReference) dataEClass.getEStructuralFeatures().get(0);
+ return (EReference)dataEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -416,51 +378,46 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getDataSubject_Base_NamedElement() {
- return (EReference) dataSubjectEClass.getEStructuralFeatures().get(0);
+ return (EReference)dataSubjectEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getDataSubject_GivenConsent() {
- return (EReference) dataSubjectEClass.getEStructuralFeatures().get(1);
+ return (EReference)dataSubjectEClass.getEStructuralFeatures().get(1);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getDataSubject_Contract() {
- return (EReference) dataSubjectEClass.getEStructuralFeatures().get(2);
+ return (EReference)dataSubjectEClass.getEStructuralFeatures().get(2);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getDataSubject_PersonalData() {
- return (EReference) dataSubjectEClass.getEStructuralFeatures().get(3);
+ return (EReference)dataSubjectEClass.getEStructuralFeatures().get(3);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -471,40 +428,36 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getConsent_Base_NamedElement() {
- return (EReference) consentEClass.getEStructuralFeatures().get(0);
+ return (EReference)consentEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getConsent_Purpose() {
- return (EReference) consentEClass.getEStructuralFeatures().get(1);
+ return (EReference)consentEClass.getEStructuralFeatures().get(1);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getConsent_Datasubject() {
- return (EReference) consentEClass.getEStructuralFeatures().get(2);
+ return (EReference)consentEClass.getEStructuralFeatures().get(2);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -515,40 +468,36 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getPurpose_Base_NamedElement() {
- return (EReference) purposeEClass.getEStructuralFeatures().get(0);
+ return (EReference)purposeEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getPurpose_Processes() {
- return (EReference) purposeEClass.getEStructuralFeatures().get(1);
+ return (EReference)purposeEClass.getEStructuralFeatures().get(1);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getPurpose_Consent() {
- return (EReference) purposeEClass.getEStructuralFeatures().get(2);
+ return (EReference)purposeEClass.getEStructuralFeatures().get(2);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -559,40 +508,36 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getContract_Base_NamedElement() {
- return (EReference) contractEClass.getEStructuralFeatures().get(0);
+ return (EReference)contractEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getContract_Process() {
- return (EReference) contractEClass.getEStructuralFeatures().get(1);
+ return (EReference)contractEClass.getEStructuralFeatures().get(1);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getContract_Datasubject() {
- return (EReference) contractEClass.getEStructuralFeatures().get(2);
+ return (EReference)contractEClass.getEStructuralFeatures().get(2);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -603,40 +548,36 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getController_Processor() {
- return (EReference) controllerEClass.getEStructuralFeatures().get(0);
+ return (EReference)controllerEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getController_Base_NamedElement() {
- return (EReference) controllerEClass.getEStructuralFeatures().get(1);
+ return (EReference)controllerEClass.getEStructuralFeatures().get(1);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getController_PersonalData() {
- return (EReference) controllerEClass.getEStructuralFeatures().get(2);
+ return (EReference)controllerEClass.getEStructuralFeatures().get(2);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -647,29 +588,26 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getProcessor_Process() {
- return (EReference) processorEClass.getEStructuralFeatures().get(0);
+ return (EReference)processorEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
public EReference getProcessor_Base_NamedElement() {
- return (EReference) processorEClass.getEStructuralFeatures().get(1);
+ return (EReference)processorEClass.getEStructuralFeatures().get(1);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -680,18 +618,16 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getPublicInterest_Base_NamedElement() {
- return (EReference) publicInterestEClass.getEStructuralFeatures().get(0);
+ return (EReference)publicInterestEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -702,18 +638,16 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getLegitimateInterest_Base_NamedElement() {
- return (EReference) legitimateInterestEClass.getEStructuralFeatures().get(0);
+ return (EReference)legitimateInterestEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -724,18 +658,16 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getLegalObligation_Base_NamedElement() {
- return (EReference) legalObligationEClass.getEStructuralFeatures().get(0);
+ return (EReference)legalObligationEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
@@ -746,45 +678,39 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
@Override
public EReference getVitalInterest_Base_NamedElement() {
- return (EReference) vitalInterestEClass.getEStructuralFeatures().get(0);
+ return (EReference)vitalInterestEClass.getEStructuralFeatures().get(0);
}
/**
*
*
- *
* @generated
*/
@Override
public Pdp4engCommonGDPRFactory getPdp4engCommonGDPRFactory() {
- return (Pdp4engCommonGDPRFactory) getEFactoryInstance();
+ return (Pdp4engCommonGDPRFactory)getEFactoryInstance();
}
/**
*
*
- *
* @generated
*/
private boolean isCreated = false;
/**
- * Creates the meta-model objects for the package. This method is
+ * Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
*
*
- *
* @generated
*/
public void createPackageContents() {
- if (isCreated) {
- return;
- }
+ if (isCreated) return;
isCreated = true;
// Create classes and their features
@@ -853,23 +779,19 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
/**
*
*
- *
* @generated
*/
private boolean isInitialized = false;
/**
- * Complete the initialization of the package and its meta-model. This
+ * Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
*
*
- *
* @generated
*/
public void initializePackageContents() {
- if (isInitialized) {
- return;
- }
+ if (isInitialized) return;
isInitialized = true;
// Initialize package
@@ -878,7 +800,7 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
setNsURI(eNS_URI);
// Obtain other dependent packages
- UMLPackage theUMLPackage = (UMLPackage) EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
+ UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
// Create type parameters
@@ -889,101 +811,68 @@ public class Pdp4engCommonGDPRPackageImpl extends EPackageImpl implements Pdp4en
// Initialize classes, features, and operations; add parameters
initEClass(processEClass, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, "Process", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getProcess_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
- !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getProcess_Personaldata(), this.getPersonalData(), this.getPersonalData_ProcessedBy(), "personaldata", null, 0, -1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
- !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getProcess_ContributedTo(), this.getPurpose(), this.getPurpose_Processes(), "contributedTo", null, 1, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
- !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getProcess_PerformAContract(), this.getContract(), this.getContract_Process(), "performAContract", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
- !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getProcess_Data(), this.getData(), null, "data", null, 0, -1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getProcess_NeededForPublicInterest(), this.getPublicInterest(), null, "neededForPublicInterest", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
- !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getProcess_NeededForLegimateInterest(), this.getLegitimateInterest(), null, "neededForLegimateInterest", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
- !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getProcess_NeededForLegalObligation(), this.getLegalObligation(), null, "neededForLegalObligation", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
- !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getProcess_NeededForVitalInterest(), this.getVitalInterest(), null, "neededForVitalInterest", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
- !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getProcess_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getProcess_Personaldata(), this.getPersonalData(), this.getPersonalData_ProcessedBy(), "personaldata", null, 0, -1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getProcess_ContributedTo(), this.getPurpose(), this.getPurpose_Processes(), "contributedTo", null, 1, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getProcess_PerformAContract(), this.getContract(), this.getContract_Process(), "performAContract", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getProcess_Data(), this.getData(), null, "data", null, 0, -1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getProcess_NeededForPublicInterest(), this.getPublicInterest(), null, "neededForPublicInterest", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getProcess_NeededForLegimateInterest(), this.getLegitimateInterest(), null, "neededForLegimateInterest", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getProcess_NeededForLegalObligation(), this.getLegalObligation(), null, "neededForLegalObligation", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getProcess_NeededForVitalInterest(), this.getVitalInterest(), null, "neededForVitalInterest", null, 0, 1, org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(personalDataEClass, PersonalData.class, "PersonalData", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPersonalData_RelatedTo(), this.getDataSubject(), this.getDataSubject_PersonalData(), "relatedTo", null, 1, -1, PersonalData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getPersonalData_Responsible(), this.getController(), this.getController_PersonalData(), "responsible", null, 1, 1, PersonalData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getPersonalData_ProcessedBy(), this.getProcess(), this.getProcess_Personaldata(), "processedBy", null, 1, -1, PersonalData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
+ initEReference(getPersonalData_RelatedTo(), this.getDataSubject(), this.getDataSubject_PersonalData(), "relatedTo", null, 1, -1, PersonalData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getPersonalData_Responsible(), this.getController(), this.getController_PersonalData(), "responsible", null, 1, 1, PersonalData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getPersonalData_ProcessedBy(), this.getProcess(), this.getProcess_Personaldata(), "processedBy", null, 1, -1, PersonalData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(dataEClass, Data.class, "Data", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getData_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Data.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
+ initEReference(getData_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Data.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(dataSubjectEClass, DataSubject.class, "DataSubject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDataSubject_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, DataSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
- initEReference(getDataSubject_GivenConsent(), this.getConsent(), this.getConsent_Datasubject(), "givenConsent", null, 1, -1, DataSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
- initEReference(getDataSubject_Contract(), this.getContract(), this.getContract_Datasubject(), "contract", null, 0, 1, DataSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
- initEReference(getDataSubject_PersonalData(), this.getPersonalData(), this.getPersonalData_RelatedTo(), "personalData", null, 1, -1, DataSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getDataSubject_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, DataSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getDataSubject_GivenConsent(), this.getConsent(), this.getConsent_Datasubject(), "givenConsent", null, 1, -1, DataSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getDataSubject_Contract(), this.getContract(), this.getContract_Datasubject(), "contract", null, 0, 1, DataSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getDataSubject_PersonalData(), this.getPersonalData(), this.getPersonalData_RelatedTo(), "personalData", null, 1, -1, DataSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(consentEClass, Consent.class, "Consent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getConsent_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Consent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
- initEReference(getConsent_Purpose(), this.getPurpose(), this.getPurpose_Consent(), "purpose", null, 1, -1, Consent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
- initEReference(getConsent_Datasubject(), this.getDataSubject(), this.getDataSubject_GivenConsent(), "datasubject", null, 1, 1, Consent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
+ initEReference(getConsent_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Consent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getConsent_Purpose(), this.getPurpose(), this.getPurpose_Consent(), "purpose", null, 1, -1, Consent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getConsent_Datasubject(), this.getDataSubject(), this.getDataSubject_GivenConsent(), "datasubject", null, 1, 1, Consent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(purposeEClass, Purpose.class, "Purpose", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPurpose_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Purpose.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
- initEReference(getPurpose_Processes(), this.getProcess(), this.getProcess_ContributedTo(), "processes", null, 1, -1, Purpose.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
- initEReference(getPurpose_Consent(), this.getConsent(), this.getConsent_Purpose(), "consent", null, 1, 1, Purpose.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
+ initEReference(getPurpose_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Purpose.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getPurpose_Processes(), this.getProcess(), this.getProcess_ContributedTo(), "processes", null, 1, -1, Purpose.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getPurpose_Consent(), this.getConsent(), this.getConsent_Purpose(), "consent", null, 0, 1, Purpose.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(contractEClass, Contract.class, "Contract", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getContract_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Contract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
- initEReference(getContract_Process(), this.getProcess(), this.getProcess_PerformAContract(), "process", null, 1, -1, Contract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
- initEReference(getContract_Datasubject(), this.getDataSubject(), this.getDataSubject_Contract(), "datasubject", null, 1, 1, Contract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
+ initEReference(getContract_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Contract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getContract_Process(), this.getProcess(), this.getProcess_PerformAContract(), "process", null, 1, -1, Contract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getContract_Datasubject(), this.getDataSubject(), this.getDataSubject_Contract(), "datasubject", null, 1, 1, Contract.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(controllerEClass, Controller.class, "Controller", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getController_Processor(), this.getProcessor(), null, "processor", null, 1, -1, Controller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getController_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Controller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
- initEReference(getController_PersonalData(), this.getPersonalData(), this.getPersonalData_Responsible(), "personalData", null, 0, -1, Controller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getController_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Controller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getController_PersonalData(), this.getPersonalData(), this.getPersonalData_Responsible(), "personalData", null, 0, -1, Controller.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(processorEClass, Processor.class, "Processor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getProcessor_Process(), this.getProcess(), null, "process", null, 1, -1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEReference(getProcessor_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
+ initEReference(getProcessor_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, Processor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(publicInterestEClass, PublicInterest.class, "PublicInterest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPublicInterest_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, PublicInterest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getPublicInterest_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, PublicInterest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(legitimateInterestEClass, LegitimateInterest.class, "LegitimateInterest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getLegitimateInterest_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, LegitimateInterest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getLegitimateInterest_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, LegitimateInterest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(legalObligationEClass, LegalObligation.class, "LegalObligation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getLegalObligation_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, LegalObligation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getLegalObligation_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, LegalObligation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEClass(vitalInterestEClass, VitalInterest.class, "VitalInterest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getVitalInterest_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, VitalInterest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
+ initEReference(getVitalInterest_Base_NamedElement(), theUMLPackage.getNamedElement(), null, "base_NamedElement", null, 0, 1, VitalInterest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
// Create resource
createResource(eNS_URI);
}
-} // Pdp4engCommonGDPRPackageImpl
+} //Pdp4engCommonGDPRPackageImpl
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PersonalDataImpl.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PersonalDataImpl.java
index d8ab951..8a8e945 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PersonalDataImpl.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PersonalDataImpl.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;
@@ -43,9 +43,9 @@ import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.PersonalData
* The following features are implemented:
*
*
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PersonalDataImpl#getRelatedTo Related To}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PersonalDataImpl#getResponsible Responsible}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PersonalDataImpl#getProcessedBy Processed By}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PersonalDataImpl#getRelatedTo Related To}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PersonalDataImpl#getResponsible Responsible}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PersonalDataImpl#getProcessedBy Processed By}
*
*
* @generated
@@ -55,7 +55,6 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
* The cached value of the '{@link #getRelatedTo() Related To}' reference list.
*
*
- *
* @see #getRelatedTo()
* @generated
* @ordered
@@ -66,7 +65,6 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
* The cached value of the '{@link #getResponsible() Responsible}' reference.
*
*
- *
* @see #getResponsible()
* @generated
* @ordered
@@ -77,7 +75,6 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
* The cached value of the '{@link #getProcessedBy() Processed By}' reference list.
*
*
- *
* @see #getProcessedBy()
* @generated
* @ordered
@@ -87,7 +84,6 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
protected PersonalDataImpl() {
@@ -97,7 +93,6 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
@Override
@@ -108,13 +103,12 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
@Override
public EList getRelatedTo() {
if (relatedTo == null) {
- relatedTo = new EObjectWithInverseResolvingEList.ManyInverse<>(DataSubject.class, this, Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO, Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA);
+ relatedTo = new EObjectWithInverseResolvingEList.ManyInverse(DataSubject.class, this, Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO, Pdp4engCommonGDPRPackage.DATA_SUBJECT__PERSONAL_DATA);
}
return relatedTo;
}
@@ -122,18 +116,16 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
@Override
public Controller getResponsible() {
if (responsible != null && responsible.eIsProxy()) {
- InternalEObject oldResponsible = (InternalEObject) responsible;
- responsible = (Controller) eResolveProxy(oldResponsible);
+ InternalEObject oldResponsible = (InternalEObject)responsible;
+ responsible = (Controller)eResolveProxy(oldResponsible);
if (responsible != oldResponsible) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE, oldResponsible, responsible));
- }
}
}
return responsible;
@@ -142,7 +134,6 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
public Controller basicGetResponsible() {
@@ -152,7 +143,6 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
public NotificationChain basicSetResponsible(Controller newResponsible, NotificationChain msgs) {
@@ -160,11 +150,7 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
responsible = newResponsible;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE, oldResponsible, newResponsible);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
@@ -172,39 +158,32 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
@Override
public void setResponsible(Controller newResponsible) {
if (newResponsible != responsible) {
NotificationChain msgs = null;
- if (responsible != null) {
- msgs = ((InternalEObject) responsible).eInverseRemove(this, Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA, Controller.class, msgs);
- }
- if (newResponsible != null) {
- msgs = ((InternalEObject) newResponsible).eInverseAdd(this, Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA, Controller.class, msgs);
- }
+ if (responsible != null)
+ msgs = ((InternalEObject)responsible).eInverseRemove(this, Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA, Controller.class, msgs);
+ if (newResponsible != null)
+ msgs = ((InternalEObject)newResponsible).eInverseAdd(this, Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA, Controller.class, msgs);
msgs = basicSetResponsible(newResponsible, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- } else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE, newResponsible, newResponsible));
+ if (msgs != null) msgs.dispatch();
}
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE, newResponsible, newResponsible));
}
/**
*
*
- *
* @generated
*/
@Override
public EList getProcessedBy() {
if (processedBy == null) {
- processedBy = new EObjectWithInverseResolvingEList.ManyInverse<>(org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, this,
- Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY, Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA);
+ processedBy = new EObjectWithInverseResolvingEList.ManyInverse(org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, this, Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY, Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA);
}
return processedBy;
}
@@ -212,22 +191,20 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
- return ((InternalEList) (InternalEList>) getRelatedTo()).basicAdd(otherEnd, msgs);
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
- if (responsible != null) {
- msgs = ((InternalEObject) responsible).eInverseRemove(this, Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA, Controller.class, msgs);
- }
- return basicSetResponsible((Controller) otherEnd, msgs);
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
- return ((InternalEList) (InternalEList>) getProcessedBy()).basicAdd(otherEnd, msgs);
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
+ return ((InternalEList)(InternalEList>)getRelatedTo()).basicAdd(otherEnd, msgs);
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
+ if (responsible != null)
+ msgs = ((InternalEObject)responsible).eInverseRemove(this, Pdp4engCommonGDPRPackage.CONTROLLER__PERSONAL_DATA, Controller.class, msgs);
+ return basicSetResponsible((Controller)otherEnd, msgs);
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
+ return ((InternalEList)(InternalEList>)getProcessedBy()).basicAdd(otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
@@ -235,18 +212,17 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
- return ((InternalEList>) getRelatedTo()).basicRemove(otherEnd, msgs);
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
- return basicSetResponsible(null, msgs);
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
- return ((InternalEList>) getProcessedBy()).basicRemove(otherEnd, msgs);
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
+ return ((InternalEList>)getRelatedTo()).basicRemove(otherEnd, msgs);
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
+ return basicSetResponsible(null, msgs);
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
+ return ((InternalEList>)getProcessedBy()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -254,21 +230,18 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
- return getRelatedTo();
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
- if (resolve) {
- return getResponsible();
- }
- return basicGetResponsible();
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
- return getProcessedBy();
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
+ return getRelatedTo();
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
+ if (resolve) return getResponsible();
+ return basicGetResponsible();
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
+ return getProcessedBy();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -276,24 +249,23 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
- getRelatedTo().clear();
- getRelatedTo().addAll((Collection extends DataSubject>) newValue);
- return;
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
- setResponsible((Controller) newValue);
- return;
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
- getProcessedBy().clear();
- getProcessedBy().addAll((Collection extends org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process>) newValue);
- return;
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
+ getRelatedTo().clear();
+ getRelatedTo().addAll((Collection extends DataSubject>)newValue);
+ return;
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
+ setResponsible((Controller)newValue);
+ return;
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
+ getProcessedBy().clear();
+ getProcessedBy().addAll((Collection extends org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process>)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -301,21 +273,20 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
- getRelatedTo().clear();
- return;
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
- setResponsible((Controller) null);
- return;
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
- getProcessedBy().clear();
- return;
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
+ getRelatedTo().clear();
+ return;
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
+ setResponsible((Controller)null);
+ return;
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
+ getProcessedBy().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -323,20 +294,19 @@ public class PersonalDataImpl extends DataImpl implements PersonalData {
/**
*
*
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
- return relatedTo != null && !relatedTo.isEmpty();
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
- return responsible != null;
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
- return processedBy != null && !processedBy.isEmpty();
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RELATED_TO:
+ return relatedTo != null && !relatedTo.isEmpty();
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__RESPONSIBLE:
+ return responsible != null;
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY:
+ return processedBy != null && !processedBy.isEmpty();
}
return super.eIsSet(featureID);
}
-} // PersonalDataImpl
+} //PersonalDataImpl
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ProcessImpl.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ProcessImpl.java
index 0264842..1eea739 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ProcessImpl.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ProcessImpl.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;
@@ -52,15 +52,15 @@ import org.eclipse.uml2.uml.NamedElement;
* The following features are implemented:
*
*
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getBase_NamedElement Base Named Element}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getPersonaldata Personaldata}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getContributedTo Contributed To}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getPerformAContract Perform AContract}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getData Data}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForPublicInterest Needed For Public Interest}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForLegimateInterest Needed For Legimate Interest}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForLegalObligation Needed For Legal Obligation}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForVitalInterest Needed For Vital Interest}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getBase_NamedElement Base Named Element}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getPersonaldata Personaldata}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getContributedTo Contributed To}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getPerformAContract Perform AContract}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getData Data}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForPublicInterest Needed For Public Interest}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForLegimateInterest Needed For Legimate Interest}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForLegalObligation Needed For Legal Obligation}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessImpl#getNeededForVitalInterest Needed For Vital Interest}
*
*
* @generated
@@ -70,7 +70,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
* The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference.
*
*
- *
* @see #getBase_NamedElement()
* @generated
* @ordered
@@ -81,7 +80,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
* The cached value of the '{@link #getPersonaldata() Personaldata}' reference list.
*
*
- *
* @see #getPersonaldata()
* @generated
* @ordered
@@ -92,7 +90,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
* The cached value of the '{@link #getContributedTo() Contributed To}' reference.
*
*
- *
* @see #getContributedTo()
* @generated
* @ordered
@@ -103,7 +100,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
* The cached value of the '{@link #getPerformAContract() Perform AContract}' reference.
*
*
- *
* @see #getPerformAContract()
* @generated
* @ordered
@@ -114,7 +110,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
* The cached value of the '{@link #getData() Data}' reference list.
*
*
- *
* @see #getData()
* @generated
* @ordered
@@ -125,7 +120,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
* The cached value of the '{@link #getNeededForPublicInterest() Needed For Public Interest}' reference.
*
*
- *
* @see #getNeededForPublicInterest()
* @generated
* @ordered
@@ -136,7 +130,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
* The cached value of the '{@link #getNeededForLegimateInterest() Needed For Legimate Interest}' reference.
*
*
- *
* @see #getNeededForLegimateInterest()
* @generated
* @ordered
@@ -147,7 +140,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
* The cached value of the '{@link #getNeededForLegalObligation() Needed For Legal Obligation}' reference.
*
*
- *
* @see #getNeededForLegalObligation()
* @generated
* @ordered
@@ -158,7 +150,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
* The cached value of the '{@link #getNeededForVitalInterest() Needed For Vital Interest}' reference.
*
*
- *
* @see #getNeededForVitalInterest()
* @generated
* @ordered
@@ -168,7 +159,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
protected ProcessImpl() {
@@ -178,7 +168,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
@Override
@@ -189,18 +178,16 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @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.PROCESS__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
}
return base_NamedElement;
@@ -209,7 +196,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
public NamedElement basicGetBase_NamedElement() {
@@ -219,28 +205,25 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @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.PROCESS__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
/**
*
*
- *
* @generated
*/
@Override
public EList getPersonaldata() {
if (personaldata == null) {
- personaldata = new EObjectWithInverseResolvingEList.ManyInverse<>(PersonalData.class, this, Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA, Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY);
+ personaldata = new EObjectWithInverseResolvingEList.ManyInverse(PersonalData.class, this, Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA, Pdp4engCommonGDPRPackage.PERSONAL_DATA__PROCESSED_BY);
}
return personaldata;
}
@@ -248,18 +231,16 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
@Override
public Purpose getContributedTo() {
if (contributedTo != null && contributedTo.eIsProxy()) {
- InternalEObject oldContributedTo = (InternalEObject) contributedTo;
- contributedTo = (Purpose) eResolveProxy(oldContributedTo);
+ InternalEObject oldContributedTo = (InternalEObject)contributedTo;
+ contributedTo = (Purpose)eResolveProxy(oldContributedTo);
if (contributedTo != oldContributedTo) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO, oldContributedTo, contributedTo));
- }
}
}
return contributedTo;
@@ -268,7 +249,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
public Purpose basicGetContributedTo() {
@@ -278,7 +258,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
public NotificationChain basicSetContributedTo(Purpose newContributedTo, NotificationChain msgs) {
@@ -286,11 +265,7 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
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);
- }
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
@@ -298,43 +273,36 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @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);
- }
+ 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));
+ if (msgs != null) msgs.dispatch();
}
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO, newContributedTo, newContributedTo));
}
/**
*
*
- *
* @generated
*/
@Override
public Contract getPerformAContract() {
if (performAContract != null && performAContract.eIsProxy()) {
- InternalEObject oldPerformAContract = (InternalEObject) performAContract;
- performAContract = (Contract) eResolveProxy(oldPerformAContract);
+ InternalEObject oldPerformAContract = (InternalEObject)performAContract;
+ performAContract = (Contract)eResolveProxy(oldPerformAContract);
if (performAContract != oldPerformAContract) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__PERFORM_ACONTRACT, oldPerformAContract, performAContract));
- }
}
}
return performAContract;
@@ -343,7 +311,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
public Contract basicGetPerformAContract() {
@@ -353,7 +320,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
public NotificationChain basicSetPerformAContract(Contract newPerformAContract, NotificationChain msgs) {
@@ -361,11 +327,7 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
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);
- }
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
@@ -373,38 +335,32 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @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);
- }
+ 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));
+ if (msgs != null) msgs.dispatch();
}
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__PERFORM_ACONTRACT, newPerformAContract, newPerformAContract));
}
/**
*
*
- *
* @generated
*/
@Override
public EList getData() {
if (data == null) {
- data = new EObjectResolvingEList<>(Data.class, this, Pdp4engCommonGDPRPackage.PROCESS__DATA);
+ data = new EObjectResolvingEList(Data.class, this, Pdp4engCommonGDPRPackage.PROCESS__DATA);
}
return data;
}
@@ -412,18 +368,16 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
@Override
public PublicInterest getNeededForPublicInterest() {
if (neededForPublicInterest != null && neededForPublicInterest.eIsProxy()) {
- InternalEObject oldNeededForPublicInterest = (InternalEObject) neededForPublicInterest;
- neededForPublicInterest = (PublicInterest) eResolveProxy(oldNeededForPublicInterest);
+ InternalEObject oldNeededForPublicInterest = (InternalEObject)neededForPublicInterest;
+ neededForPublicInterest = (PublicInterest)eResolveProxy(oldNeededForPublicInterest);
if (neededForPublicInterest != oldNeededForPublicInterest) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_PUBLIC_INTEREST, oldNeededForPublicInterest, neededForPublicInterest));
- }
}
}
return neededForPublicInterest;
@@ -432,7 +386,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
public PublicInterest basicGetNeededForPublicInterest() {
@@ -442,33 +395,29 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
@Override
public void setNeededForPublicInterest(PublicInterest newNeededForPublicInterest) {
PublicInterest oldNeededForPublicInterest = neededForPublicInterest;
neededForPublicInterest = newNeededForPublicInterest;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_PUBLIC_INTEREST, oldNeededForPublicInterest, neededForPublicInterest));
- }
}
/**
*
*
- *
* @generated
*/
@Override
public LegitimateInterest getNeededForLegimateInterest() {
if (neededForLegimateInterest != null && neededForLegimateInterest.eIsProxy()) {
- InternalEObject oldNeededForLegimateInterest = (InternalEObject) neededForLegimateInterest;
- neededForLegimateInterest = (LegitimateInterest) eResolveProxy(oldNeededForLegimateInterest);
+ InternalEObject oldNeededForLegimateInterest = (InternalEObject)neededForLegimateInterest;
+ neededForLegimateInterest = (LegitimateInterest)eResolveProxy(oldNeededForLegimateInterest);
if (neededForLegimateInterest != oldNeededForLegimateInterest) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGIMATE_INTEREST, oldNeededForLegimateInterest, neededForLegimateInterest));
- }
}
}
return neededForLegimateInterest;
@@ -477,7 +426,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
public LegitimateInterest basicGetNeededForLegimateInterest() {
@@ -487,33 +435,29 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
@Override
public void setNeededForLegimateInterest(LegitimateInterest newNeededForLegimateInterest) {
LegitimateInterest oldNeededForLegimateInterest = neededForLegimateInterest;
neededForLegimateInterest = newNeededForLegimateInterest;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGIMATE_INTEREST, oldNeededForLegimateInterest, neededForLegimateInterest));
- }
}
/**
*
*
- *
* @generated
*/
@Override
public LegalObligation getNeededForLegalObligation() {
if (neededForLegalObligation != null && neededForLegalObligation.eIsProxy()) {
- InternalEObject oldNeededForLegalObligation = (InternalEObject) neededForLegalObligation;
- neededForLegalObligation = (LegalObligation) eResolveProxy(oldNeededForLegalObligation);
+ InternalEObject oldNeededForLegalObligation = (InternalEObject)neededForLegalObligation;
+ neededForLegalObligation = (LegalObligation)eResolveProxy(oldNeededForLegalObligation);
if (neededForLegalObligation != oldNeededForLegalObligation) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGAL_OBLIGATION, oldNeededForLegalObligation, neededForLegalObligation));
- }
}
}
return neededForLegalObligation;
@@ -522,7 +466,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
public LegalObligation basicGetNeededForLegalObligation() {
@@ -532,33 +475,29 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
@Override
public void setNeededForLegalObligation(LegalObligation newNeededForLegalObligation) {
LegalObligation oldNeededForLegalObligation = neededForLegalObligation;
neededForLegalObligation = newNeededForLegalObligation;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_LEGAL_OBLIGATION, oldNeededForLegalObligation, neededForLegalObligation));
- }
}
/**
*
*
- *
* @generated
*/
@Override
public VitalInterest getNeededForVitalInterest() {
if (neededForVitalInterest != null && neededForVitalInterest.eIsProxy()) {
- InternalEObject oldNeededForVitalInterest = (InternalEObject) neededForVitalInterest;
- neededForVitalInterest = (VitalInterest) eResolveProxy(oldNeededForVitalInterest);
+ InternalEObject oldNeededForVitalInterest = (InternalEObject)neededForVitalInterest;
+ neededForVitalInterest = (VitalInterest)eResolveProxy(oldNeededForVitalInterest);
if (neededForVitalInterest != oldNeededForVitalInterest) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_VITAL_INTEREST, oldNeededForVitalInterest, neededForVitalInterest));
- }
}
}
return neededForVitalInterest;
@@ -567,7 +506,6 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
public VitalInterest basicGetNeededForVitalInterest() {
@@ -577,40 +515,35 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @generated
*/
@Override
public void setNeededForVitalInterest(VitalInterest newNeededForVitalInterest) {
VitalInterest oldNeededForVitalInterest = neededForVitalInterest;
neededForVitalInterest = newNeededForVitalInterest;
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PROCESS__NEEDED_FOR_VITAL_INTEREST, oldNeededForVitalInterest, neededForVitalInterest));
- }
}
/**
*
*
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA:
- return ((InternalEList) (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);
+ case Pdp4engCommonGDPRPackage.PROCESS__PERSONALDATA:
+ return ((InternalEList)(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);
}
@@ -618,18 +551,17 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @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);
+ 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);
}
@@ -637,51 +569,36 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @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();
+ 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);
}
@@ -689,42 +606,41 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @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;
+ 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);
}
@@ -732,39 +648,38 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @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;
+ 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);
}
@@ -772,32 +687,31 @@ public class ProcessImpl extends MinimalEObjectImpl.Container implements org.ecl
/**
*
*
- *
* @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;
+ 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
+} //ProcessImpl
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ProcessorImpl.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ProcessorImpl.java
index fc3f100..64f35e8 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ProcessorImpl.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/ProcessorImpl.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;
@@ -42,8 +42,8 @@ import org.eclipse.uml2.uml.NamedElement;
* The following features are implemented:
*
*
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessorImpl#getProcess Process}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessorImpl#getBase_NamedElement Base Named Element}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessorImpl#getProcess Process}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.ProcessorImpl#getBase_NamedElement Base Named Element}
*
*
* @generated
@@ -53,7 +53,6 @@ public class ProcessorImpl extends MinimalEObjectImpl.Container implements Proce
* The cached value of the '{@link #getProcess() Process}' reference list.
*
*
- *
* @see #getProcess()
* @generated
* @ordered
@@ -64,7 +63,6 @@ public class ProcessorImpl extends MinimalEObjectImpl.Container implements Proce
* The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference.
*
*
- *
* @see #getBase_NamedElement()
* @generated
* @ordered
@@ -74,7 +72,6 @@ public class ProcessorImpl extends MinimalEObjectImpl.Container implements Proce
/**
*
*
- *
* @generated
*/
protected ProcessorImpl() {
@@ -84,7 +81,6 @@ public class ProcessorImpl extends MinimalEObjectImpl.Container implements Proce
/**
*
*
- *
* @generated
*/
@Override
@@ -95,13 +91,12 @@ public class ProcessorImpl extends MinimalEObjectImpl.Container implements Proce
/**
*
*
- *
* @generated
*/
@Override
public EList getProcess() {
if (process == null) {
- process = new EObjectResolvingEList<>(org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, this, Pdp4engCommonGDPRPackage.PROCESSOR__PROCESS);
+ process = new EObjectResolvingEList(org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, this, Pdp4engCommonGDPRPackage.PROCESSOR__PROCESS);
}
return process;
}
@@ -109,18 +104,16 @@ public class ProcessorImpl extends MinimalEObjectImpl.Container implements Proce
/**
*
*
- *
* @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.PROCESSOR__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
}
return base_NamedElement;
@@ -129,7 +122,6 @@ public class ProcessorImpl extends MinimalEObjectImpl.Container implements Proce
/**
*
*
- *
* @generated
*/
public NamedElement basicGetBase_NamedElement() {
@@ -139,34 +131,29 @@ public class ProcessorImpl extends MinimalEObjectImpl.Container implements Proce
/**
*
*
- *
* @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.PROCESSOR__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
/**
*
*
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PROCESSOR__PROCESS:
- return getProcess();
- case Pdp4engCommonGDPRPackage.PROCESSOR__BASE_NAMED_ELEMENT:
- if (resolve) {
- return getBase_NamedElement();
- }
- return basicGetBase_NamedElement();
+ case Pdp4engCommonGDPRPackage.PROCESSOR__PROCESS:
+ return getProcess();
+ case Pdp4engCommonGDPRPackage.PROCESSOR__BASE_NAMED_ELEMENT:
+ if (resolve) return getBase_NamedElement();
+ return basicGetBase_NamedElement();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -174,20 +161,19 @@ public class ProcessorImpl extends MinimalEObjectImpl.Container implements Proce
/**
*
*
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PROCESSOR__PROCESS:
- getProcess().clear();
- getProcess().addAll((Collection extends org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process>) newValue);
- return;
- case Pdp4engCommonGDPRPackage.PROCESSOR__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) newValue);
- return;
+ case Pdp4engCommonGDPRPackage.PROCESSOR__PROCESS:
+ getProcess().clear();
+ getProcess().addAll((Collection extends org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process>)newValue);
+ return;
+ case Pdp4engCommonGDPRPackage.PROCESSOR__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -195,18 +181,17 @@ public class ProcessorImpl extends MinimalEObjectImpl.Container implements Proce
/**
*
*
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PROCESSOR__PROCESS:
- getProcess().clear();
- return;
- case Pdp4engCommonGDPRPackage.PROCESSOR__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) null);
- return;
+ case Pdp4engCommonGDPRPackage.PROCESSOR__PROCESS:
+ getProcess().clear();
+ return;
+ case Pdp4engCommonGDPRPackage.PROCESSOR__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)null);
+ return;
}
super.eUnset(featureID);
}
@@ -214,18 +199,17 @@ public class ProcessorImpl extends MinimalEObjectImpl.Container implements Proce
/**
*
*
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PROCESSOR__PROCESS:
- return process != null && !process.isEmpty();
- case Pdp4engCommonGDPRPackage.PROCESSOR__BASE_NAMED_ELEMENT:
- return base_NamedElement != null;
+ case Pdp4engCommonGDPRPackage.PROCESSOR__PROCESS:
+ return process != null && !process.isEmpty();
+ case Pdp4engCommonGDPRPackage.PROCESSOR__BASE_NAMED_ELEMENT:
+ return base_NamedElement != null;
}
return super.eIsSet(featureID);
}
-} // ProcessorImpl
+} //ProcessorImpl
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PublicInterestImpl.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PublicInterestImpl.java
index 27081aa..a31792d 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PublicInterestImpl.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PublicInterestImpl.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;
@@ -36,7 +36,7 @@ import org.eclipse.uml2.uml.NamedElement;
* The following features are implemented:
*
*
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PublicInterestImpl#getBase_NamedElement Base Named Element}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PublicInterestImpl#getBase_NamedElement Base Named Element}
*
*
* @generated
@@ -46,7 +46,6 @@ public class PublicInterestImpl extends MinimalEObjectImpl.Container implements
* The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference.
*
*
- *
* @see #getBase_NamedElement()
* @generated
* @ordered
@@ -56,7 +55,6 @@ public class PublicInterestImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
protected PublicInterestImpl() {
@@ -66,7 +64,6 @@ public class PublicInterestImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
@Override
@@ -77,18 +74,16 @@ public class PublicInterestImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @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.PUBLIC_INTEREST__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
}
return base_NamedElement;
@@ -97,7 +92,6 @@ public class PublicInterestImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
public NamedElement basicGetBase_NamedElement() {
@@ -107,32 +101,27 @@ public class PublicInterestImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @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.PUBLIC_INTEREST__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
/**
*
*
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST__BASE_NAMED_ELEMENT:
- if (resolve) {
- return getBase_NamedElement();
- }
- return basicGetBase_NamedElement();
+ case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST__BASE_NAMED_ELEMENT:
+ if (resolve) return getBase_NamedElement();
+ return basicGetBase_NamedElement();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -140,15 +129,14 @@ public class PublicInterestImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) newValue);
- return;
+ case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -156,15 +144,14 @@ public class PublicInterestImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) null);
- return;
+ case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)null);
+ return;
}
super.eUnset(featureID);
}
@@ -172,16 +159,15 @@ public class PublicInterestImpl extends MinimalEObjectImpl.Container implements
/**
*
*
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST__BASE_NAMED_ELEMENT:
- return base_NamedElement != null;
+ case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST__BASE_NAMED_ELEMENT:
+ return base_NamedElement != null;
}
return super.eIsSet(featureID);
}
-} // PublicInterestImpl
+} //PublicInterestImpl
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PurposeImpl.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PurposeImpl.java
index 025fd1e..fdb48b7 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PurposeImpl.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/PurposeImpl.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;
@@ -45,9 +45,9 @@ import org.eclipse.uml2.uml.NamedElement;
* The following features are implemented:
*
*
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PurposeImpl#getBase_NamedElement Base Named Element}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PurposeImpl#getProcesses Processes}
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PurposeImpl#getConsent Consent}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PurposeImpl#getBase_NamedElement Base Named Element}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PurposeImpl#getProcesses Processes}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.PurposeImpl#getConsent Consent}
*
*
* @generated
@@ -57,7 +57,6 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
* The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference.
*
*
- *
* @see #getBase_NamedElement()
* @generated
* @ordered
@@ -68,7 +67,6 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
* The cached value of the '{@link #getProcesses() Processes}' reference list.
*
*
- *
* @see #getProcesses()
* @generated
* @ordered
@@ -79,7 +77,6 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
* The cached value of the '{@link #getConsent() Consent}' reference.
*
*
- *
* @see #getConsent()
* @generated
* @ordered
@@ -89,7 +86,6 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
protected PurposeImpl() {
@@ -99,7 +95,6 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
@Override
@@ -110,18 +105,16 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @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.PURPOSE__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
}
return base_NamedElement;
@@ -130,7 +123,6 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
public NamedElement basicGetBase_NamedElement() {
@@ -140,29 +132,25 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @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.PURPOSE__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
/**
*
*
- *
* @generated
*/
@Override
public EList getProcesses() {
if (processes == null) {
- processes = new EObjectWithInverseResolvingEList<>(org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, this, Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES,
- Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO);
+ processes = new EObjectWithInverseResolvingEList(org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process.class, this, Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES, Pdp4engCommonGDPRPackage.PROCESS__CONTRIBUTED_TO);
}
return processes;
}
@@ -170,18 +158,16 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
@Override
public Consent getConsent() {
if (consent != null && consent.eIsProxy()) {
- InternalEObject oldConsent = (InternalEObject) consent;
- consent = (Consent) eResolveProxy(oldConsent);
+ InternalEObject oldConsent = (InternalEObject)consent;
+ consent = (Consent)eResolveProxy(oldConsent);
if (consent != oldConsent) {
- if (eNotificationRequired()) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, Pdp4engCommonGDPRPackage.PURPOSE__CONSENT, oldConsent, consent));
- }
}
}
return consent;
@@ -190,7 +176,6 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
public Consent basicGetConsent() {
@@ -200,7 +185,6 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
public NotificationChain basicSetConsent(Consent newConsent, NotificationChain msgs) {
@@ -208,11 +192,7 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
consent = newConsent;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PURPOSE__CONSENT, oldConsent, newConsent);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
@@ -220,45 +200,38 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
@Override
public void setConsent(Consent newConsent) {
if (newConsent != consent) {
NotificationChain msgs = null;
- if (consent != null) {
- msgs = ((InternalEObject) consent).eInverseRemove(this, Pdp4engCommonGDPRPackage.CONSENT__PURPOSE, Consent.class, msgs);
- }
- if (newConsent != null) {
- msgs = ((InternalEObject) newConsent).eInverseAdd(this, Pdp4engCommonGDPRPackage.CONSENT__PURPOSE, Consent.class, msgs);
- }
+ if (consent != null)
+ msgs = ((InternalEObject)consent).eInverseRemove(this, Pdp4engCommonGDPRPackage.CONSENT__PURPOSE, Consent.class, msgs);
+ if (newConsent != null)
+ msgs = ((InternalEObject)newConsent).eInverseAdd(this, Pdp4engCommonGDPRPackage.CONSENT__PURPOSE, Consent.class, msgs);
msgs = basicSetConsent(newConsent, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- } else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PURPOSE__CONSENT, newConsent, newConsent));
+ if (msgs != null) msgs.dispatch();
}
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Pdp4engCommonGDPRPackage.PURPOSE__CONSENT, newConsent, newConsent));
}
/**
*
*
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
- return ((InternalEList) (InternalEList>) getProcesses()).basicAdd(otherEnd, msgs);
- case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
- if (consent != null) {
- msgs = ((InternalEObject) consent).eInverseRemove(this, Pdp4engCommonGDPRPackage.CONSENT__PURPOSE, Consent.class, msgs);
- }
- return basicSetConsent((Consent) otherEnd, msgs);
+ case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
+ return ((InternalEList)(InternalEList>)getProcesses()).basicAdd(otherEnd, msgs);
+ case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
+ if (consent != null)
+ msgs = ((InternalEObject)consent).eInverseRemove(this, Pdp4engCommonGDPRPackage.CONSENT__PURPOSE, Consent.class, msgs);
+ return basicSetConsent((Consent)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
@@ -266,16 +239,15 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
- return ((InternalEList>) getProcesses()).basicRemove(otherEnd, msgs);
- case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
- return basicSetConsent(null, msgs);
+ case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
+ return ((InternalEList>)getProcesses()).basicRemove(otherEnd, msgs);
+ case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
+ return basicSetConsent(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -283,24 +255,19 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PURPOSE__BASE_NAMED_ELEMENT:
- if (resolve) {
- return getBase_NamedElement();
- }
- return basicGetBase_NamedElement();
- case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
- return getProcesses();
- case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
- if (resolve) {
- return getConsent();
- }
- return basicGetConsent();
+ case Pdp4engCommonGDPRPackage.PURPOSE__BASE_NAMED_ELEMENT:
+ if (resolve) return getBase_NamedElement();
+ return basicGetBase_NamedElement();
+ case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
+ return getProcesses();
+ case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
+ if (resolve) return getConsent();
+ return basicGetConsent();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -308,23 +275,22 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PURPOSE__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) newValue);
- return;
- case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
- getProcesses().clear();
- getProcesses().addAll((Collection extends org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process>) newValue);
- return;
- case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
- setConsent((Consent) newValue);
- return;
+ case Pdp4engCommonGDPRPackage.PURPOSE__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)newValue);
+ return;
+ case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
+ getProcesses().clear();
+ getProcesses().addAll((Collection extends org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process>)newValue);
+ return;
+ case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
+ setConsent((Consent)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -332,21 +298,20 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PURPOSE__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) null);
- return;
- case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
- getProcesses().clear();
- return;
- case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
- setConsent((Consent) null);
- return;
+ case Pdp4engCommonGDPRPackage.PURPOSE__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)null);
+ return;
+ case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
+ getProcesses().clear();
+ return;
+ case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
+ setConsent((Consent)null);
+ return;
}
super.eUnset(featureID);
}
@@ -354,20 +319,19 @@ public class PurposeImpl extends MinimalEObjectImpl.Container implements Purpose
/**
*
*
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.PURPOSE__BASE_NAMED_ELEMENT:
- return base_NamedElement != null;
- case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
- return processes != null && !processes.isEmpty();
- case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
- return consent != null;
+ case Pdp4engCommonGDPRPackage.PURPOSE__BASE_NAMED_ELEMENT:
+ return base_NamedElement != null;
+ case Pdp4engCommonGDPRPackage.PURPOSE__PROCESSES:
+ return processes != null && !processes.isEmpty();
+ case Pdp4engCommonGDPRPackage.PURPOSE__CONSENT:
+ return consent != null;
}
return super.eIsSet(featureID);
}
-} // PurposeImpl
+} //PurposeImpl
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/VitalInterestImpl.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/VitalInterestImpl.java
index e40af7f..2c95d50 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/VitalInterestImpl.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/impl/VitalInterestImpl.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;
@@ -36,7 +36,7 @@ import org.eclipse.uml2.uml.NamedElement;
* The following features are implemented:
*
*
- * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.VitalInterestImpl#getBase_NamedElement Base Named Element}
+ * - {@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.impl.VitalInterestImpl#getBase_NamedElement Base Named Element}
*
*
* @generated
@@ -46,7 +46,6 @@ public class VitalInterestImpl extends MinimalEObjectImpl.Container implements V
* The cached value of the '{@link #getBase_NamedElement() Base Named Element}' reference.
*
*
- *
* @see #getBase_NamedElement()
* @generated
* @ordered
@@ -56,7 +55,6 @@ public class VitalInterestImpl extends MinimalEObjectImpl.Container implements V
/**
*
*
- *
* @generated
*/
protected VitalInterestImpl() {
@@ -66,7 +64,6 @@ public class VitalInterestImpl extends MinimalEObjectImpl.Container implements V
/**
*
*
- *
* @generated
*/
@Override
@@ -77,18 +74,16 @@ public class VitalInterestImpl extends MinimalEObjectImpl.Container implements V
/**
*
*
- *
* @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.VITAL_INTEREST__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
}
return base_NamedElement;
@@ -97,7 +92,6 @@ public class VitalInterestImpl extends MinimalEObjectImpl.Container implements V
/**
*
*
- *
* @generated
*/
public NamedElement basicGetBase_NamedElement() {
@@ -107,32 +101,27 @@ public class VitalInterestImpl extends MinimalEObjectImpl.Container implements V
/**
*
*
- *
* @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.VITAL_INTEREST__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
- }
}
/**
*
*
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.VITAL_INTEREST__BASE_NAMED_ELEMENT:
- if (resolve) {
- return getBase_NamedElement();
- }
- return basicGetBase_NamedElement();
+ case Pdp4engCommonGDPRPackage.VITAL_INTEREST__BASE_NAMED_ELEMENT:
+ if (resolve) return getBase_NamedElement();
+ return basicGetBase_NamedElement();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -140,15 +129,14 @@ public class VitalInterestImpl extends MinimalEObjectImpl.Container implements V
/**
*
*
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.VITAL_INTEREST__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) newValue);
- return;
+ case Pdp4engCommonGDPRPackage.VITAL_INTEREST__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -156,15 +144,14 @@ public class VitalInterestImpl extends MinimalEObjectImpl.Container implements V
/**
*
*
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.VITAL_INTEREST__BASE_NAMED_ELEMENT:
- setBase_NamedElement((NamedElement) null);
- return;
+ case Pdp4engCommonGDPRPackage.VITAL_INTEREST__BASE_NAMED_ELEMENT:
+ setBase_NamedElement((NamedElement)null);
+ return;
}
super.eUnset(featureID);
}
@@ -172,16 +159,15 @@ public class VitalInterestImpl extends MinimalEObjectImpl.Container implements V
/**
*
*
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case Pdp4engCommonGDPRPackage.VITAL_INTEREST__BASE_NAMED_ELEMENT:
- return base_NamedElement != null;
+ case Pdp4engCommonGDPRPackage.VITAL_INTEREST__BASE_NAMED_ELEMENT:
+ return base_NamedElement != null;
}
return super.eIsSet(featureID);
}
-} // VitalInterestImpl
+} //VitalInterestImpl
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/util/Pdp4engCommonGDPRAdapterFactory.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/util/Pdp4engCommonGDPRAdapterFactory.java
index 733b92d..4f217ec 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/util/Pdp4engCommonGDPRAdapterFactory.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/util/Pdp4engCommonGDPRAdapterFactory.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.util;
@@ -41,7 +41,6 @@ import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.VitalInteres
* The Adapter Factory for the model.
* It provides an adapter createXXX
method for each class of the model.
*
- *
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Pdp4engCommonGDPRPackage
* @generated
*/
@@ -50,7 +49,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* The cached model package.
*
*
- *
* @generated
*/
protected static Pdp4engCommonGDPRPackage modelPackage;
@@ -59,7 +57,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* Creates an instance of the adapter factory.
*
*
- *
* @generated
*/
public Pdp4engCommonGDPRAdapterFactory() {
@@ -73,7 +70,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
*
* This implementation returns true
if the object is either the model's package or is an instance object of the model.
*
- *
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@@ -83,7 +79,7 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
return true;
}
if (object instanceof EObject) {
- return ((EObject) object).eClass().getEPackage() == modelPackage;
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
@@ -92,94 +88,79 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* The switch that delegates to the createXXX
methods.
*
*
- *
* @generated
*/
- protected Pdp4engCommonGDPRSwitch modelSwitch = new Pdp4engCommonGDPRSwitch() {
- @Override
- public Adapter caseProcess(org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process object) {
- return createProcessAdapter();
- }
-
- @Override
- public Adapter casePersonalData(PersonalData object) {
- return createPersonalDataAdapter();
- }
-
- @Override
- public Adapter caseData(Data object) {
- return createDataAdapter();
- }
-
- @Override
- public Adapter caseDataSubject(DataSubject object) {
- return createDataSubjectAdapter();
- }
-
- @Override
- public Adapter caseConsent(Consent object) {
- return createConsentAdapter();
- }
-
- @Override
- public Adapter casePurpose(Purpose object) {
- return createPurposeAdapter();
- }
-
- @Override
- public Adapter caseContract(Contract object) {
- return createContractAdapter();
- }
-
- @Override
- public Adapter caseController(Controller object) {
- return createControllerAdapter();
- }
-
- @Override
- public Adapter caseProcessor(Processor object) {
- return createProcessorAdapter();
- }
-
- @Override
- public Adapter casePublicInterest(PublicInterest object) {
- return createPublicInterestAdapter();
- }
-
- @Override
- public Adapter caseLegitimateInterest(LegitimateInterest object) {
- return createLegitimateInterestAdapter();
- }
-
- @Override
- public Adapter caseLegalObligation(LegalObligation object) {
- return createLegalObligationAdapter();
- }
-
- @Override
- public Adapter caseVitalInterest(VitalInterest object) {
- return createVitalInterestAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ protected Pdp4engCommonGDPRSwitch modelSwitch =
+ new Pdp4engCommonGDPRSwitch() {
+ @Override
+ public Adapter caseProcess(org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process object) {
+ return createProcessAdapter();
+ }
+ @Override
+ public Adapter casePersonalData(PersonalData object) {
+ return createPersonalDataAdapter();
+ }
+ @Override
+ public Adapter caseData(Data object) {
+ return createDataAdapter();
+ }
+ @Override
+ public Adapter caseDataSubject(DataSubject object) {
+ return createDataSubjectAdapter();
+ }
+ @Override
+ public Adapter caseConsent(Consent object) {
+ return createConsentAdapter();
+ }
+ @Override
+ public Adapter casePurpose(Purpose object) {
+ return createPurposeAdapter();
+ }
+ @Override
+ public Adapter caseContract(Contract object) {
+ return createContractAdapter();
+ }
+ @Override
+ public Adapter caseController(Controller object) {
+ return createControllerAdapter();
+ }
+ @Override
+ public Adapter caseProcessor(Processor object) {
+ return createProcessorAdapter();
+ }
+ @Override
+ public Adapter casePublicInterest(PublicInterest object) {
+ return createPublicInterestAdapter();
+ }
+ @Override
+ public Adapter caseLegitimateInterest(LegitimateInterest object) {
+ return createLegitimateInterestAdapter();
+ }
+ @Override
+ public Adapter caseLegalObligation(LegalObligation object) {
+ return createLegalObligationAdapter();
+ }
+ @Override
+ public Adapter caseVitalInterest(VitalInterest object) {
+ return createVitalInterestAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
/**
* Creates an adapter for the target
.
*
*
- *
- * @param target
- * the object to adapt.
+ * @param target the object to adapt.
* @return the adapter for the target
.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject) target);
+ return modelSwitch.doSwitch((EObject)target);
}
@@ -189,7 +170,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process
* @generated
@@ -204,7 +184,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.PersonalData
* @generated
@@ -219,7 +198,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Data
* @generated
@@ -234,7 +212,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.DataSubject
* @generated
@@ -249,7 +226,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Consent
* @generated
@@ -264,7 +240,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Purpose
* @generated
@@ -279,7 +254,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Contract
* @generated
@@ -294,7 +268,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Controller
* @generated
@@ -309,7 +282,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Processor
* @generated
@@ -324,7 +296,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.PublicInterest
* @generated
@@ -339,7 +310,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.LegitimateInterest
* @generated
@@ -354,7 +324,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.LegalObligation
* @generated
@@ -369,7 +338,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
*
- *
* @return the new adapter.
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.VitalInterest
* @generated
@@ -383,7 +351,6 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
*
* This default implementation returns null.
*
- *
* @return the new adapter.
* @generated
*/
@@ -391,4 +358,4 @@ public class Pdp4engCommonGDPRAdapterFactory extends AdapterFactoryImpl {
return null;
}
-} // Pdp4engCommonGDPRAdapterFactory
+} //Pdp4engCommonGDPRAdapterFactory
diff --git a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/util/Pdp4engCommonGDPRSwitch.java b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/util/Pdp4engCommonGDPRSwitch.java
index f3dbf55..d97169c 100644
--- a/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/util/Pdp4engCommonGDPRSwitch.java
+++ b/plugins/common/org.eclipse.papyrus.pdp4eng.common.profile/src-gen/org/eclipse/papyrus/pdp4eng/common/profile/pdp4engCommonGDPR/util/Pdp4engCommonGDPRSwitch.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.util;
@@ -44,7 +44,6 @@ import org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.VitalInteres
* until a non-null result is returned,
* which is the result of the switch.
*
- *
* @see org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Pdp4engCommonGDPRPackage
* @generated
*/
@@ -53,7 +52,6 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* The cached model package
*
*
- *
* @generated
*/
protected static Pdp4engCommonGDPRPackage modelPackage;
@@ -62,7 +60,6 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* Creates an instance of the switch.
*
*
- *
* @generated
*/
public Pdp4engCommonGDPRSwitch() {
@@ -75,9 +72,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* Checks whether this is a switch for the given package.
*
*
- *
- * @param ePackage
- * the package in question.
+ * @param ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
@@ -90,122 +85,92 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* Calls caseXXX
for each class of the model until one returns a non null result; it yields that result.
*
*
- *
* @return the first non-null result returned by a caseXXX
call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
- case Pdp4engCommonGDPRPackage.PROCESS: {
- org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process process = (org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process) theEObject;
- T result = caseProcess(process);
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.PROCESS: {
+ org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process process = (org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process)theEObject;
+ T result = caseProcess(process);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case Pdp4engCommonGDPRPackage.PERSONAL_DATA: {
- PersonalData personalData = (PersonalData) theEObject;
- T result = casePersonalData(personalData);
- if (result == null) {
- result = caseData(personalData);
+ case Pdp4engCommonGDPRPackage.PERSONAL_DATA: {
+ PersonalData personalData = (PersonalData)theEObject;
+ T result = casePersonalData(personalData);
+ if (result == null) result = caseData(personalData);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.DATA: {
+ Data data = (Data)theEObject;
+ T result = caseData(data);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case Pdp4engCommonGDPRPackage.DATA: {
- Data data = (Data) theEObject;
- T result = caseData(data);
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.DATA_SUBJECT: {
+ DataSubject dataSubject = (DataSubject)theEObject;
+ T result = caseDataSubject(dataSubject);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case Pdp4engCommonGDPRPackage.DATA_SUBJECT: {
- DataSubject dataSubject = (DataSubject) theEObject;
- T result = caseDataSubject(dataSubject);
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.CONSENT: {
+ Consent consent = (Consent)theEObject;
+ T result = caseConsent(consent);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case Pdp4engCommonGDPRPackage.CONSENT: {
- Consent consent = (Consent) theEObject;
- T result = caseConsent(consent);
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.PURPOSE: {
+ Purpose purpose = (Purpose)theEObject;
+ T result = casePurpose(purpose);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case Pdp4engCommonGDPRPackage.PURPOSE: {
- Purpose purpose = (Purpose) theEObject;
- T result = casePurpose(purpose);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case Pdp4engCommonGDPRPackage.CONTRACT: {
- Contract contract = (Contract) theEObject;
- T result = caseContract(contract);
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.CONTRACT: {
+ Contract contract = (Contract)theEObject;
+ T result = caseContract(contract);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case Pdp4engCommonGDPRPackage.CONTROLLER: {
- Controller controller = (Controller) theEObject;
- T result = caseController(controller);
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.CONTROLLER: {
+ Controller controller = (Controller)theEObject;
+ T result = caseController(controller);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case Pdp4engCommonGDPRPackage.PROCESSOR: {
- Processor processor = (Processor) theEObject;
- T result = caseProcessor(processor);
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.PROCESSOR: {
+ Processor processor = (Processor)theEObject;
+ T result = caseProcessor(processor);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST: {
- PublicInterest publicInterest = (PublicInterest) theEObject;
- T result = casePublicInterest(publicInterest);
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.PUBLIC_INTEREST: {
+ PublicInterest publicInterest = (PublicInterest)theEObject;
+ T result = casePublicInterest(publicInterest);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST: {
- LegitimateInterest legitimateInterest = (LegitimateInterest) theEObject;
- T result = caseLegitimateInterest(legitimateInterest);
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.LEGITIMATE_INTEREST: {
+ LegitimateInterest legitimateInterest = (LegitimateInterest)theEObject;
+ T result = caseLegitimateInterest(legitimateInterest);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION: {
- LegalObligation legalObligation = (LegalObligation) theEObject;
- T result = caseLegalObligation(legalObligation);
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.LEGAL_OBLIGATION: {
+ LegalObligation legalObligation = (LegalObligation)theEObject;
+ T result = caseLegalObligation(legalObligation);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- case Pdp4engCommonGDPRPackage.VITAL_INTEREST: {
- VitalInterest vitalInterest = (VitalInterest) theEObject;
- T result = caseVitalInterest(vitalInterest);
- if (result == null) {
- result = defaultCase(theEObject);
+ case Pdp4engCommonGDPRPackage.VITAL_INTEREST: {
+ VitalInterest vitalInterest = (VitalInterest)theEObject;
+ T result = caseVitalInterest(vitalInterest);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
}
- return result;
- }
- default:
- return defaultCase(theEObject);
+ default: return defaultCase(theEObject);
}
}
@@ -215,9 +180,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Process'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -232,9 +195,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Personal Data'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -249,9 +210,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Data'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -266,9 +225,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Data Subject'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -283,9 +240,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Consent'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -300,9 +255,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Purpose'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -317,9 +270,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Contract'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -334,9 +285,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Controller'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -351,9 +300,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Processor'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -368,9 +315,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Public Interest'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -385,9 +330,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Legitimate Interest'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -402,9 +345,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Legal Obligation'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -419,9 +360,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Vital Interest'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -436,9 +375,7 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
*
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'EObject'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
@@ -448,4 +385,4 @@ public class Pdp4engCommonGDPRSwitch extends Switch {
return null;
}
-} // Pdp4engCommonGDPRSwitch
+} //Pdp4engCommonGDPRSwitch
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.ecore b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.ecore
index 3a34dec..5c4e24b 100644
--- a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.ecore
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.ecore
@@ -201,4 +201,5 @@
+
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.genmodel b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.genmodel
index cee7e9c..c90492e 100644
--- a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.genmodel
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.genmodel
@@ -2,7 +2,7 @@
+
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.profile.notation b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.profile.notation
index 52becf4..980f75d 100644
--- a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.profile.notation
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.profile.notation
@@ -1158,21 +1158,21 @@
-
-
-
+
+
+
-
+
-
-
-
+
+
+
-
+
@@ -1243,25 +1243,25 @@
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
@@ -1784,23 +1784,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1906,6 +1889,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1977,5 +1977,16 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.profile.uml b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.profile.uml
index 56e2e6b..3299baa 100644
--- a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.profile.uml
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/model/pdp4engReqGDPR.profile.uml
@@ -389,6 +389,9 @@
+
+
+
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/LawfullBySafeGuard.java b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/LawfullBySafeGuard.java
new file mode 100644
index 0000000..f4c68b9
--- /dev/null
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/LawfullBySafeGuard.java
@@ -0,0 +1,31 @@
+/**
+ * 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.req.profile.pdp4engReqGDPR;
+
+
+/**
+ *
+ * A representation of the model object 'Lawfull By Safe Guard'.
+ *
+ *
+ *
+ * @see org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.pdp4engReqGDPRPackage#getLawfullBySafeGuard()
+ * @model
+ * @generated
+ */
+public interface LawfullBySafeGuard extends Lawful {
+} // LawfullBySafeGuard
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/impl/LawfullBySafeGuardImpl.java b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/impl/LawfullBySafeGuardImpl.java
new file mode 100644
index 0000000..a40cdbb
--- /dev/null
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/impl/LawfullBySafeGuardImpl.java
@@ -0,0 +1,51 @@
+/**
+ * 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.req.profile.pdp4engReqGDPR.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.LawfullBySafeGuard;
+import org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.pdp4engReqGDPRPackage;
+
+/**
+ *
+ * An implementation of the model object 'Lawfull By Safe Guard'.
+ *
+ *
+ * @generated
+ */
+public class LawfullBySafeGuardImpl extends LawfulImpl implements LawfullBySafeGuard {
+ /**
+ *
+ *
+ * @generated
+ */
+ protected LawfullBySafeGuardImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return pdp4engReqGDPRPackage.Literals.LAWFULL_BY_SAFE_GUARD;
+ }
+
+} //LawfullBySafeGuardImpl
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/impl/pdp4engReqGDPRFactoryImpl.java b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/impl/pdp4engReqGDPRFactoryImpl.java
index 2241567..b631262 100644
--- a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/impl/pdp4engReqGDPRFactoryImpl.java
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/impl/pdp4engReqGDPRFactoryImpl.java
@@ -115,6 +115,7 @@ public class pdp4engReqGDPRFactoryImpl extends EFactoryImpl implements pdp4engRe
case pdp4engReqGDPRPackage.LAWFUL_BY_LEGITIMATE_INTEREST: return createLawfulByLegitimateInterest();
case pdp4engReqGDPRPackage.LAWFUL_BY_LEGAL_OBLIGATION: return createLawfulByLegalObligation();
case pdp4engReqGDPRPackage.LAWFUL_BY_VITAL_INTEREST: return createLawfulByVitalInterest();
+ case pdp4engReqGDPRPackage.LAWFULL_BY_SAFE_GUARD: return createLawfullBySafeGuard();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
@@ -646,6 +647,17 @@ public class pdp4engReqGDPRFactoryImpl extends EFactoryImpl implements pdp4engRe
return lawfulByVitalInterest;
}
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public LawfullBySafeGuard createLawfullBySafeGuard() {
+ LawfullBySafeGuardImpl lawfullBySafeGuard = new LawfullBySafeGuardImpl();
+ return lawfullBySafeGuard;
+ }
+
/**
*
*
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/impl/pdp4engReqGDPRPackageImpl.java b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/impl/pdp4engReqGDPRPackageImpl.java
index 03414e4..c678a01 100644
--- a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/impl/pdp4engReqGDPRPackageImpl.java
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/impl/pdp4engReqGDPRPackageImpl.java
@@ -54,6 +54,7 @@ import org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.LawfulByLegalOblig
import org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.LawfulByLegitimateInterest;
import org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.LawfulByPublicInterest;
import org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.LawfulByVitalInterest;
+import org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.LawfullBySafeGuard;
import org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.Link;
import org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.Linkability;
import org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.Linkable;
@@ -397,6 +398,13 @@ public class pdp4engReqGDPRPackageImpl extends EPackageImpl implements pdp4engRe
*/
private EClass lawfulByVitalInterestEClass = null;
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass lawfullBySafeGuardEClass = null;
+
/**
*
*
@@ -1422,6 +1430,16 @@ public class pdp4engReqGDPRPackageImpl extends EPackageImpl implements pdp4engRe
return (EReference)lawfulByVitalInterestEClass.getEStructuralFeatures().get(0);
}
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EClass getLawfullBySafeGuard() {
+ return lawfullBySafeGuardEClass;
+ }
+
/**
*
*
@@ -1628,6 +1646,8 @@ public class pdp4engReqGDPRPackageImpl extends EPackageImpl implements pdp4engRe
lawfulByVitalInterestEClass = createEClass(LAWFUL_BY_VITAL_INTEREST);
createEReference(lawfulByVitalInterestEClass, LAWFUL_BY_VITAL_INTEREST__VITAL_INTEREST);
+ lawfullBySafeGuardEClass = createEClass(LAWFULL_BY_SAFE_GUARD);
+
// Create enums
linkabilityEEnum = createEEnum(LINKABILITY);
collectionMethodEEnum = createEEnum(COLLECTION_METHOD);
@@ -1692,6 +1712,7 @@ public class pdp4engReqGDPRPackageImpl extends EPackageImpl implements pdp4engRe
lawfulByLegitimateInterestEClass.getESuperTypes().add(this.getLawful());
lawfulByLegalObligationEClass.getESuperTypes().add(this.getLawful());
lawfulByVitalInterestEClass.getESuperTypes().add(this.getLawful());
+ lawfullBySafeGuardEClass.getESuperTypes().add(this.getLawful());
// Initialize classes, features, and operations; add parameters
initEClass(processRequirementEClass, ProcessRequirement.class, "ProcessRequirement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
@@ -1831,6 +1852,8 @@ public class pdp4engReqGDPRPackageImpl extends EPackageImpl implements pdp4engRe
initEClass(lawfulByVitalInterestEClass, LawfulByVitalInterest.class, "LawfulByVitalInterest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getLawfulByVitalInterest_VitalInterest(), thePdp4engCommonGDPRPackage.getVitalInterest(), null, "vitalInterest", null, 1, 1, LawfulByVitalInterest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEClass(lawfullBySafeGuardEClass, LawfullBySafeGuard.class, "LawfullBySafeGuard", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
// Initialize enums and add enum literals
initEEnum(linkabilityEEnum, Linkability.class, "Linkability");
addEEnumLiteral(linkabilityEEnum, Linkability.SINGLE);
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/pdp4engReqGDPRFactory.java b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/pdp4engReqGDPRFactory.java
index 99f3336..ee5c392 100644
--- a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/pdp4engReqGDPRFactory.java
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/pdp4engReqGDPRFactory.java
@@ -431,6 +431,15 @@ public interface pdp4engReqGDPRFactory extends EFactory {
*/
LawfulByVitalInterest createLawfulByVitalInterest();
+ /**
+ * Returns a new object of class 'Lawfull By Safe Guard'.
+ *
+ *
+ * @return a new object of class 'Lawfull By Safe Guard'.
+ * @generated
+ */
+ LawfullBySafeGuard createLawfullBySafeGuard();
+
/**
* Returns the package supported by this factory.
*
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/pdp4engReqGDPRPackage.java b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/pdp4engReqGDPRPackage.java
index 7bfc69d..02a88e9 100644
--- a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/pdp4engReqGDPRPackage.java
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/pdp4engReqGDPRPackage.java
@@ -2556,6 +2556,70 @@ public interface pdp4engReqGDPRPackage extends EPackage {
*/
int LAWFUL_BY_VITAL_INTEREST_OPERATION_COUNT = LAWFUL_OPERATION_COUNT + 0;
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.impl.LawfullBySafeGuardImpl Lawfull By Safe Guard}' class.
+ *
+ *
+ * @see org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.impl.LawfullBySafeGuardImpl
+ * @see org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.impl.pdp4engReqGDPRPackageImpl#getLawfullBySafeGuard()
+ * @generated
+ */
+ int LAWFULL_BY_SAFE_GUARD = 44;
+
+ /**
+ * The feature id for the 'Base Named Element' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int LAWFULL_BY_SAFE_GUARD__BASE_NAMED_ELEMENT = LAWFUL__BASE_NAMED_ELEMENT;
+
+ /**
+ * The feature id for the 'Process' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int LAWFULL_BY_SAFE_GUARD__PROCESS = LAWFUL__PROCESS;
+
+ /**
+ * The feature id for the 'Data Subject' reference.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int LAWFULL_BY_SAFE_GUARD__DATA_SUBJECT = LAWFUL__DATA_SUBJECT;
+
+ /**
+ * The feature id for the 'Personal Data' reference list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int LAWFULL_BY_SAFE_GUARD__PERSONAL_DATA = LAWFUL__PERSONAL_DATA;
+
+ /**
+ * The number of structural features of the 'Lawfull By Safe Guard' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int LAWFULL_BY_SAFE_GUARD_FEATURE_COUNT = LAWFUL_FEATURE_COUNT + 0;
+
+ /**
+ * The number of operations of the 'Lawfull By Safe Guard' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int LAWFULL_BY_SAFE_GUARD_OPERATION_COUNT = LAWFUL_OPERATION_COUNT + 0;
+
/**
* The meta object id for the '{@link org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.Linkability Linkability}' enum.
*
@@ -2564,7 +2628,7 @@ public interface pdp4engReqGDPRPackage extends EPackage {
* @see org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.impl.pdp4engReqGDPRPackageImpl#getLinkability()
* @generated
*/
- int LINKABILITY = 44;
+ int LINKABILITY = 45;
/**
* The meta object id for the '{@link org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.CollectionMethod Collection Method}' enum.
@@ -2574,7 +2638,7 @@ public interface pdp4engReqGDPRPackage extends EPackage {
* @see org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.impl.pdp4engReqGDPRPackageImpl#getCollectionMethod()
* @generated
*/
- int COLLECTION_METHOD = 45;
+ int COLLECTION_METHOD = 46;
/**
* The meta object id for the '{@link org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.Duration Duration}' enum.
@@ -2584,7 +2648,7 @@ public interface pdp4engReqGDPRPackage extends EPackage {
* @see org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.impl.pdp4engReqGDPRPackageImpl#getDuration()
* @generated
*/
- int DURATION = 46;
+ int DURATION = 47;
/**
* The meta object id for the '{@link org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.PseudonymKind Pseudonym Kind}' enum.
@@ -2594,7 +2658,7 @@ public interface pdp4engReqGDPRPackage extends EPackage {
* @see org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.impl.pdp4engReqGDPRPackageImpl#getPseudonymKind()
* @generated
*/
- int PSEUDONYM_KIND = 47;
+ int PSEUDONYM_KIND = 48;
/**
@@ -3576,6 +3640,16 @@ public interface pdp4engReqGDPRPackage extends EPackage {
*/
EReference getLawfulByVitalInterest_VitalInterest();
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.LawfullBySafeGuard Lawfull By Safe Guard}'.
+ *
+ *
+ * @return the meta object for class 'Lawfull By Safe Guard'.
+ * @see org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.LawfullBySafeGuard
+ * @generated
+ */
+ EClass getLawfullBySafeGuard();
+
/**
* Returns the meta object for enum '{@link org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.Linkability Linkability}'.
*
@@ -4471,6 +4545,16 @@ public interface pdp4engReqGDPRPackage extends EPackage {
*/
EReference LAWFUL_BY_VITAL_INTEREST__VITAL_INTEREST = eINSTANCE.getLawfulByVitalInterest_VitalInterest();
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.impl.LawfullBySafeGuardImpl Lawfull By Safe Guard}' class.
+ *
+ *
+ * @see org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.impl.LawfullBySafeGuardImpl
+ * @see org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.impl.pdp4engReqGDPRPackageImpl#getLawfullBySafeGuard()
+ * @generated
+ */
+ EClass LAWFULL_BY_SAFE_GUARD = eINSTANCE.getLawfullBySafeGuard();
+
/**
* The meta object literal for the '{@link org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.Linkability Linkability}' enum.
*
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/util/pdp4engReqGDPRAdapterFactory.java b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/util/pdp4engReqGDPRAdapterFactory.java
index ce835f8..fb88b1b 100644
--- a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/util/pdp4engReqGDPRAdapterFactory.java
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/util/pdp4engReqGDPRAdapterFactory.java
@@ -261,6 +261,10 @@ public class pdp4engReqGDPRAdapterFactory extends AdapterFactoryImpl {
return createLawfulByVitalInterestAdapter();
}
@Override
+ public Adapter caseLawfullBySafeGuard(LawfullBySafeGuard object) {
+ return createLawfullBySafeGuardAdapter();
+ }
+ @Override
public Adapter caseProcess(org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process object) {
return createProcessAdapter();
}
@@ -908,6 +912,20 @@ public class pdp4engReqGDPRAdapterFactory extends AdapterFactoryImpl {
return null;
}
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.LawfullBySafeGuard Lawfull By Safe Guard}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.pdp4eng.req.profile.pdp4engReqGDPR.LawfullBySafeGuard
+ * @generated
+ */
+ public Adapter createLawfullBySafeGuardAdapter() {
+ return null;
+ }
+
/**
* Creates a new adapter for an object of class '{@link org.eclipse.papyrus.pdp4eng.common.profile.pdp4engCommonGDPR.Process Process}'.
*
diff --git a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/util/pdp4engReqGDPRSwitch.java b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/util/pdp4engReqGDPRSwitch.java
index c272dde..48301be 100644
--- a/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/util/pdp4engReqGDPRSwitch.java
+++ b/plugins/req/org.eclipse.papyrus.pdp4eng.req.profile/src-gen/org/eclipse/papyrus/pdp4eng/req/profile/pdp4engReqGDPR/util/pdp4engReqGDPRSwitch.java
@@ -394,6 +394,15 @@ public class pdp4engReqGDPRSwitch extends Switch {
if (result == null) result = defaultCase(theEObject);
return result;
}
+ case pdp4engReqGDPRPackage.LAWFULL_BY_SAFE_GUARD: {
+ LawfullBySafeGuard lawfullBySafeGuard = (LawfullBySafeGuard)theEObject;
+ T result = caseLawfullBySafeGuard(lawfullBySafeGuard);
+ if (result == null) result = caseLawful(lawfullBySafeGuard);
+ if (result == null) result = caseProcessPrinciple(lawfullBySafeGuard);
+ if (result == null) result = caseGDPRPrinciple(lawfullBySafeGuard);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
default: return defaultCase(theEObject);
}
}
@@ -1058,6 +1067,21 @@ public class pdp4engReqGDPRSwitch extends Switch {
return null;
}
+ /**
+ * Returns the result of interpreting the object as an instance of 'Lawfull By Safe Guard'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Lawfull By Safe Guard'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLawfullBySafeGuard(LawfullBySafeGuard object) {
+ return null;
+ }
+
/**
* Returns the result of interpreting the object as an instance of 'Process'.
*
--
cgit v1.2.3