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