org.nasdanika.models.excel.impl.RowImpl 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.ExcelPackage;
import org.nasdanika.models.excel.Row;
/**
*
* An implementation of the model object 'Row'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.models.excel.impl.RowImpl#getNumber Number}
*
*
* @generated
*/
public abstract class RowImpl extends MinimalEObjectImpl.Container implements Row {
/**
* The default value of the '{@link #getNumber() Number}' attribute.
*
*
* @see #getNumber()
* @generated
* @ordered
*/
protected static final int NUMBER_EDEFAULT = 0;
/**
*
*
* @generated
*/
protected RowImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExcelPackage.Literals.ROW;
}
/**
*
*
* @generated
*/
@Override
protected int eStaticFeatureCount() {
return 0;
}
/**
*
*
* @generated
*/
@Override
public int getNumber() {
return (Integer)eDynamicGet(ExcelPackage.ROW__NUMBER, ExcelPackage.Literals.ROW__NUMBER, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setNumber(int newNumber) {
eDynamicSet(ExcelPackage.ROW__NUMBER, ExcelPackage.Literals.ROW__NUMBER, newNumber);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case ExcelPackage.ROW__NUMBER:
return getNumber();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case ExcelPackage.ROW__NUMBER:
setNumber((Integer)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case ExcelPackage.ROW__NUMBER:
setNumber(NUMBER_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case ExcelPackage.ROW__NUMBER:
return getNumber() != NUMBER_EDEFAULT;
}
return super.eIsSet(featureID);
}
} //RowImpl