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