use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class ExprConcatImpl method setRight.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRight(Expression newRight) {
if (newRight != right) {
NotificationChain msgs = null;
if (right != null)
msgs = ((InternalEObject) right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_CONCAT__RIGHT, null, msgs);
if (newRight != null)
msgs = ((InternalEObject) newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_CONCAT__RIGHT, null, msgs);
msgs = basicSetRight(newRight, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.EXPR_CONCAT__RIGHT, newRight, newRight));
}
use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class ExprEqualImpl method setLeft.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLeft(Expression newLeft) {
if (newLeft != left) {
NotificationChain msgs = null;
if (left != null)
msgs = ((InternalEObject) left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_EQUAL__LEFT, null, msgs);
if (newLeft != null)
msgs = ((InternalEObject) newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_EQUAL__LEFT, null, msgs);
msgs = basicSetLeft(newLeft, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.EXPR_EQUAL__LEFT, newLeft, newLeft));
}
use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class ExprEqualImpl method setRight.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRight(Expression newRight) {
if (newRight != right) {
NotificationChain msgs = null;
if (right != null)
msgs = ((InternalEObject) right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_EQUAL__RIGHT, null, msgs);
if (newRight != null)
msgs = ((InternalEObject) newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_EQUAL__RIGHT, null, msgs);
msgs = basicSetRight(newRight, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.EXPR_EQUAL__RIGHT, newRight, newRight));
}
use of org.eclipse.emf.ecore.InternalEObject in project openhab1-addons by openhab.
the class ColorColorTemperatureImpl method setMbrick.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setMbrick(MBrickletColor newMbrick) {
if (newMbrick != eInternalContainer() || (eContainerFeatureID() != ModelPackage.COLOR_COLOR_TEMPERATURE__MBRICK && newMbrick != null)) {
if (EcoreUtil.isAncestor(this, newMbrick))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newMbrick != null)
msgs = ((InternalEObject) newMbrick).eInverseAdd(this, ModelPackage.MSUB_DEVICE_HOLDER__MSUBDEVICES, MSubDeviceHolder.class, msgs);
msgs = basicSetMbrick(newMbrick, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.COLOR_COLOR_TEMPERATURE__MBRICK, newMbrick, newMbrick));
}
use of org.eclipse.emf.ecore.InternalEObject in project openhab1-addons by openhab.
the class ColorIlluminanceImpl method setMbrick.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setMbrick(MBrickletColor newMbrick) {
if (newMbrick != eInternalContainer() || (eContainerFeatureID() != ModelPackage.COLOR_ILLUMINANCE__MBRICK && newMbrick != null)) {
if (EcoreUtil.isAncestor(this, newMbrick))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newMbrick != null)
msgs = ((InternalEObject) newMbrick).eInverseAdd(this, ModelPackage.MSUB_DEVICE_HOLDER__MSUBDEVICES, MSubDeviceHolder.class, msgs);
msgs = basicSetMbrick(newMbrick, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.COLOR_ILLUMINANCE__MBRICK, newMbrick, newMbrick));
}
Aggregations