content: /**
   */
  package com.intel.llvm.ireditor.lLVM_IR.impl;
  
  import com.intel.llvm.ireditor.lLVM_IR.Instruction_select;
  import com.intel.llvm.ireditor.lLVM_IR.LLVM_IRPackage;
  import com.intel.llvm.ireditor.lLVM_IR.TypedValue;
  
  import org.eclipse.emf.common.notify.Notification;
  import org.eclipse.emf.common.notify.NotificationChain;
  
  import org.eclipse.emf.ecore.EClass;
  import org.eclipse.emf.ecore.InternalEObject;
  
  import org.eclipse.emf.ecore.impl.ENotificationImpl;
  
  /**
   * <!-- begin-user-doc -->
   * An implementation of the model object '<em><b>Instruction select</b></em>'.
   * <!-- end-user-doc -->
   * <p>
   * The following features are implemented:
   * <ul>
   *   <li>{@link com.intel.llvm.ireditor.lLVM_IR.impl.Instruction_selectImpl#getCondition <em>Condition</em>}</li>
   *   <li>{@link com.intel.llvm.ireditor.lLVM_IR.impl.Instruction_selectImpl#getValue1 <em>Value1</em>}</li>
   *   <li>{@link com.intel.llvm.ireditor.lLVM_IR.impl.Instruction_selectImpl#getValue2 <em>Value2</em>}</li>
   * </ul>
   * </p>
   *
   * @generated
   */
  public class Instruction_selectImpl extends OtherInstructionImpl implements Instruction_select
  {
    /**
     * The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getCondition()
     * @generated
     * @ordered
     */
    protected TypedValue condition;
  
    /**
     * The cached value of the '{@link #getValue1() <em>Value1</em>}' containment reference.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getValue1()
     * @generated
     * @ordered
     */
    protected TypedValue value1;
  
    /**
     * The cached value of the '{@link #getValue2() <em>Value2</em>}' containment reference.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getValue2()
     * @generated
     * @ordered
     */
    protected TypedValue value2;
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    protected Instruction_selectImpl()
    {
      super();
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    protected EClass eStaticClass()
    {
      return LLVM_IRPackage.Literals.INSTRUCTION_SELECT;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public TypedValue getCondition()
    {
      return condition;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetCondition(TypedValue newCondition, NotificationChain msgs)
    {
      TypedValue oldCondition = condition;
      condition = newCondition;
      if (eNotificationRequired())
      {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LLVM_IRPackage.INSTRUCTION_SELECT__CONDITION, oldCondition, newCondition);
        if (msgs == null) msgs = notification; else msgs.add(notification);
      }
      return msgs;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setCondition(TypedValue newCondition)
    {
      if (newCondition != condition)
      {
        NotificationChain msgs = null;
        if (condition != null)
          msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LLVM_IRPackage.INSTRUCTION_SELECT__CONDITION, null, msgs);
        if (newCondition != null)
          msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LLVM_IRPackage.INSTRUCTION_SELECT__CONDITION, null, msgs);
        msgs = basicSetCondition(newCondition, msgs);
        if (msgs != null) msgs.dispatch();
      }
      else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, LLVM_IRPackage.INSTRUCTION_SELECT__CONDITION, newCondition, newCondition));
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public TypedValue getValue1()
    {
      return value1;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetValue1(TypedValue newValue1, NotificationChain msgs)
    {
      TypedValue oldValue1 = value1;
      value1 = newValue1;
      if (eNotificationRequired())
      {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LLVM_IRPackage.INSTRUCTION_SELECT__VALUE1, oldValue1, newValue1);
        if (msgs == null) msgs = notification; else msgs.add(notification);
      }
      return msgs;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setValue1(TypedValue newValue1)
    {
      if (newValue1 != value1)
      {
        NotificationChain msgs = null;
        if (value1 != null)
          msgs = ((InternalEObject)value1).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LLVM_IRPackage.INSTRUCTION_SELECT__VALUE1, null, msgs);
        if (newValue1 != null)
          msgs = ((InternalEObject)newValue1).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LLVM_IRPackage.INSTRUCTION_SELECT__VALUE1, null, msgs);
        msgs = basicSetValue1(newValue1, msgs);
        if (msgs != null) msgs.dispatch();
      }
      else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, LLVM_IRPackage.INSTRUCTION_SELECT__VALUE1, newValue1, newValue1));
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public TypedValue getValue2()
    {
      return value2;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetValue2(TypedValue newValue2, NotificationChain msgs)
    {
      TypedValue oldValue2 = value2;
      value2 = newValue2;
      if (eNotificationRequired())
      {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LLVM_IRPackage.INSTRUCTION_SELECT__VALUE2, oldValue2, newValue2);
        if (msgs == null) msgs = notification; else msgs.add(notification);
      }
      return msgs;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setValue2(TypedValue newValue2)
    {
      if (newValue2 != value2)
      {
        NotificationChain msgs = null;
        if (value2 != null)
          msgs = ((InternalEObject)value2).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LLVM_IRPackage.INSTRUCTION_SELECT__VALUE2, null, msgs);
        if (newValue2 != null)
          msgs = ((InternalEObject)newValue2).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LLVM_IRPackage.INSTRUCTION_SELECT__VALUE2, null, msgs);
        msgs = basicSetValue2(newValue2, msgs);
        if (msgs != null) msgs.dispatch();
      }
      else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, LLVM_IRPackage.INSTRUCTION_SELECT__VALUE2, newValue2, newValue2));
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
    {
      switch (featureID)
      {
        case LLVM_IRPackage.INSTRUCTION_SELECT__CONDITION:
          return basicSetCondition(null, msgs);
        case LLVM_IRPackage.INSTRUCTION_SELECT__VALUE1:
          return basicSetValue1(null, msgs);
        case LLVM_IRPackage.INSTRUCTION_SELECT__VALUE2:
          return basicSetValue2(null, 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 LLVM_IRPackage.INSTRUCTION_SELECT__CONDITION:
          return getCondition();
        case LLVM_IRPackage.INSTRUCTION_SELECT__VALUE1:
          return getValue1();
        case LLVM_IRPackage.INSTRUCTION_SELECT__VALUE2:
          return getValue2();
      }
      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.INSTRUCTION_SELECT__CONDITION:
          setCondition((TypedValue)newValue);
          return;
        case LLVM_IRPackage.INSTRUCTION_SELECT__VALUE1:
          setValue1((TypedValue)newValue);
          return;
        case LLVM_IRPackage.INSTRUCTION_SELECT__VALUE2:
          setValue2((TypedValue)newValue);
          return;
      }
      super.eSet(featureID, newValue);
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public void eUnset(int featureID)
    {
      switch (featureID)
      {
        case LLVM_IRPackage.INSTRUCTION_SELECT__CONDITION:
          setCondition((TypedValue)null);
          return;
        case LLVM_IRPackage.INSTRUCTION_SELECT__VALUE1:
          setValue1((TypedValue)null);
          return;
        case LLVM_IRPackage.INSTRUCTION_SELECT__VALUE2:
          setValue2((TypedValue)null);
          return;
      }
      super.eUnset(featureID);
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public boolean eIsSet(int featureID)
    {
      switch (featureID)
      {
        case LLVM_IRPackage.INSTRUCTION_SELECT__CONDITION:
          return condition != null;
        case LLVM_IRPackage.INSTRUCTION_SELECT__VALUE1:
          return value1 != null;
        case LLVM_IRPackage.INSTRUCTION_SELECT__VALUE2:
          return value2 != null;
      }
      return super.eIsSet(featureID);
    }
  
  } //Instruction_selectImpl
  