org.afplib.afplib.impl.GSLEImpl Maven / Gradle / Ivy
/**
*/
package org.afplib.afplib.impl;
import org.afplib.afplib.AfplibPackage;
import org.afplib.afplib.GSLE;
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 'GSLE'.
*
*
* The following features are implemented:
*
*
* - {@link org.afplib.afplib.impl.GSLEImpl#getLINEEND LINEEND}
*
*
* @generated
*/
public class GSLEImpl extends TripletImpl implements GSLE {
/**
* The default value of the '{@link #getLINEEND() LINEEND}' attribute.
*
*
* @see #getLINEEND()
* @generated
* @ordered
*/
protected static final Integer LINEEND_EDEFAULT = null;
/**
* The cached value of the '{@link #getLINEEND() LINEEND}' attribute.
*
*
* @see #getLINEEND()
* @generated
* @ordered
*/
protected Integer lineend = LINEEND_EDEFAULT;
/**
*
*
* @generated
*/
protected GSLEImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return AfplibPackage.Literals.GSLE;
}
/**
*
*
* @generated
*/
public Integer getLINEEND() {
return lineend;
}
/**
*
*
* @generated
*/
public void setLINEEND(Integer newLINEEND) {
Integer oldLINEEND = lineend;
lineend = newLINEEND;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.GSLE__LINEEND, oldLINEEND, lineend));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AfplibPackage.GSLE__LINEEND:
return getLINEEND();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case AfplibPackage.GSLE__LINEEND:
setLINEEND((Integer)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case AfplibPackage.GSLE__LINEEND:
setLINEEND(LINEEND_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case AfplibPackage.GSLE__LINEEND:
return LINEEND_EDEFAULT == null ? lineend != null : !LINEEND_EDEFAULT.equals(lineend);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (LINEEND: ");
result.append(lineend);
result.append(')');
return result.toString();
}
} //GSLEImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy