From 750b37401bc3eb3e9deb7126d90f871973ba477b Mon Sep 17 00:00:00 2001
From: ArenBabikian
Date: Mon, 11 May 2020 10:06:57 -0400
Subject: Remove derived features from the PLEDGE MM
---
.../src/Taxation/impl/External_AllowanceImpl.java | 58 +---------------------
1 file changed, 1 insertion(+), 57 deletions(-)
(limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/External_AllowanceImpl.java')
diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/External_AllowanceImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/External_AllowanceImpl.java
index d73a0014..5a846b56 100644
--- a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/External_AllowanceImpl.java
+++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/Taxation/impl/External_AllowanceImpl.java
@@ -27,7 +27,6 @@ import org.eclipse.emf.ecore.util.EcoreUtil;
* The following features are implemented:
*
*
- * - {@link Taxation.impl.External_AllowanceImpl#getAmount Amount}
* - {@link Taxation.impl.External_AllowanceImpl#getGrantor Grantor}
* - {@link Taxation.impl.External_AllowanceImpl#getStarting_year Starting year}
* - {@link Taxation.impl.External_AllowanceImpl#getEnding_year Ending year}
@@ -39,26 +38,6 @@ import org.eclipse.emf.ecore.util.EcoreUtil;
* @generated
*/
public class External_AllowanceImpl extends MinimalEObjectImpl.Container implements External_Allowance {
- /**
- * The default value of the '{@link #getAmount() Amount}' attribute.
- *
- *
- * @see #getAmount()
- * @generated
- * @ordered
- */
- protected static final double AMOUNT_EDEFAULT = 0.0;
-
- /**
- * The cached value of the '{@link #getAmount() Amount}' attribute.
- *
- *
- * @see #getAmount()
- * @generated
- * @ordered
- */
- protected double amount = AMOUNT_EDEFAULT;
-
/**
* The default value of the '{@link #getGrantor() Grantor}' attribute.
*
@@ -168,29 +147,6 @@ public class External_AllowanceImpl extends MinimalEObjectImpl.Container impleme
return TaxationPackage.Literals.EXTERNAL_ALLOWANCE;
}
- /**
- *
- *
- * @generated
- */
- @Override
- public double getAmount() {
- return amount;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setAmount(double newAmount) {
- double oldAmount = amount;
- amount = newAmount;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.EXTERNAL_ALLOWANCE__AMOUNT, oldAmount, amount));
- }
-
/**
*
*
@@ -418,8 +374,6 @@ public class External_AllowanceImpl extends MinimalEObjectImpl.Container impleme
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case TaxationPackage.EXTERNAL_ALLOWANCE__AMOUNT:
- return getAmount();
case TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR:
return getGrantor();
case TaxationPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR:
@@ -445,9 +399,6 @@ public class External_AllowanceImpl extends MinimalEObjectImpl.Container impleme
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case TaxationPackage.EXTERNAL_ALLOWANCE__AMOUNT:
- setAmount((Double)newValue);
- return;
case TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR:
setGrantor((Grantor)newValue);
return;
@@ -478,9 +429,6 @@ public class External_AllowanceImpl extends MinimalEObjectImpl.Container impleme
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case TaxationPackage.EXTERNAL_ALLOWANCE__AMOUNT:
- setAmount(AMOUNT_EDEFAULT);
- return;
case TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR:
setGrantor(GRANTOR_EDEFAULT);
return;
@@ -511,8 +459,6 @@ public class External_AllowanceImpl extends MinimalEObjectImpl.Container impleme
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case TaxationPackage.EXTERNAL_ALLOWANCE__AMOUNT:
- return amount != AMOUNT_EDEFAULT;
case TaxationPackage.EXTERNAL_ALLOWANCE__GRANTOR:
return grantor != GRANTOR_EDEFAULT;
case TaxationPackage.EXTERNAL_ALLOWANCE__STARTING_YEAR:
@@ -539,9 +485,7 @@ public class External_AllowanceImpl extends MinimalEObjectImpl.Container impleme
if (eIsProxy()) return super.toString();
StringBuilder result = new StringBuilder(super.toString());
- result.append(" (amount: ");
- result.append(amount);
- result.append(", grantor: ");
+ result.append(" (grantor: ");
result.append(grantor);
result.append(", starting_year: ");
result.append(starting_year);
--
cgit v1.2.3-70-g09d2