code: /**
   */
  package IFML.Core.impl;
  
  import IFML.Core.CorePackage;
  import IFML.Core.Expression;
  
  import org.eclipse.emf.common.notify.Notification;
  
  import org.eclipse.emf.ecore.EClass;
  
  import org.eclipse.emf.ecore.impl.ENotificationImpl;
  
  /**
   * <!-- begin-user-doc -->
   * An implementation of the model object '<em><b>Expression</b></em>'.
   * <!-- end-user-doc -->
   * <p>
   * The following features are implemented:
   * <ul>
   *   <li>{@link IFML.Core.impl.ExpressionImpl#getLanguage <em>Language</em>}</li>
   *   <li>{@link IFML.Core.impl.ExpressionImpl#getBody <em>Body</em>}</li>
   * </ul>
   * </p>
   *
   * @generated
   */
  public abstract class ExpressionImpl extends InteractionFlowModelElementImpl implements Expression {
  	/**
  	 * The default value of the '{@link #getLanguage() <em>Language</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getLanguage()
  	 * @generated
  	 * @ordered
  	 */
  	protected static final String LANGUAGE_EDEFAULT = null;
  
  	/**
  	 * The cached value of the '{@link #getLanguage() <em>Language</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getLanguage()
  	 * @generated
  	 * @ordered
  	 */
  	protected String language = LANGUAGE_EDEFAULT;
  
  	/**
  	 * The default value of the '{@link #getBody() <em>Body</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getBody()
  	 * @generated
  	 * @ordered
  	 */
  	protected static final String BODY_EDEFAULT = null;
  
  	/**
  	 * The cached value of the '{@link #getBody() <em>Body</em>}' attribute.
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @see #getBody()
  	 * @generated
  	 * @ordered
  	 */
  	protected String body = BODY_EDEFAULT;
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	protected ExpressionImpl() {
  		super();
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	protected EClass eStaticClass() {
  		return CorePackage.Literals.EXPRESSION;
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public String getLanguage() {
  		return language;
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public void setLanguage(String newLanguage) {
  		String oldLanguage = language;
  		language = newLanguage;
  		if (eNotificationRequired())
  			eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.EXPRESSION__LANGUAGE, oldLanguage, language));
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public String getBody() {
  		return body;
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	public void setBody(String newBody) {
  		String oldBody = body;
  		body = newBody;
  		if (eNotificationRequired())
  			eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.EXPRESSION__BODY, oldBody, body));
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public Object eGet(int featureID, boolean resolve, boolean coreType) {
  		switch (featureID) {
  			case CorePackage.EXPRESSION__LANGUAGE:
  				return getLanguage();
  			case CorePackage.EXPRESSION__BODY:
  				return getBody();
  		}
  		return super.eGet(featureID, resolve, coreType);
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public void eSet(int featureID, Object newValue) {
  		switch (featureID) {
  			case CorePackage.EXPRESSION__LANGUAGE:
  				setLanguage((String)newValue);
  				return;
  			case CorePackage.EXPRESSION__BODY:
  				setBody((String)newValue);
  				return;
  		}
  		super.eSet(featureID, newValue);
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public void eUnset(int featureID) {
  		switch (featureID) {
  			case CorePackage.EXPRESSION__LANGUAGE:
  				setLanguage(LANGUAGE_EDEFAULT);
  				return;
  			case CorePackage.EXPRESSION__BODY:
  				setBody(BODY_EDEFAULT);
  				return;
  		}
  		super.eUnset(featureID);
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public boolean eIsSet(int featureID) {
  		switch (featureID) {
  			case CorePackage.EXPRESSION__LANGUAGE:
  				return LANGUAGE_EDEFAULT == null ? language != null : !LANGUAGE_EDEFAULT.equals(language);
  			case CorePackage.EXPRESSION__BODY:
  				return BODY_EDEFAULT == null ? body != null : !BODY_EDEFAULT.equals(body);
  		}
  		return super.eIsSet(featureID);
  	}
  
  	/**
  	 * <!-- begin-user-doc -->
  	 * <!-- end-user-doc -->
  	 * @generated
  	 */
  	@Override
  	public String toString() {
  		if (eIsProxy()) return super.toString();
  
  		StringBuffer result = new StringBuffer(super.toString());
  		result.append(" (language: ");
  		result.append(language);
  		result.append(", body: ");
  		result.append(body);
  		result.append(')');
  		return result.toString();
  	}
  
  } //ExpressionImpl
  