org.nasdanika.models.rules.java.impl.UpdateCompilationUnitActionImpl Maven / Gradle / Ivy
The newest version!
/**
*/
package org.nasdanika.models.rules.java.impl;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.nasdanika.models.java.CompilationUnit;
import org.nasdanika.models.rules.java.JavaPackage;
import org.nasdanika.models.rules.java.UpdateCompilationUnitAction;
/**
*
* An implementation of the model object 'Update Compilation Unit Action'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.models.rules.java.impl.UpdateCompilationUnitActionImpl#getCompilationUnit Compilation Unit}
*
*
* @generated
*/
public class UpdateCompilationUnitActionImpl extends CompilationUnitActionImpl implements UpdateCompilationUnitAction {
/**
*
*
* @generated
*/
protected UpdateCompilationUnitActionImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return JavaPackage.Literals.UPDATE_COMPILATION_UNIT_ACTION;
}
/**
*
*
* @generated
*/
@Override
public CompilationUnit getCompilationUnit() {
return (CompilationUnit)eDynamicGet(JavaPackage.UPDATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, JavaPackage.Literals.UPDATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetCompilationUnit(CompilationUnit newCompilationUnit, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newCompilationUnit, JavaPackage.UPDATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setCompilationUnit(CompilationUnit newCompilationUnit) {
eDynamicSet(JavaPackage.UPDATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, JavaPackage.Literals.UPDATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, newCompilationUnit);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case JavaPackage.UPDATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
return basicSetCompilationUnit(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case JavaPackage.UPDATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
return getCompilationUnit();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case JavaPackage.UPDATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
setCompilationUnit((CompilationUnit)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case JavaPackage.UPDATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
setCompilationUnit((CompilationUnit)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case JavaPackage.UPDATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
return getCompilationUnit() != null;
}
return super.eIsSet(featureID);
}
} //UpdateCompilationUnitActionImpl