org.nasdanika.models.excel.impl.CellImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.excel.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.nasdanika.models.excel.Cell;
import org.nasdanika.models.excel.ExcelPackage;
/**
*
* An implementation of the model object 'Cell'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.models.excel.impl.CellImpl#getColumnIndex Column Index}
*
*
* @generated
*/
public class CellImpl extends MinimalEObjectImpl.Container implements Cell {
/**
* The default value of the '{@link #getColumnIndex() Column Index}' attribute.
*
*
* @see #getColumnIndex()
* @generated
* @ordered
*/
protected static final int COLUMN_INDEX_EDEFAULT = 0;
/**
*
*
* @generated
*/
protected CellImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExcelPackage.Literals.CELL;
}
/**
*
*
* @generated
*/
@Override
protected int eStaticFeatureCount() {
return 0;
}
/**
*
*
* @generated
*/
@Override
public int getColumnIndex() {
return (Integer)eDynamicGet(ExcelPackage.CELL__COLUMN_INDEX, ExcelPackage.Literals.CELL__COLUMN_INDEX, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setColumnIndex(int newColumnIndex) {
eDynamicSet(ExcelPackage.CELL__COLUMN_INDEX, ExcelPackage.Literals.CELL__COLUMN_INDEX, newColumnIndex);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case ExcelPackage.CELL__COLUMN_INDEX:
return getColumnIndex();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case ExcelPackage.CELL__COLUMN_INDEX:
setColumnIndex((Integer)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case ExcelPackage.CELL__COLUMN_INDEX:
setColumnIndex(COLUMN_INDEX_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case ExcelPackage.CELL__COLUMN_INDEX:
return getColumnIndex() != COLUMN_INDEX_EDEFAULT;
}
return super.eIsSet(featureID);
}
} //CellImpl