org.nasdanika.models.excel.impl.EObjectCellImpl Maven / Gradle / Ivy
The newest version!
/**
*/
package org.nasdanika.models.excel.impl;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.InternalEObject;
import org.nasdanika.models.excel.EObjectCell;
import org.nasdanika.models.excel.ExcelPackage;
/**
*
* An implementation of the model object 'EObject Cell'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.models.excel.impl.EObjectCellImpl#getValue Value}
*
*
* @generated
*/
public class EObjectCellImpl extends CellImpl implements EObjectCell {
/**
*
*
* @generated
*/
protected EObjectCellImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return ExcelPackage.Literals.EOBJECT_CELL;
}
/**
*
*
* @generated
*/
@Override
public EObject getValue() {
return (EObject)eDynamicGet(ExcelPackage.EOBJECT_CELL__VALUE, ExcelPackage.Literals.EOBJECT_CELL__VALUE, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetValue(EObject newValue, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newValue, ExcelPackage.EOBJECT_CELL__VALUE, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setValue(EObject newValue) {
eDynamicSet(ExcelPackage.EOBJECT_CELL__VALUE, ExcelPackage.Literals.EOBJECT_CELL__VALUE, newValue);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case ExcelPackage.EOBJECT_CELL__VALUE:
return basicSetValue(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case ExcelPackage.EOBJECT_CELL__VALUE:
return getValue();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case ExcelPackage.EOBJECT_CELL__VALUE:
setValue((EObject)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case ExcelPackage.EOBJECT_CELL__VALUE:
setValue((EObject)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case ExcelPackage.EOBJECT_CELL__VALUE:
return getValue() != null;
}
return super.eIsSet(featureID);
}
} //EObjectCellImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy