org.nasdanika.models.rules.java.impl.DeleteCompilationUnitActionImpl Maven / Gradle / Ivy
The newest version!
/**
*/
package org.nasdanika.models.rules.java.impl;
import org.eclipse.emf.ecore.EClass;
import org.nasdanika.models.java.CompilationUnit;
import org.nasdanika.models.rules.java.DeleteCompilationUnitAction;
import org.nasdanika.models.rules.java.JavaPackage;
/**
*
* An implementation of the model object 'Delete Compilation Unit Action'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.models.rules.java.impl.DeleteCompilationUnitActionImpl#getCompilationUnit Compilation Unit}
*
*
* @generated
*/
public class DeleteCompilationUnitActionImpl extends CompilationUnitActionImpl implements DeleteCompilationUnitAction {
/**
*
*
* @generated
*/
protected DeleteCompilationUnitActionImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return JavaPackage.Literals.DELETE_COMPILATION_UNIT_ACTION;
}
/**
*
*
* @generated
*/
@Override
public CompilationUnit getCompilationUnit() {
return (CompilationUnit)eDynamicGet(JavaPackage.DELETE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, JavaPackage.Literals.DELETE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, true, true);
}
/**
*
*
* @generated
*/
public CompilationUnit basicGetCompilationUnit() {
return (CompilationUnit)eDynamicGet(JavaPackage.DELETE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, JavaPackage.Literals.DELETE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, false, true);
}
/**
*
*
* @generated
*/
@Override
public void setCompilationUnit(CompilationUnit newCompilationUnit) {
eDynamicSet(JavaPackage.DELETE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, JavaPackage.Literals.DELETE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, newCompilationUnit);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case JavaPackage.DELETE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
if (resolve) return getCompilationUnit();
return basicGetCompilationUnit();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case JavaPackage.DELETE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
setCompilationUnit((CompilationUnit)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case JavaPackage.DELETE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
setCompilationUnit((CompilationUnit)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case JavaPackage.DELETE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
return basicGetCompilationUnit() != null;
}
return super.eIsSet(featureID);
}
} //DeleteCompilationUnitActionImpl