org.afplib.afplib.impl.EMMImpl Maven / Gradle / Ivy
/**
*/
package org.afplib.afplib.impl;
import org.afplib.afplib.AfplibPackage;
import org.afplib.afplib.EMM;
import org.afplib.base.impl.SFImpl;
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 'EMM'.
*
*
* The following features are implemented:
*
* - {@link org.afplib.afplib.impl.EMMImpl#getMMName MM Name}
*
*
*
* @generated
*/
public class EMMImpl extends SFImpl implements EMM {
/**
* The default value of the '{@link #getMMName() MM Name}' attribute.
*
*
* @see #getMMName()
* @generated
* @ordered
*/
protected static final String MM_NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getMMName() MM Name}' attribute.
*
*
* @see #getMMName()
* @generated
* @ordered
*/
protected String mmName = MM_NAME_EDEFAULT;
/**
*
*
* @generated
*/
protected EMMImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return AfplibPackage.eINSTANCE.getEMM();
}
/**
*
*
* @generated
*/
public String getMMName() {
return mmName;
}
/**
*
*
* @generated
*/
public void setMMName(String newMMName) {
String oldMMName = mmName;
mmName = newMMName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.EMM__MM_NAME, oldMMName, mmName));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AfplibPackage.EMM__MM_NAME:
return getMMName();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case AfplibPackage.EMM__MM_NAME:
setMMName((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case AfplibPackage.EMM__MM_NAME:
setMMName(MM_NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case AfplibPackage.EMM__MM_NAME:
return MM_NAME_EDEFAULT == null ? mmName != null : !MM_NAME_EDEFAULT.equals(mmName);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (MMName: ");
result.append(mmName);
result.append(')');
return result.toString();
}
} //EMMImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy