/**
*/
package TaxationWithRoot.impl;
import TaxationWithRoot.Category_of_Health_and_Pension_Insurances;
import TaxationWithRoot.DS_for_Health_and_Pension_Insurance;
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 Health and Pension Insurance'.
*
*
* The following features are implemented:
*
*
* - {@link TaxationWithRoot.impl.DS_for_Health_and_Pension_InsuranceImpl#getInsurance_category Insurance category}
*
*
* @generated
*/
public class DS_for_Health_and_Pension_InsuranceImpl extends DSImpl implements DS_for_Health_and_Pension_Insurance {
/**
* The default value of the '{@link #getInsurance_category() Insurance category}' attribute.
*
*
* @see #getInsurance_category()
* @generated
* @ordered
*/
protected static final Category_of_Health_and_Pension_Insurances INSURANCE_CATEGORY_EDEFAULT = Category_of_Health_and_Pension_Insurances.MANDATORY_HEALTH_AND_PENSION_INSURANCE;
/**
* The cached value of the '{@link #getInsurance_category() Insurance category}' attribute.
*
*
* @see #getInsurance_category()
* @generated
* @ordered
*/
protected Category_of_Health_and_Pension_Insurances insurance_category = INSURANCE_CATEGORY_EDEFAULT;
/**
*
*
* @generated
*/
protected DS_for_Health_and_Pension_InsuranceImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return TaxationPackage.Literals.DS_FOR_HEALTH_AND_PENSION_INSURANCE;
}
/**
*
*
* @generated
*/
@Override
public Category_of_Health_and_Pension_Insurances getInsurance_category() {
return insurance_category;
}
/**
*
*
* @generated
*/
@Override
public void setInsurance_category(Category_of_Health_and_Pension_Insurances newInsurance_category) {
Category_of_Health_and_Pension_Insurances oldInsurance_category = insurance_category;
insurance_category = newInsurance_category == null ? INSURANCE_CATEGORY_EDEFAULT : newInsurance_category;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, TaxationPackage.DS_FOR_HEALTH_AND_PENSION_INSURANCE__INSURANCE_CATEGORY, oldInsurance_category, insurance_category));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case TaxationPackage.DS_FOR_HEALTH_AND_PENSION_INSURANCE__INSURANCE_CATEGORY:
return getInsurance_category();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case TaxationPackage.DS_FOR_HEALTH_AND_PENSION_INSURANCE__INSURANCE_CATEGORY:
setInsurance_category((Category_of_Health_and_Pension_Insurances)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case TaxationPackage.DS_FOR_HEALTH_AND_PENSION_INSURANCE__INSURANCE_CATEGORY:
setInsurance_category(INSURANCE_CATEGORY_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case TaxationPackage.DS_FOR_HEALTH_AND_PENSION_INSURANCE__INSURANCE_CATEGORY:
return insurance_category != INSURANCE_CATEGORY_EDEFAULT;
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (insurance_category: ");
result.append(insurance_category);
result.append(')');
return result.toString();
}
} //DS_for_Health_and_Pension_InsuranceImpl