/** | |
*/ | |
package org.eclipse.qvto.examples.xtext.qvtoperational.qvtoperationalcs.impl; | |
import org.eclipse.emf.common.notify.Notification; | |
import org.eclipse.emf.ecore.EClass; | |
import org.eclipse.emf.ecore.impl.ENotificationImpl; | |
import org.eclipse.ocl.examples.xtext.base.basecs.util.BaseCSVisitor; | |
import org.eclipse.ocl.examples.xtext.essentialocl.essentialoclcs.impl.InvocationExpCSImpl; | |
import org.eclipse.qvto.examples.xtext.qvtoperational.qvtoperationalcs.ImperativeOperationCallExpCS; | |
import org.eclipse.qvto.examples.xtext.qvtoperational.qvtoperationalcs.QVTOperationalCSPackage; | |
import org.eclipse.qvto.examples.xtext.qvtoperational.qvtoperationalcs.util.QVTOperationalCSVisitor; | |
/** | |
* <!-- begin-user-doc --> An implementation of the model object ' | |
* <em><b>Imperative Operation Call Exp CS</b></em>'. <!-- end-user-doc --> | |
* <p> | |
* The following features are implemented: | |
* <ul> | |
* <li>{@link org.eclipse.qvto.examples.xtext.qvtoperational.qvtoperationalcs.impl.ImperativeOperationCallExpCSImpl#getModule <em>Module</em>}</li> | |
* </ul> | |
* </p> | |
* | |
* @generated | |
*/ | |
public class ImperativeOperationCallExpCSImpl | |
extends InvocationExpCSImpl | |
implements ImperativeOperationCallExpCS { | |
/** | |
* The default value of the '{@link #getModule() <em>Module</em>}' attribute. | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @see #getModule() | |
* @generated | |
* @ordered | |
*/ | |
protected static final String MODULE_EDEFAULT = null; | |
/** | |
* The cached value of the '{@link #getModule() <em>Module</em>}' attribute. | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @see #getModule() | |
* @generated | |
* @ordered | |
*/ | |
protected String module = MODULE_EDEFAULT; | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
protected ImperativeOperationCallExpCSImpl() { | |
super(); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
protected EClass eStaticClass() { | |
return QVTOperationalCSPackage.Literals.IMPERATIVE_OPERATION_CALL_EXP_CS; | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
public String getModule() { | |
return module; | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setModule(String newModule) { | |
String oldModule = module; | |
module = newModule; | |
if (eNotificationRequired()) | |
eNotify(new ENotificationImpl(this, Notification.SET, QVTOperationalCSPackage.IMPERATIVE_OPERATION_CALL_EXP_CS__MODULE, oldModule, module)); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated NOT | |
* @added | |
*/ | |
public <R> R accept(final QVTOperationalCSVisitor<R> v) { | |
return v.visitImperativeOperationCallExpCS(this); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated NOT | |
* @added | |
*/ | |
public <R> R accept(final BaseCSVisitor<R> v) { | |
return ((QVTOperationalCSVisitor<R>)v).visitImperativeOperationCallExpCS(this); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public Object eGet(int featureID, boolean resolve, boolean coreType) { | |
switch (featureID) { | |
case QVTOperationalCSPackage.IMPERATIVE_OPERATION_CALL_EXP_CS__MODULE: | |
return getModule(); | |
} | |
return super.eGet(featureID, resolve, coreType); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public void eSet(int featureID, Object newValue) { | |
switch (featureID) { | |
case QVTOperationalCSPackage.IMPERATIVE_OPERATION_CALL_EXP_CS__MODULE: | |
setModule((String)newValue); | |
return; | |
} | |
super.eSet(featureID, newValue); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public void eUnset(int featureID) { | |
switch (featureID) { | |
case QVTOperationalCSPackage.IMPERATIVE_OPERATION_CALL_EXP_CS__MODULE: | |
setModule(MODULE_EDEFAULT); | |
return; | |
} | |
super.eUnset(featureID); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public boolean eIsSet(int featureID) { | |
switch (featureID) { | |
case QVTOperationalCSPackage.IMPERATIVE_OPERATION_CALL_EXP_CS__MODULE: | |
return MODULE_EDEFAULT == null ? module != null : !MODULE_EDEFAULT.equals(module); | |
} | |
return super.eIsSet(featureID); | |
} | |
/** | |
* <!-- begin-user-doc --> <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
public String toString() { | |
return super.toString(); | |
} | |
} // ImperativeOperationCallExpCSImpl |