content: /**
   */
  package com.intel.llvm.ireditor.lLVM_IR.impl;
  
  import com.intel.llvm.ireditor.lLVM_IR.ConstantList;
  import com.intel.llvm.ireditor.lLVM_IR.LLVM_IRPackage;
  import com.intel.llvm.ireditor.lLVM_IR.StructureConstant;
  
  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>Structure Constant</b></em>'.
   * <!-- end-user-doc -->
   * <p>
   * The following features are implemented:
   * <ul>
   *   <li>{@link com.intel.llvm.ireditor.lLVM_IR.impl.StructureConstantImpl#getList <em>List</em>}</li>
   *   <li>{@link com.intel.llvm.ireditor.lLVM_IR.impl.StructureConstantImpl#getPacked <em>Packed</em>}</li>
   * </ul>
   * </p>
   *
   * @generated
   */
  public class StructureConstantImpl extends ConstantImpl implements StructureConstant
  {
    /**
     * The cached value of the '{@link #getList() <em>List</em>}' containment reference.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getList()
     * @generated
     * @ordered
     */
    protected ConstantList list;
  
    /**
     * The default value of the '{@link #getPacked() <em>Packed</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getPacked()
     * @generated
     * @ordered
     */
    protected static final String PACKED_EDEFAULT = null;
  
    /**
     * The cached value of the '{@link #getPacked() <em>Packed</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getPacked()
     * @generated
     * @ordered
     */
    protected String packed = PACKED_EDEFAULT;
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    protected StructureConstantImpl()
    {
      super();
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    protected EClass eStaticClass()
    {
      return LLVM_IRPackage.Literals.STRUCTURE_CONSTANT;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public ConstantList getList()
    {
      return list;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetList(ConstantList newList, NotificationChain msgs)
    {
      ConstantList oldList = list;
      list = newList;
      if (eNotificationRequired())
      {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LLVM_IRPackage.STRUCTURE_CONSTANT__LIST, oldList, newList);
        if (msgs == null) msgs = notification; else msgs.add(notification);
      }
      return msgs;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setList(ConstantList newList)
    {
      if (newList != list)
      {
        NotificationChain msgs = null;
        if (list != null)
          msgs = ((InternalEObject)list).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LLVM_IRPackage.STRUCTURE_CONSTANT__LIST, null, msgs);
        if (newList != null)
          msgs = ((InternalEObject)newList).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LLVM_IRPackage.STRUCTURE_CONSTANT__LIST, null, msgs);
        msgs = basicSetList(newList, msgs);
        if (msgs != null) msgs.dispatch();
      }
      else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, LLVM_IRPackage.STRUCTURE_CONSTANT__LIST, newList, newList));
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getPacked()
    {
      return packed;
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setPacked(String newPacked)
    {
      String oldPacked = packed;
      packed = newPacked;
      if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, LLVM_IRPackage.STRUCTURE_CONSTANT__PACKED, oldPacked, packed));
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
    {
      switch (featureID)
      {
        case LLVM_IRPackage.STRUCTURE_CONSTANT__LIST:
          return basicSetList(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.STRUCTURE_CONSTANT__LIST:
          return getList();
        case LLVM_IRPackage.STRUCTURE_CONSTANT__PACKED:
          return getPacked();
      }
      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.STRUCTURE_CONSTANT__LIST:
          setList((ConstantList)newValue);
          return;
        case LLVM_IRPackage.STRUCTURE_CONSTANT__PACKED:
          setPacked((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.STRUCTURE_CONSTANT__LIST:
          setList((ConstantList)null);
          return;
        case LLVM_IRPackage.STRUCTURE_CONSTANT__PACKED:
          setPacked(PACKED_EDEFAULT);
          return;
      }
      super.eUnset(featureID);
    }
  
    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public boolean eIsSet(int featureID)
    {
      switch (featureID)
      {
        case LLVM_IRPackage.STRUCTURE_CONSTANT__LIST:
          return list != null;
        case LLVM_IRPackage.STRUCTURE_CONSTANT__PACKED:
          return PACKED_EDEFAULT == null ? packed != null : !PACKED_EDEFAULT.equals(packed);
      }
      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(" (packed: ");
      result.append(packed);
      result.append(')');
      return result.toString();
    }
  
  } //StructureConstantImpl
  