/** */ package hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.impl; import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.Ecore2logicannotationsPackage; import hu.bme.mit.inf.dslreasoner.ecore2logic.ecore2logicannotations.LowerMultiplicityAssertion; 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 'Lower Multiplicity Assertion'. * *

* The following features are implemented: *

* * * @generated */ public class LowerMultiplicityAssertionImpl extends MultiplicityAssertionImpl implements LowerMultiplicityAssertion { /** * The default value of the '{@link #getLower() Lower}' attribute. * * * @see #getLower() * @generated * @ordered */ protected static final int LOWER_EDEFAULT = 0; /** * The cached value of the '{@link #getLower() Lower}' attribute. * * * @see #getLower() * @generated * @ordered */ protected int lower = LOWER_EDEFAULT; /** * * * @generated */ protected LowerMultiplicityAssertionImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return Ecore2logicannotationsPackage.Literals.LOWER_MULTIPLICITY_ASSERTION; } /** * * * @generated */ public int getLower() { return lower; } /** * * * @generated */ public void setLower(int newLower) { int oldLower = lower; lower = newLower; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Ecore2logicannotationsPackage.LOWER_MULTIPLICITY_ASSERTION__LOWER, oldLower, lower)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case Ecore2logicannotationsPackage.LOWER_MULTIPLICITY_ASSERTION__LOWER: return getLower(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case Ecore2logicannotationsPackage.LOWER_MULTIPLICITY_ASSERTION__LOWER: setLower((Integer)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case Ecore2logicannotationsPackage.LOWER_MULTIPLICITY_ASSERTION__LOWER: setLower(LOWER_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case Ecore2logicannotationsPackage.LOWER_MULTIPLICITY_ASSERTION__LOWER: return lower != LOWER_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (lower: "); result.append(lower); result.append(')'); return result.toString(); } } //LowerMultiplicityAssertionImpl