All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.afplib.afplib.impl.GSFLWImpl Maven / Gradle / Ivy

/**
 */
package org.afplib.afplib.impl;

import org.afplib.afplib.AfplibPackage;
import org.afplib.afplib.GSFLW;

import org.afplib.base.impl.TripletImpl;

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 'GSFLW'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.afplib.afplib.impl.GSFLWImpl#getMH MH}
  • *
  • {@link org.afplib.afplib.impl.GSFLWImpl#getMFR MFR}
  • *
* * @generated */ public class GSFLWImpl extends TripletImpl implements GSFLW { /** * The default value of the '{@link #getMH() MH}' attribute. * * * @see #getMH() * @generated * @ordered */ protected static final Integer MH_EDEFAULT = null; /** * The cached value of the '{@link #getMH() MH}' attribute. * * * @see #getMH() * @generated * @ordered */ protected Integer mh = MH_EDEFAULT; /** * The default value of the '{@link #getMFR() MFR}' attribute. * * * @see #getMFR() * @generated * @ordered */ protected static final Integer MFR_EDEFAULT = null; /** * The cached value of the '{@link #getMFR() MFR}' attribute. * * * @see #getMFR() * @generated * @ordered */ protected Integer mfr = MFR_EDEFAULT; /** * * * @generated */ protected GSFLWImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return AfplibPackage.Literals.GSFLW; } /** * * * @generated */ public Integer getMH() { return mh; } /** * * * @generated */ public void setMH(Integer newMH) { Integer oldMH = mh; mh = newMH; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.GSFLW__MH, oldMH, mh)); } /** * * * @generated */ public Integer getMFR() { return mfr; } /** * * * @generated */ public void setMFR(Integer newMFR) { Integer oldMFR = mfr; mfr = newMFR; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.GSFLW__MFR, oldMFR, mfr)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfplibPackage.GSFLW__MH: return getMH(); case AfplibPackage.GSFLW__MFR: return getMFR(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case AfplibPackage.GSFLW__MH: setMH((Integer)newValue); return; case AfplibPackage.GSFLW__MFR: setMFR((Integer)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.GSFLW__MH: setMH(MH_EDEFAULT); return; case AfplibPackage.GSFLW__MFR: setMFR(MFR_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case AfplibPackage.GSFLW__MH: return MH_EDEFAULT == null ? mh != null : !MH_EDEFAULT.equals(mh); case AfplibPackage.GSFLW__MFR: return MFR_EDEFAULT == null ? mfr != null : !MFR_EDEFAULT.equals(mfr); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (MH: "); result.append(mh); result.append(", MFR: "); result.append(mfr); result.append(')'); return result.toString(); } } //GSFLWImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy