From 5fd28fe3201ad6e316fea3688bd89130bc29bc13 Mon Sep 17 00:00:00 2001 From: ArenBabikian Date: Wed, 13 May 2020 00:16:27 -0400 Subject: Adjust FamilyTree MM. Add new Taxation MM with possible Multiple Roots --- .../impl/DS_for_Permanent_ExpenseImpl.java | 165 +++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Permanent_ExpenseImpl.java (limited to 'Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Permanent_ExpenseImpl.java') diff --git a/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Permanent_ExpenseImpl.java b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Permanent_ExpenseImpl.java new file mode 100644 index 00000000..09859cfc --- /dev/null +++ b/Tests/MODELS2020-CaseStudies/case.study.pledge.model/src/TaxationWithRoot/impl/DS_for_Permanent_ExpenseImpl.java @@ -0,0 +1,165 @@ +/** + */ +package TaxationWithRoot.impl; + +import TaxationWithRoot.Category_of_Permanent_Expense; +import TaxationWithRoot.DS_for_Permanent_Expense; +import TaxationWithRoot.TaxationPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'DS for Permanent Expense'. + * + *

+ * The following features are implemented: + *

+ * + * + * @generated + */ +public class DS_for_Permanent_ExpenseImpl extends DSImpl implements DS_for_Permanent_Expense { + /** + * The default value of the '{@link #getPermanent_expense_category() Permanent expense category}' attribute. + * + * + * @see #getPermanent_expense_category() + * @generated + * @ordered + */ + protected static final Category_of_Permanent_Expense PERMANENT_EXPENSE_CATEGORY_EDEFAULT = Category_of_Permanent_Expense.MISCELLANEOUS_DEBT; + + /** + * The cached value of the '{@link #getPermanent_expense_category() Permanent expense category}' attribute. + * + * + * @see #getPermanent_expense_category() + * @generated + * @ordered + */ + protected Category_of_Permanent_Expense permanent_expense_category = PERMANENT_EXPENSE_CATEGORY_EDEFAULT; + + /** + * + * + * @generated + */ + protected DS_for_Permanent_ExpenseImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TaxationPackage.Literals.DS_FOR_PERMANENT_EXPENSE; + } + + /** + * + * + * @generated + */ + @Override + public Category_of_Permanent_Expense getPermanent_expense_category() { + return permanent_expense_category; + } + + /** + * + * + * @generated + */ + @Override + public void setPermanent_expense_category(Category_of_Permanent_Expense newPermanent_expense_category) { + Category_of_Permanent_Expense oldPermanent_expense_category = permanent_expense_category; + permanent_expense_category = newPermanent_expense_category == null ? PERMANENT_EXPENSE_CATEGORY_EDEFAULT : newPermanent_expense_category; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.DS_FOR_PERMANENT_EXPENSE__PERMANENT_EXPENSE_CATEGORY, oldPermanent_expense_category, permanent_expense_category)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TaxationPackage.DS_FOR_PERMANENT_EXPENSE__PERMANENT_EXPENSE_CATEGORY: + return getPermanent_expense_category(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TaxationPackage.DS_FOR_PERMANENT_EXPENSE__PERMANENT_EXPENSE_CATEGORY: + setPermanent_expense_category((Category_of_Permanent_Expense)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TaxationPackage.DS_FOR_PERMANENT_EXPENSE__PERMANENT_EXPENSE_CATEGORY: + setPermanent_expense_category(PERMANENT_EXPENSE_CATEGORY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TaxationPackage.DS_FOR_PERMANENT_EXPENSE__PERMANENT_EXPENSE_CATEGORY: + return permanent_expense_category != PERMANENT_EXPENSE_CATEGORY_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (permanent_expense_category: "); + result.append(permanent_expense_category); + result.append(')'); + return result.toString(); + } + +} //DS_for_Permanent_ExpenseImpl -- cgit v1.2.3-70-g09d2