code: /**
   * <copyright>
   * </copyright>
   *
   */
  package org.applause.lang.applauseDsl.impl;
  
  import java.util.Collection;
  
  import org.applause.lang.applauseDsl.ApplauseDslPackage;
  import org.applause.lang.applauseDsl.ScalarExpression;
  import org.applause.lang.applauseDsl.StringConcat;
  
  import org.eclipse.emf.common.notify.NotificationChain;
  
  import org.eclipse.emf.common.util.EList;
  
  import org.eclipse.emf.ecore.EClass;
  import org.eclipse.emf.ecore.InternalEObject;
  
  import org.eclipse.emf.ecore.util.EObjectContainmentEList;
  import org.eclipse.emf.ecore.util.InternalEList;
  
  /**
   * <!-- begin-user-doc -->
   * An implementation of the model object '<em><b>String Concat</b></em>'.
   * <!-- end-user-doc -->
   * <p>
   * The following features are implemented:
   * <ul>
   *   <li>{@link org.applause.lang.applauseDsl.impl.StringConcatImpl#getValues <em>Values</em>}</li>
   * </ul>
   * </p>
   *
   * @generated
   */
  public class StringConcatImpl extends StringFunctionImpl implements StringConcat
  {
    /**
     * The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getValues()
     * @generated
     * @ordered
     */
    protected EList<ScalarExpression> values;
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    protected StringConcatImpl()
    {
      super();
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    protected EClass eStaticClass()
    {
      return ApplauseDslPackage.Literals.STRING_CONCAT;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public EList<ScalarExpression> getValues()
    {
      if (values == null)
      {
        values = new EObjectContainmentEList<ScalarExpression>(ScalarExpression.class, this, ApplauseDslPackage.STRING_CONCAT__VALUES);
      }
      return values;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
    {
      switch (featureID)
      {
        case ApplauseDslPackage.STRING_CONCAT__VALUES:
          return ((InternalEList<?>)getValues()).basicRemove(otherEnd, msgs);
      }
      return super.eInverseRemove(otherEnd, featureID, msgs);
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public Object eGet(int featureID, boolean resolve, boolean coreType)
    {
      switch (featureID)
      {
        case ApplauseDslPackage.STRING_CONCAT__VALUES:
          return getValues();
      }
      return super.eGet(featureID, resolve, coreType);
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @SuppressWarnings("unchecked")
    @Override
    public void eSet(int featureID, Object newValue)
    {
      switch (featureID)
      {
        case ApplauseDslPackage.STRING_CONCAT__VALUES:
          getValues().clear();
          getValues().addAll((Collection<? extends ScalarExpression>)newValue);
          return;
      }
      super.eSet(featureID, newValue);
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public void eUnset(int featureID)
    {
      switch (featureID)
      {
        case ApplauseDslPackage.STRING_CONCAT__VALUES:
          getValues().clear();
          return;
      }
      super.eUnset(featureID);
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public boolean eIsSet(int featureID)
    {
      switch (featureID)
      {
        case ApplauseDslPackage.STRING_CONCAT__VALUES:
          return values != null && !values.isEmpty();
      }
      return super.eIsSet(featureID);
    }
  
  } //StringConcatImpl
  