code: public void setSwitch(XExpression newSwitch)
  	{
  		if (newSwitch != switch_)
  		{
  			NotificationChain msgs = null;
  			if (switch_ != null)
  				msgs = ((InternalEObject)switch_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XbasePackage.XSWITCH_EXPRESSION__SWITCH, null, msgs);
  			if (newSwitch != null)
  				msgs = ((InternalEObject)newSwitch).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - XbasePackage.XSWITCH_EXPRESSION__SWITCH, null, msgs);
  			msgs = basicSetSwitch(newSwitch, msgs);
  			if (msgs != null) msgs.dispatch();
  		}
  		else if (eNotificationRequired())
  			eNotify(new ENotificationImpl(this, Notification.SET, XbasePackage.XSWITCH_EXPRESSION__SWITCH, newSwitch, newSwitch));
  	}
docs: <!-- begin-user-doc -->
  <!-- end-user-doc -->
  @generated