use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class CastExpressionImpl method setExpression.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setExpression(Expression newExpression) {
if (newExpression != expression) {
NotificationChain msgs = null;
if (expression != null)
msgs = ((InternalEObject) expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CAST_EXPRESSION__EXPRESSION, null, msgs);
if (newExpression != null)
msgs = ((InternalEObject) newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CAST_EXPRESSION__EXPRESSION, null, msgs);
msgs = basicSetExpression(newExpression, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.CAST_EXPRESSION__EXPRESSION, newExpression, newExpression));
}
use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class CheckConstraintImpl method setExpression.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setExpression(Expression newExpression) {
if (newExpression != expression) {
NotificationChain msgs = null;
if (expression != null)
msgs = ((InternalEObject) expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CHECK_CONSTRAINT__EXPRESSION, null, msgs);
if (newExpression != null)
msgs = ((InternalEObject) newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CHECK_CONSTRAINT__EXPRESSION, null, msgs);
msgs = basicSetExpression(newExpression, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.CHECK_CONSTRAINT__EXPRESSION, newExpression, newExpression));
}
use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class ColumnSourceRefImpl method getColumn.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ColumnSource getColumn() {
if (column != null && column.eIsProxy()) {
InternalEObject oldColumn = (InternalEObject) column;
column = (ColumnSource) eResolveProxy(oldColumn);
if (column != oldColumn) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, SqliteModelPackage.COLUMN_SOURCE_REF__COLUMN, oldColumn, column));
}
}
return column;
}
use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class ColumnSourceRefImpl method getSource.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SelectSource getSource() {
if (source != null && source.eIsProxy()) {
InternalEObject oldSource = (InternalEObject) source;
source = (SelectSource) eResolveProxy(oldSource);
if (source != oldSource) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, SqliteModelPackage.COLUMN_SOURCE_REF__SOURCE, oldSource, source));
}
}
return source;
}
use of org.eclipse.emf.ecore.InternalEObject in project mechanoid by robotoworks.
the class FunctionArgumentImpl method getArg.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FunctionArg getArg() {
if (arg != null && arg.eIsProxy()) {
InternalEObject oldArg = (InternalEObject) arg;
arg = (FunctionArg) eResolveProxy(oldArg);
if (arg != oldArg) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, SqliteModelPackage.FUNCTION_ARGUMENT__ARG, oldArg, arg));
}
}
return arg;
}
Aggregations