/**
* generated by Xtext 2.23.0
*/
package fr.n7.pDL1.impl;
import fr.n7.pDL1.Guidance;
import fr.n7.pDL1.PDL1Package;
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 'Guidance'.
*
*
* The following features are implemented:
*
*
* - {@link fr.n7.pDL1.impl.GuidanceImpl#getTexte Texte}
*
*
* @generated
*/
public class GuidanceImpl extends ProcessElementImpl implements Guidance
{
/**
* The default value of the '{@link #getTexte() Texte}' attribute.
*
*
* @see #getTexte()
* @generated
* @ordered
*/
protected static final String TEXTE_EDEFAULT = null;
/**
* The cached value of the '{@link #getTexte() Texte}' attribute.
*
*
* @see #getTexte()
* @generated
* @ordered
*/
protected String texte = TEXTE_EDEFAULT;
/**
*
*
* @generated
*/
protected GuidanceImpl()
{
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass()
{
return PDL1Package.Literals.GUIDANCE;
}
/**
*
*
* @generated
*/
@Override
public String getTexte()
{
return texte;
}
/**
*
*
* @generated
*/
@Override
public void setTexte(String newTexte)
{
String oldTexte = texte;
texte = newTexte;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PDL1Package.GUIDANCE__TEXTE, oldTexte, texte));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
switch (featureID)
{
case PDL1Package.GUIDANCE__TEXTE:
return getTexte();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue)
{
switch (featureID)
{
case PDL1Package.GUIDANCE__TEXTE:
setTexte((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID)
{
switch (featureID)
{
case PDL1Package.GUIDANCE__TEXTE:
setTexte(TEXTE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID)
{
switch (featureID)
{
case PDL1Package.GUIDANCE__TEXTE:
return TEXTE_EDEFAULT == null ? texte != null : !TEXTE_EDEFAULT.equals(texte);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString()
{
if (eIsProxy()) return super.toString();
StringBuilder result = new StringBuilder(super.toString());
result.append(" (texte: ");
result.append(texte);
result.append(')');
return result.toString();
}
} //GuidanceImpl