All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nasdanika.models.excel.impl.NumericCellImpl Maven / Gradle / Ivy

/**
 */
package org.nasdanika.models.excel.impl;

import org.eclipse.emf.ecore.EClass;

import org.nasdanika.models.excel.ExcelPackage;
import org.nasdanika.models.excel.NumericCell;

/**
 * 
 * An implementation of the model object 'Numeric Cell'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.excel.impl.NumericCellImpl#getValue Value}
  • *
* * @generated */ public class NumericCellImpl extends CellImpl implements NumericCell { /** * The default value of the '{@link #getValue() Value}' attribute. * * * @see #getValue() * @generated * @ordered */ protected static final double VALUE_EDEFAULT = 0.0; /** * * * @generated */ protected NumericCellImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ExcelPackage.Literals.NUMERIC_CELL; } /** * * * @generated */ @Override public double getValue() { return (Double)eDynamicGet(ExcelPackage.NUMERIC_CELL__VALUE, ExcelPackage.Literals.NUMERIC_CELL__VALUE, true, true); } /** * * * @generated */ @Override public void setValue(double newValue) { eDynamicSet(ExcelPackage.NUMERIC_CELL__VALUE, ExcelPackage.Literals.NUMERIC_CELL__VALUE, newValue); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ExcelPackage.NUMERIC_CELL__VALUE: return getValue(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ExcelPackage.NUMERIC_CELL__VALUE: setValue((Double)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ExcelPackage.NUMERIC_CELL__VALUE: setValue(VALUE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ExcelPackage.NUMERIC_CELL__VALUE: return getValue() != VALUE_EDEFAULT; } return super.eIsSet(featureID); } } //NumericCellImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy