org.nasdanika.models.rules.java.impl.CreateCompilationUnitActionImpl Maven / Gradle / Ivy
/**
*/
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.CreateCompilationUnitAction;
import org.nasdanika.models.rules.java.JavaPackage;
/**
*
* An implementation of the model object 'Create Compilation Unit Action'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.models.rules.java.impl.CreateCompilationUnitActionImpl#getCompilationUnit Compilation Unit}
*
*
* @generated
*/
public class CreateCompilationUnitActionImpl extends CompilationUnitActionImpl implements CreateCompilationUnitAction {
/**
*
*
* @generated
*/
protected CreateCompilationUnitActionImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return JavaPackage.Literals.CREATE_COMPILATION_UNIT_ACTION;
}
/**
*
*
* @generated
*/
@Override
public CompilationUnit getCompilationUnit() {
return (CompilationUnit)eDynamicGet(JavaPackage.CREATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, JavaPackage.Literals.CREATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, true, true);
}
/**
*
*
* @generated
*/
public NotificationChain basicSetCompilationUnit(CompilationUnit newCompilationUnit, NotificationChain msgs) {
msgs = eDynamicInverseAdd((InternalEObject)newCompilationUnit, JavaPackage.CREATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, msgs);
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setCompilationUnit(CompilationUnit newCompilationUnit) {
eDynamicSet(JavaPackage.CREATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, JavaPackage.Literals.CREATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT, newCompilationUnit);
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case JavaPackage.CREATE_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.CREATE_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.CREATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
setCompilationUnit((CompilationUnit)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case JavaPackage.CREATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
setCompilationUnit((CompilationUnit)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case JavaPackage.CREATE_COMPILATION_UNIT_ACTION__COMPILATION_UNIT:
return getCompilationUnit() != null;
}
return super.eIsSet(featureID);
}
} //CreateCompilationUnitActionImpl