content: /**
   */
  package com.intel.llvm.ireditor.lLVM_IR.impl;
  
  import com.intel.llvm.ireditor.lLVM_IR.CConv;
  import com.intel.llvm.ireditor.lLVM_IR.LLVM_IRPackage;
  
  import org.eclipse.emf.common.notify.Notification;
  
  import org.eclipse.emf.ecore.EClass;
  
  import org.eclipse.emf.ecore.impl.ENotificationImpl;
  import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
  
  /**
   * <!-- begin-user-doc -->
   * An implementation of the model object '<em><b>CConv</b></em>'.
   * <!-- end-user-doc -->
   * <p>
   * The following features are implemented:
   * <ul>
   *   <li>{@link com.intel.llvm.ireditor.lLVM_IR.impl.CConvImpl#getVal <em>Val</em>}</li>
   *   <li>{@link com.intel.llvm.ireditor.lLVM_IR.impl.CConvImpl#getCustomNumber <em>Custom Number</em>}</li>
   * </ul>
   * </p>
   *
   * @generated
   */
  public class CConvImpl extends MinimalEObjectImpl.Container implements CConv
  {
    /**
     * The default value of the '{@link #getVal() <em>Val</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getVal()
     * @generated
     * @ordered
     */
    protected static final String VAL_EDEFAULT = null;
  
    /**
     * The cached value of the '{@link #getVal() <em>Val</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getVal()
     * @generated
     * @ordered
     */
    protected String val = VAL_EDEFAULT;
  
    /**
     * The default value of the '{@link #getCustomNumber() <em>Custom Number</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getCustomNumber()
     * @generated
     * @ordered
     */
    protected static final String CUSTOM_NUMBER_EDEFAULT = null;
  
    /**
     * The cached value of the '{@link #getCustomNumber() <em>Custom Number</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getCustomNumber()
     * @generated
     * @ordered
     */
    protected String customNumber = CUSTOM_NUMBER_EDEFAULT;
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    protected CConvImpl()
    {
      super();
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    protected EClass eStaticClass()
    {
      return LLVM_IRPackage.Literals.CCONV;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getVal()
    {
      return val;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setVal(String newVal)
    {
      String oldVal = val;
      val = newVal;
      if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, LLVM_IRPackage.CCONV__VAL, oldVal, val));
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getCustomNumber()
    {
      return customNumber;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setCustomNumber(String newCustomNumber)
    {
      String oldCustomNumber = customNumber;
      customNumber = newCustomNumber;
      if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, LLVM_IRPackage.CCONV__CUSTOM_NUMBER, oldCustomNumber, customNumber));
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public Object eGet(int featureID, boolean resolve, boolean coreType)
    {
      switch (featureID)
      {
        case LLVM_IRPackage.CCONV__VAL:
          return getVal();
        case LLVM_IRPackage.CCONV__CUSTOM_NUMBER:
          return getCustomNumber();
      }
      return super.eGet(featureID, resolve, coreType);
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public void eSet(int featureID, Object newValue)
    {
      switch (featureID)
      {
        case LLVM_IRPackage.CCONV__VAL:
          setVal((String)newValue);
          return;
        case LLVM_IRPackage.CCONV__CUSTOM_NUMBER:
          setCustomNumber((String)newValue);
          return;
      }
      super.eSet(featureID, newValue);
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public void eUnset(int featureID)
    {
      switch (featureID)
      {
        case LLVM_IRPackage.CCONV__VAL:
          setVal(VAL_EDEFAULT);
          return;
        case LLVM_IRPackage.CCONV__CUSTOM_NUMBER:
          setCustomNumber(CUSTOM_NUMBER_EDEFAULT);
          return;
      }
      super.eUnset(featureID);
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public boolean eIsSet(int featureID)
    {
      switch (featureID)
      {
        case LLVM_IRPackage.CCONV__VAL:
          return VAL_EDEFAULT == null ? val != null : !VAL_EDEFAULT.equals(val);
        case LLVM_IRPackage.CCONV__CUSTOM_NUMBER:
          return CUSTOM_NUMBER_EDEFAULT == null ? customNumber != null : !CUSTOM_NUMBER_EDEFAULT.equals(customNumber);
      }
      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(" (val: ");
      result.append(val);
      result.append(", customNumber: ");
      result.append(customNumber);
      result.append(')');
      return result.toString();
    }
  
  } //CConvImpl
  