org.nasdanika.models.excel.impl.BooleanCellImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.excel.impl;
import org.eclipse.emf.ecore.EClass;
import org.nasdanika.models.excel.BooleanCell;
import org.nasdanika.models.excel.ExcelPackage;
/**
*
* An implementation of the model object 'Boolean Cell'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.models.excel.impl.BooleanCellImpl#isValue Value}
*
*
* @generated
*/
public class BooleanCellImpl extends CellImpl implements BooleanCell {
/**
* The default value of the '{@link #isValue() Value}' attribute.
*
*
* @see #isValue()
* @generated
* @ordered
*/
protected static final boolean VALUE_EDEFAULT = false;
/**
*
*
* @generated
*/
protected BooleanCellImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExcelPackage.Literals.BOOLEAN_CELL;
}
/**
*
*
* @generated
*/
@Override
public boolean isValue() {
return (Boolean)eDynamicGet(ExcelPackage.BOOLEAN_CELL__VALUE, ExcelPackage.Literals.BOOLEAN_CELL__VALUE, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setValue(boolean newValue) {
eDynamicSet(ExcelPackage.BOOLEAN_CELL__VALUE, ExcelPackage.Literals.BOOLEAN_CELL__VALUE, newValue);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case ExcelPackage.BOOLEAN_CELL__VALUE:
return isValue();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case ExcelPackage.BOOLEAN_CELL__VALUE:
setValue((Boolean)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case ExcelPackage.BOOLEAN_CELL__VALUE:
setValue(VALUE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case ExcelPackage.BOOLEAN_CELL__VALUE:
return isValue() != VALUE_EDEFAULT;
}
return super.eIsSet(featureID);
}
} //BooleanCellImpl