gt:         switch (featureID) {
context: /**
   *  Copyright (c) 2016 Obeo. 
   *  All rights reserved. This program and the accompanying materials
   *  are made available under the terms of the Eclipse Public License v2.0
   *  which accompanies this distribution, and is available at
   *  http://www.eclipse.org/legal/epl-v20.html
   *   
   *   Contributors:
   *       Obeo - initial API and implementation
   */
  package org.obeonetwork.m2doc.template.impl;
  
  import java.util.Collection;
  
  import org.apache.poi.xwpf.usermodel.XWPFTableRow;
  import org.eclipse.emf.common.notify.Notification;
  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.impl.ENotificationImpl;
  import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
  import org.eclipse.emf.ecore.util.EObjectContainmentEList;
  import org.eclipse.emf.ecore.util.InternalEList;
  import org.obeonetwork.m2doc.template.Cell;
  import org.obeonetwork.m2doc.template.Row;
  import org.obeonetwork.m2doc.template.TemplatePackage;
  
  /**
   * <!-- begin-user-doc -->
   * An implementation of the model object '<em><b>Row</b></em>'.
   * <!-- end-user-doc -->
   * <p>
   * The following features are implemented:
   * </p>
   * <ul>
   * <li>{@link org.obeonetwork.m2doc.template.impl.RowImpl#getCells <em>Cells</em>}</li>
   * <li>{@link org.obeonetwork.m2doc.template.impl.RowImpl#getTableRow <em>Table Row</em>}</li>
   * </ul>
   *
   * @generated
   */
  public class RowImpl extends MinimalEObjectImpl.Container implements Row {
      /**
       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * 
       * @generated
       */
      public static final String copyright = " Copyright (c) 2016 Obeo. \r\n All rights reserved. This program and the accompanying materials\r\n are made available under the terms of the Eclipse Public License v2.0\r\n which accompanies this distribution, and is available at\r\n http://www.eclipse.org/legal/epl-v20.html\r\n  \r\n  Contributors:\r\n      Obeo - initial API and implementation";
  
      /**
       * The cached value of the '{@link #getCells() <em>Cells</em>}' containment reference list.
       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * 
       * @see #getCells()
       * @generated
       * @ordered
       */
      protected EList<Cell> cells;
  
      /**
       * The default value of the '{@link #getTableRow() <em>Table Row</em>}' attribute.
       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * 
       * @see #getTableRow()
       * @generated
       * @ordered
       */
      protected static final XWPFTableRow TABLE_ROW_EDEFAULT = null;
  
      /**
       * The cached value of the '{@link #getTableRow() <em>Table Row</em>}' attribute.
       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * 
       * @see #getTableRow()
       * @generated
       * @ordered
       */
      protected XWPFTableRow tableRow = TABLE_ROW_EDEFAULT;
  
      /**
       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * 
       * @generated
       */
      protected RowImpl() {
          super();
      }
  
      /**
       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * 
       * @generated
       */
      @Override
      protected EClass eStaticClass() {
          return TemplatePackage.Literals.ROW;
      }
  
      /**
       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * 
       * @generated
       */
      public EList<Cell> getCells() {
          if (cells == null) {
              cells = new EObjectContainmentEList<Cell>(Cell.class, this, TemplatePackage.ROW__CELLS);
          }
          return cells;
      }
  
      /**
       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * 
       * @generated
       */
      public XWPFTableRow getTableRow() {
          return tableRow;
      }
  
      /**
       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * 
       * @generated
       */
      public void setTableRow(XWPFTableRow newTableRow) {
          XWPFTableRow oldTableRow = tableRow;
          tableRow = newTableRow;
          if (eNotificationRequired())
              eNotify(new ENotificationImpl(this, Notification.SET, TemplatePackage.ROW__TABLE_ROW, oldTableRow,
                      tableRow));
      }
  
      /**
       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * 
       * @generated
       */
      @Override
      public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
          switch (featureID) {
              case TemplatePackage.ROW__CELLS:
                  return ((InternalEList<?>) getCells()).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 TemplatePackage.ROW__CELLS:
                  return getCells();
              case TemplatePackage.ROW__TABLE_ROW:
                  return getTableRow();
          }
          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 TemplatePackage.ROW__CELLS:
                  getCells().clear();
                  getCells().addAll((Collection<? extends Cell>) newValue);
                  return;
              case TemplatePackage.ROW__TABLE_ROW:
                  setTableRow((XWPFTableRow) newValue);
                  return;
          }
          super.eSet(featureID, newValue);
      }
  
      /**
       * <!-- begin-user-doc -->
       * <!-- end-user-doc -->
       * 
       * @generated
       */
      @Override
      public void eUnset(int featureID) {
  