bpsim.impl.PriorityParametersImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kie-wb-common-stunner-bpmn-emf Show documentation
Show all versions of kie-wb-common-stunner-bpmn-emf Show documentation
Kie Workbench - Common - Stunner - BPMN Definition Set - GWT Support for Eclipse EMF/XMI
/**
*/
package bpsim.impl;
import bpsim.BpsimPackage;
import bpsim.Parameter;
import bpsim.PriorityParameters;
import com.google.gwt.user.client.rpc.GwtTransient;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
/**
*
* An implementation of the model object 'Priority Parameters'.
*
*
* The following features are implemented:
*
*
* - {@link bpsim.impl.PriorityParametersImpl#getInterruptible Interruptible}
* - {@link bpsim.impl.PriorityParametersImpl#getPriority Priority}
*
*
* @generated
*/
public class PriorityParametersImpl extends EObjectImpl implements PriorityParameters {
/**
* The cached value of the '{@link #getInterruptible() Interruptible}' containment reference.
*
*
* @see #getInterruptible()
* @generated
* @ordered
*/
@GwtTransient
protected Parameter interruptible;
/**
* The cached value of the '{@link #getPriority() Priority}' containment reference.
*
*
* @see #getPriority()
* @generated
* @ordered
*/
@GwtTransient
protected Parameter priority;
/**
*
*
* @generated
*/
protected PriorityParametersImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return BpsimPackage.Literals.PRIORITY_PARAMETERS;
}
/**
*
*
* @generated
*/
@Override
public Parameter getInterruptible() {
return interruptible;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetInterruptible(Parameter newInterruptible, NotificationChain msgs) {
Parameter oldInterruptible = interruptible;
interruptible = newInterruptible;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BpsimPackage.PRIORITY_PARAMETERS__INTERRUPTIBLE, oldInterruptible, newInterruptible);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setInterruptible(Parameter newInterruptible) {
if (newInterruptible != interruptible) {
NotificationChain msgs = null;
if (interruptible != null)
msgs = ((InternalEObject)interruptible).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.PRIORITY_PARAMETERS__INTERRUPTIBLE, null, msgs);
if (newInterruptible != null)
msgs = ((InternalEObject)newInterruptible).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.PRIORITY_PARAMETERS__INTERRUPTIBLE, null, msgs);
msgs = basicSetInterruptible(newInterruptible, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BpsimPackage.PRIORITY_PARAMETERS__INTERRUPTIBLE, newInterruptible, newInterruptible));
}
/**
*
*
* @generated
*/
@Override
public Parameter getPriority() {
return priority;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetPriority(Parameter newPriority, NotificationChain msgs) {
Parameter oldPriority = priority;
priority = newPriority;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BpsimPackage.PRIORITY_PARAMETERS__PRIORITY, oldPriority, newPriority);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
@Override
public void setPriority(Parameter newPriority) {
if (newPriority != priority) {
NotificationChain msgs = null;
if (priority != null)
msgs = ((InternalEObject)priority).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.PRIORITY_PARAMETERS__PRIORITY, null, msgs);
if (newPriority != null)
msgs = ((InternalEObject)newPriority).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.PRIORITY_PARAMETERS__PRIORITY, null, msgs);
msgs = basicSetPriority(newPriority, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BpsimPackage.PRIORITY_PARAMETERS__PRIORITY, newPriority, newPriority));
}
/**
*
*
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case BpsimPackage.PRIORITY_PARAMETERS__INTERRUPTIBLE:
return basicSetInterruptible(null, msgs);
case BpsimPackage.PRIORITY_PARAMETERS__PRIORITY:
return basicSetPriority(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BpsimPackage.PRIORITY_PARAMETERS__INTERRUPTIBLE:
return getInterruptible();
case BpsimPackage.PRIORITY_PARAMETERS__PRIORITY:
return getPriority();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BpsimPackage.PRIORITY_PARAMETERS__INTERRUPTIBLE:
setInterruptible((Parameter)newValue);
return;
case BpsimPackage.PRIORITY_PARAMETERS__PRIORITY:
setPriority((Parameter)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BpsimPackage.PRIORITY_PARAMETERS__INTERRUPTIBLE:
setInterruptible((Parameter)null);
return;
case BpsimPackage.PRIORITY_PARAMETERS__PRIORITY:
setPriority((Parameter)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BpsimPackage.PRIORITY_PARAMETERS__INTERRUPTIBLE:
return interruptible != null;
case BpsimPackage.PRIORITY_PARAMETERS__PRIORITY:
return priority != null;
}
return super.eIsSet(featureID);
}
} //PriorityParametersImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy