Java 类org.eclipse.emf.common.notify.NotificationChain 实例源码

项目:ttc2017smartGrids    文件:ErpJournalEntryImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case InfERPSupportPackage.ERP_JOURNAL_ENTRY__ERP_LEDGER_ENTRY:
            return basicSetErpLedgerEntry(null, msgs);
        case InfERPSupportPackage.ERP_JOURNAL_ENTRY__ERP_JOURNAL:
            return basicSetErpJournal(null, msgs);
        case InfERPSupportPackage.ERP_JOURNAL_ENTRY__COST_TYPES:
            return ((InternalEList<?>)getCostTypes()).basicRemove(otherEnd, msgs);
        case InfERPSupportPackage.ERP_JOURNAL_ENTRY__ERP_INVOICE_LINE_ITEM:
            return basicSetErpInvoiceLineItem(null, msgs);
        case InfERPSupportPackage.ERP_JOURNAL_ENTRY__ERP_PAYABLE_LINE_ITEMS:
            return ((InternalEList<?>)getErpPayableLineItems()).basicRemove(otherEnd, msgs);
        case InfERPSupportPackage.ERP_JOURNAL_ENTRY__ERP_REC_LINE_ITEMS:
            return ((InternalEList<?>)getErpRecLineItems()).basicRemove(otherEnd, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}
项目:ttc2017smartGrids    文件:ReadingImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case MeteringPackage.READING__END_DEVICE_ASSET:
            if (endDeviceAsset != null)
                msgs = ((InternalEObject)endDeviceAsset).eInverseRemove(this, MeteringPackage.END_DEVICE_ASSET__READINGS, EndDeviceAsset.class, msgs);
            return basicSetEndDeviceAsset((EndDeviceAsset)otherEnd, msgs);
        case MeteringPackage.READING__READING_QUALITIES:
            return ((InternalEList<InternalEObject>)(InternalEList<?>)getReadingQualities()).basicAdd(otherEnd, msgs);
        case MeteringPackage.READING__METER_READINGS:
            return ((InternalEList<InternalEObject>)(InternalEList<?>)getMeterReadings()).basicAdd(otherEnd, msgs);
        case MeteringPackage.READING__READING_TYPE:
            if (readingType != null)
                msgs = ((InternalEObject)readingType).eInverseRemove(this, MeteringPackage.READING_TYPE__READINGS, ReadingType.class, msgs);
            return basicSetReadingType((ReadingType)otherEnd, msgs);
    }
    return super.eInverseAdd(otherEnd, featureID, msgs);
}
项目:ttc2017smartGrids    文件:TransformerInfoImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case AssetModelsPackage.TRANSFORMER_INFO__TRANSFORMERS:
            return ((InternalEList<InternalEObject>)(InternalEList<?>)getTransformers()).basicAdd(otherEnd, msgs);
        case AssetModelsPackage.TRANSFORMER_INFO__WINDING_INFOS:
            return ((InternalEList<InternalEObject>)(InternalEList<?>)getWindingInfos()).basicAdd(otherEnd, msgs);
        case AssetModelsPackage.TRANSFORMER_INFO__TRANSFORMER_ASSET_MODELS:
            return ((InternalEList<InternalEObject>)(InternalEList<?>)getTransformerAssetModels()).basicAdd(otherEnd, msgs);
        case AssetModelsPackage.TRANSFORMER_INFO__TRANSFORMER_ASSETS:
            return ((InternalEList<InternalEObject>)(InternalEList<?>)getTransformerAssets()).basicAdd(otherEnd, msgs);
    }
    return super.eInverseAdd(otherEnd, featureID, msgs);
}
项目:lcdsl    文件:PluginWithVersionAndStartLevelImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setPlugin(PluginWithVersion newPlugin)
{
  if (newPlugin != plugin)
  {
    NotificationChain msgs = null;
    if (plugin != null)
      msgs = ((InternalEObject)plugin).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.PLUGIN_WITH_VERSION_AND_START_LEVEL__PLUGIN, null, msgs);
    if (newPlugin != null)
      msgs = ((InternalEObject)newPlugin).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.PLUGIN_WITH_VERSION_AND_START_LEVEL__PLUGIN, null, msgs);
    msgs = basicSetPlugin(newPlugin, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, LcDslPackage.PLUGIN_WITH_VERSION_AND_START_LEVEL__PLUGIN, newPlugin, newPlugin));
}
项目:Saturn    文件:AddOperationImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setName(ComplexValue newName)
{
  if (newName != name)
  {
    NotificationChain msgs = null;
    if (name != null)
      msgs = ((InternalEObject)name).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FixManipModulePackage.ADD_OPERATION__NAME, null, msgs);
    if (newName != null)
      msgs = ((InternalEObject)newName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FixManipModulePackage.ADD_OPERATION__NAME, null, msgs);
    msgs = basicSetName(newName, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, FixManipModulePackage.ADD_OPERATION__NAME, newName, newName));
}
项目:ttc2017smartGrids    文件:IntervalBlockImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case MeteringPackage.INTERVAL_BLOCK__METER_READING:
            if (meterReading != null)
                msgs = ((InternalEObject)meterReading).eInverseRemove(this, MeteringPackage.METER_READING__INTERVAL_BLOCKS, MeterReading.class, msgs);
            return basicSetMeterReading((MeterReading)otherEnd, msgs);
        case MeteringPackage.INTERVAL_BLOCK__INTERVAL_READINGS:
            return ((InternalEList<InternalEObject>)(InternalEList<?>)getIntervalReadings()).basicAdd(otherEnd, msgs);
        case MeteringPackage.INTERVAL_BLOCK__PENDING:
            if (pending != null)
                msgs = ((InternalEObject)pending).eInverseRemove(this, MeteringPackage.PENDING__INTERVAL_BLOCKS, Pending.class, msgs);
            return basicSetPending((Pending)otherEnd, msgs);
        case MeteringPackage.INTERVAL_BLOCK__READING_TYPE:
            if (readingType != null)
                msgs = ((InternalEObject)readingType).eInverseRemove(this, MeteringPackage.READING_TYPE__INTERVAL_BLOCKS, ReadingType.class, msgs);
            return basicSetReadingType((ReadingType)otherEnd, msgs);
    }
    return super.eInverseAdd(otherEnd, featureID, msgs);
}
项目:Saturn    文件:CheckSessionUpOperationImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setException(exception newException)
{
  if (newException != exception)
  {
    NotificationChain msgs = null;
    if (exception != null)
      msgs = ((InternalEObject)exception).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PsManagerModulePackage.CHECK_SESSION_UP_OPERATION__EXCEPTION, null, msgs);
    if (newException != null)
      msgs = ((InternalEObject)newException).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PsManagerModulePackage.CHECK_SESSION_UP_OPERATION__EXCEPTION, null, msgs);
    msgs = basicSetException(newException, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, PsManagerModulePackage.CHECK_SESSION_UP_OPERATION__EXCEPTION, newException, newException));
}
项目:ttc2017smartGrids    文件:CustomerAccountImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case CustomersPackage.CUSTOMER_ACCOUNT__WORK_BILLING_INFOS:
            return ((InternalEList<?>)getWorkBillingInfos()).basicRemove(otherEnd, msgs);
        case CustomersPackage.CUSTOMER_ACCOUNT__PAYMENT_TRANSACTIONS:
            return ((InternalEList<?>)getPaymentTransactions()).basicRemove(otherEnd, msgs);
        case CustomersPackage.CUSTOMER_ACCOUNT__CUSTOMER_AGREEMENTS:
            return ((InternalEList<?>)getCustomerAgreements()).basicRemove(otherEnd, msgs);
        case CustomersPackage.CUSTOMER_ACCOUNT__ERP_INVOICEES:
            return ((InternalEList<?>)getErpInvoicees()).basicRemove(otherEnd, msgs);
        case CustomersPackage.CUSTOMER_ACCOUNT__CUSTOMER_BILLING_INFOS:
            return ((InternalEList<?>)getCustomerBillingInfos()).basicRemove(otherEnd, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}
项目:Saturn    文件:PerlRunGroupModifierImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setPerlCode(ComplexValue newPerlCode)
{
  if (newPerlCode != perlCode)
  {
    NotificationChain msgs = null;
    if (perlCode != null)
      msgs = ((InternalEObject)perlCode).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SaturnPackage.PERL_RUN_GROUP_MODIFIER__PERL_CODE, null, msgs);
    if (newPerlCode != null)
      msgs = ((InternalEObject)newPerlCode).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SaturnPackage.PERL_RUN_GROUP_MODIFIER__PERL_CODE, null, msgs);
    msgs = basicSetPerlCode(newPerlCode, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, SaturnPackage.PERL_RUN_GROUP_MODIFIER__PERL_CODE, newPerlCode, newPerlCode));
}
项目:gemoc-studio    文件:StateImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setOwningFSM(StateMachine newOwningFSM) {
    if (newOwningFSM != eInternalContainer() || (eContainerFeatureID() != FsmPackage.STATE__OWNING_FSM && newOwningFSM != null)) {
        if (EcoreUtil.isAncestor(this, newOwningFSM))
            throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
        NotificationChain msgs = null;
        if (eInternalContainer() != null)
            msgs = eBasicRemoveFromContainer(msgs);
        if (newOwningFSM != null)
            msgs = ((InternalEObject)newOwningFSM).eInverseAdd(this, FsmPackage.STATE_MACHINE__OWNED_STATES, StateMachine.class, msgs);
        msgs = basicSetOwningFSM(newOwningFSM, msgs);
        if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, FsmPackage.STATE__OWNING_FSM, newOwningFSM, newOwningFSM));
}
项目:Xtext_Xtend_HTML_Generator    文件:MenuImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDescription(Description newDescription)
{
  if (newDescription != description)
  {
    NotificationChain msgs = null;
    if (description != null)
      msgs = ((InternalEObject)description).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - MyDslPackage.MENU__DESCRIPTION, null, msgs);
    if (newDescription != null)
      msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - MyDslPackage.MENU__DESCRIPTION, null, msgs);
    msgs = basicSetDescription(newDescription, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, MyDslPackage.MENU__DESCRIPTION, newDescription, newDescription));
}
项目:Saturn    文件:DocumentumConfigurationImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setUsername(ComplexValue newUsername)
{
  if (newUsername != username)
  {
    NotificationChain msgs = null;
    if (username != null)
      msgs = ((InternalEObject)username).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__USERNAME, null, msgs);
    if (newUsername != null)
      msgs = ((InternalEObject)newUsername).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__USERNAME, null, msgs);
    msgs = basicSetUsername(newUsername, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__USERNAME, newUsername, newUsername));
}
项目:neoscada    文件:DocumentRootImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove ( InternalEObject otherEnd, int featureID, NotificationChain msgs )
{
    switch ( featureID )
    {
        case ConfigurationPackage.DOCUMENT_ROOT__MIXED:
            return ( (InternalEList<?>)getMixed () ).basicRemove ( otherEnd, msgs );
        case ConfigurationPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
            return ( (InternalEList<?>)getXMLNSPrefixMap () ).basicRemove ( otherEnd, msgs );
        case ConfigurationPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
            return ( (InternalEList<?>)getXSISchemaLocation () ).basicRemove ( otherEnd, msgs );
        case ConfigurationPackage.DOCUMENT_ROOT__ROOT:
            return basicSetRoot ( null, msgs );
    }
    return super.eInverseRemove ( otherEnd, featureID, msgs );
}
项目:ttc2017smartGrids    文件:StartupModelImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case ProductionPackage.STARTUP_MODEL__START_IGN_FUEL_CURVE:
            if (startIgnFuelCurve != null)
                msgs = ((InternalEObject)startIgnFuelCurve).eInverseRemove(this, ProductionPackage.START_IGN_FUEL_CURVE__STARTUP_MODEL, StartIgnFuelCurve.class, msgs);
            return basicSetStartIgnFuelCurve((StartIgnFuelCurve)otherEnd, msgs);
        case ProductionPackage.STARTUP_MODEL__START_RAMP_CURVE:
            if (startRampCurve != null)
                msgs = ((InternalEObject)startRampCurve).eInverseRemove(this, ProductionPackage.START_RAMP_CURVE__STARTUP_MODEL, StartRampCurve.class, msgs);
            return basicSetStartRampCurve((StartRampCurve)otherEnd, msgs);
        case ProductionPackage.STARTUP_MODEL__START_MAIN_FUEL_CURVE:
            if (startMainFuelCurve != null)
                msgs = ((InternalEObject)startMainFuelCurve).eInverseRemove(this, ProductionPackage.START_MAIN_FUEL_CURVE__STARTUP_MODEL, StartMainFuelCurve.class, msgs);
            return basicSetStartMainFuelCurve((StartMainFuelCurve)otherEnd, msgs);
        case ProductionPackage.STARTUP_MODEL__THERMAL_GENERATING_UNIT:
            if (thermalGeneratingUnit != null)
                msgs = ((InternalEObject)thermalGeneratingUnit).eInverseRemove(this, ProductionPackage.THERMAL_GENERATING_UNIT__STARTUP_MODEL, ThermalGeneratingUnit.class, msgs);
            return basicSetThermalGeneratingUnit((ThermalGeneratingUnit)otherEnd, msgs);
    }
    return super.eInverseAdd(otherEnd, featureID, msgs);
}
项目:Saturn    文件:AlmIdImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setId(ComplexValue newId)
{
  if (newId != id)
  {
    NotificationChain msgs = null;
    if (id != null)
      msgs = ((InternalEObject)id).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TypesPackage.ALM_ID__ID, null, msgs);
    if (newId != null)
      msgs = ((InternalEObject)newId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TypesPackage.ALM_ID__ID, null, msgs);
    msgs = basicSetId(newId, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.ALM_ID__ID, newId, newId));
}
项目:Saturn    文件:DocumentumConfigurationImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setBase(ComplexValue newBase)
{
  if (newBase != base)
  {
    NotificationChain msgs = null;
    if (base != null)
      msgs = ((InternalEObject)base).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__BASE, null, msgs);
    if (newBase != null)
      msgs = ((InternalEObject)newBase).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__BASE, null, msgs);
    msgs = basicSetBase(newBase, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__BASE, newBase, newBase));
}
项目:n4js    文件:N4MemberAnnotationListImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setOwner(N4ClassifierDefinition newOwner) {
    if (newOwner != eInternalContainer() || (eContainerFeatureID() != N4JSPackage.N4_MEMBER_ANNOTATION_LIST__OWNER && newOwner != null)) {
        if (EcoreUtil.isAncestor(this, newOwner))
            throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
        NotificationChain msgs = null;
        if (eInternalContainer() != null)
            msgs = eBasicRemoveFromContainer(msgs);
        if (newOwner != null)
            msgs = ((InternalEObject)newOwner).eInverseAdd(this, N4JSPackage.N4_CLASSIFIER_DEFINITION__OWNED_MEMBERS_RAW, N4ClassifierDefinition.class, msgs);
        msgs = basicSetOwner(newOwner, msgs);
        if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, N4JSPackage.N4_MEMBER_ANNOTATION_LIST__OWNER, newOwner, newOwner));
}
项目:time4sys    文件:EventModelImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setParent(EventModelContainer newParent) {
    if (newParent != eInternalContainer() || (eContainerFeatureID() != AnalysisPackage.EVENT_MODEL__PARENT && newParent != null)) {
        if (EcoreUtil.isAncestor(this, newParent))
            throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
        NotificationChain msgs = null;
        if (eInternalContainer() != null)
            msgs = eBasicRemoveFromContainer(msgs);
        if (newParent != null)
            msgs = ((InternalEObject)newParent).eInverseAdd(this, AnalysisPackage.EVENT_MODEL_CONTAINER__EVENT_MODEL, EventModelContainer.class, msgs);
        msgs = basicSetParent(newParent, msgs);
        if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, AnalysisPackage.EVENT_MODEL__PARENT, newParent, newParent));
}
项目:Saturn    文件:AlmIdImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setProject(ComplexValue newProject)
{
  if (newProject != project)
  {
    NotificationChain msgs = null;
    if (project != null)
      msgs = ((InternalEObject)project).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TypesPackage.ALM_ID__PROJECT, null, msgs);
    if (newProject != null)
      msgs = ((InternalEObject)newProject).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TypesPackage.ALM_ID__PROJECT, null, msgs);
    msgs = basicSetProject(newProject, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.ALM_ID__PROJECT, newProject, newProject));
}
项目:neoscada    文件:DaveDriverImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setCustomizationProfile ( Profile newCustomizationProfile )
{
    if ( newCustomizationProfile != customizationProfile )
    {
        NotificationChain msgs = null;
        if ( customizationProfile != null )
            msgs = ( (InternalEObject)customizationProfile ).eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - DavePackage.DAVE_DRIVER__CUSTOMIZATION_PROFILE, null, msgs );
        if ( newCustomizationProfile != null )
            msgs = ( (InternalEObject)newCustomizationProfile ).eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - DavePackage.DAVE_DRIVER__CUSTOMIZATION_PROFILE, null, msgs );
        msgs = basicSetCustomizationProfile ( newCustomizationProfile, msgs );
        if ( msgs != null )
            msgs.dispatch ();
    }
    else if ( eNotificationRequired () )
        eNotify ( new ENotificationImpl ( this, Notification.SET, DavePackage.DAVE_DRIVER__CUSTOMIZATION_PROFILE, newCustomizationProfile, newCustomizationProfile ) );
}
项目:time4sys    文件:SchedulerImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case AnalysisPackage.SCHEDULER__SCHEDULED_ELEMENTS:
            return ((InternalEList<?>)getScheduledElements()).basicRemove(otherEnd, msgs);
        case AnalysisPackage.SCHEDULER__USED_BY:
            return basicSetUsedBy(null, msgs);
        case AnalysisPackage.SCHEDULER__REQUIRED_PARAMETERS:
            return ((InternalEList<?>)getRequiredParameters()).basicRemove(otherEnd, msgs);
        case AnalysisPackage.SCHEDULER__PARENT:
            return basicSetParent(null, msgs);
        case AnalysisPackage.SCHEDULER__RESOURCE_PARAMETER_VALUE:
            return ((InternalEList<?>)getResourceParameterValue()).basicRemove(otherEnd, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}
项目:Saturn    文件:DB2ResourceImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setServer(ComplexValue newServer)
{
  if (newServer != server)
  {
    NotificationChain msgs = null;
    if (server != null)
      msgs = ((InternalEObject)server).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Db2ResourcePackage.DB2_RESOURCE__SERVER, null, msgs);
    if (newServer != null)
      msgs = ((InternalEObject)newServer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Db2ResourcePackage.DB2_RESOURCE__SERVER, null, msgs);
    msgs = basicSetServer(newServer, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, Db2ResourcePackage.DB2_RESOURCE__SERVER, newServer, newServer));
}
项目:Saturn    文件:CustomFileImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
  switch (featureID)
  {
    case FileResourcePackage.CUSTOM_FILE__NULL_MARKER:
      return basicSetNullMarker(null, msgs);
    case FileResourcePackage.CUSTOM_FILE__ROW_SEPARATOR:
      return basicSetRowSeparator(null, msgs);
    case FileResourcePackage.CUSTOM_FILE__CELL_SEPARATOR:
      return basicSetCellSeparator(null, msgs);
    case FileResourcePackage.CUSTOM_FILE__QUOTE_CHARACTER:
      return basicSetQuoteCharacter(null, msgs);
    case FileResourcePackage.CUSTOM_FILE__ESCAPE_CHARACTER:
      return basicSetEscapeCharacter(null, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
项目:rgse.ttc17.emoflon.tgg    文件:ScheduledEventImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case InfCommonPackage.SCHEDULED_EVENT__DOCUMENT:
            if (document != null)
                msgs = ((InternalEObject)document).eInverseRemove(this, CommonPackage.DOCUMENT__SCHEDULED_EVENTS, Document.class, msgs);
            return basicSetDocument((Document)otherEnd, msgs);
        case InfCommonPackage.SCHEDULED_EVENT__TIME_POINT:
            if (timePoint != null)
                msgs = ((InternalEObject)timePoint).eInverseRemove(this, CommonPackage.TIME_POINT__SCHEDULED_EVENTS, TimePoint.class, msgs);
            return basicSetTimePoint((TimePoint)otherEnd, msgs);
        case InfCommonPackage.SCHEDULED_EVENT__SCHEDULE_PARAMETER_INFO:
            if (scheduleParameterInfo != null)
                msgs = ((InternalEObject)scheduleParameterInfo).eInverseRemove(this, InfCommonPackage.SCHEDULE_PARAMETER_INFO__SCHEDULED_EVENTS, ScheduleParameterInfo.class, msgs);
            return basicSetScheduleParameterInfo((ScheduleParameterInfo)otherEnd, msgs);
        case InfCommonPackage.SCHEDULED_EVENT__ACTIVITY_RECORD:
            if (activityRecord != null)
                msgs = ((InternalEObject)activityRecord).eInverseRemove(this, CommonPackage.ACTIVITY_RECORD__SCHEDULED_EVENT, ActivityRecord.class, msgs);
            return basicSetActivityRecord((ActivityRecord)otherEnd, msgs);
        case InfCommonPackage.SCHEDULED_EVENT__ASSETS:
            return ((InternalEList<InternalEObject>)(InternalEList<?>)getAssets()).basicAdd(otherEnd, msgs);
    }
    return super.eInverseAdd(otherEnd, featureID, msgs);
}
项目:Saturn    文件:MQPutOperationImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setInputResource(ResourceDefinition newInputResource)
{
  if (newInputResource != inputResource)
  {
    NotificationChain msgs = null;
    if (inputResource != null)
      msgs = ((InternalEObject)inputResource).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - MqModulePackage.MQ_PUT_OPERATION__INPUT_RESOURCE, null, msgs);
    if (newInputResource != null)
      msgs = ((InternalEObject)newInputResource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - MqModulePackage.MQ_PUT_OPERATION__INPUT_RESOURCE, null, msgs);
    msgs = basicSetInputResource(newInputResource, msgs);
    if (msgs != null) msgs.dispatch();
  }
  else if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, MqModulePackage.MQ_PUT_OPERATION__INPUT_RESOURCE, newInputResource, newInputResource));
}
项目:ttc2017smartGrids    文件:ErpReqLineItemImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case InfERPSupportPackage.ERP_REQ_LINE_ITEM__TYPE_MATERIAL:
            return basicSetTypeMaterial(null, msgs);
        case InfERPSupportPackage.ERP_REQ_LINE_ITEM__ERP_QUOTE_LINE_ITEM:
            return basicSetErpQuoteLineItem(null, msgs);
        case InfERPSupportPackage.ERP_REQ_LINE_ITEM__ERP_REQUISITION:
            return basicSetErpRequisition(null, msgs);
        case InfERPSupportPackage.ERP_REQ_LINE_ITEM__TYPE_ASSET:
            return basicSetTypeAsset(null, msgs);
        case InfERPSupportPackage.ERP_REQ_LINE_ITEM__ERP_PO_LINE_ITEM:
            return basicSetErpPOLineItem(null, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}
项目:ttc2017smartGrids    文件:BillDeterminantImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetChargeProfile(ChargeProfile newChargeProfile, NotificationChain msgs) {
    ChargeProfile oldChargeProfile = chargeProfile;
    chargeProfile = newChargeProfile;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MarketOperationsPackage.BILL_DETERMINANT__CHARGE_PROFILE, oldChargeProfile, newChargeProfile);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:neoscada    文件:EventInjectorManagerImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove ( InternalEObject otherEnd, int featureID, NotificationChain msgs )
{
    switch ( featureID )
    {
        case OsgiPackage.EVENT_INJECTOR_MANAGER__HANDLER:
            return ( (InternalEList<?>)getHandler () ).basicRemove ( otherEnd, msgs );
    }
    return super.eInverseRemove ( otherEnd, featureID, msgs );
}
项目:rgse.ttc17.emoflon.tgg    文件:ReservoirImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTargetLevelSchedule(TargetLevelSchedule newTargetLevelSchedule, NotificationChain msgs) {
    TargetLevelSchedule oldTargetLevelSchedule = targetLevelSchedule;
    targetLevelSchedule = newTargetLevelSchedule;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ProductionPackage.RESERVOIR__TARGET_LEVEL_SCHEDULE, oldTargetLevelSchedule, newTargetLevelSchedule);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:ttc2017smartGrids    文件:ScheduledEventImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetScheduleParameterInfo(ScheduleParameterInfo newScheduleParameterInfo, NotificationChain msgs) {
    ScheduleParameterInfo oldScheduleParameterInfo = scheduleParameterInfo;
    scheduleParameterInfo = newScheduleParameterInfo;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfCommonPackage.SCHEDULED_EVENT__SCHEDULE_PARAMETER_INFO, oldScheduleParameterInfo, newScheduleParameterInfo);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:rgse.ttc17.emoflon.tgg    文件:ErpPOLineItemImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetErpReqLineItem(ErpReqLineItem newErpReqLineItem, NotificationChain msgs) {
    ErpReqLineItem oldErpReqLineItem = erpReqLineItem;
    erpReqLineItem = newErpReqLineItem;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_PO_LINE_ITEM__ERP_REQ_LINE_ITEM, oldErpReqLineItem, newErpReqLineItem);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:n4js    文件:ParameterizedCallExpressionImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setTarget(Expression newTarget) {
    if (newTarget != target) {
        NotificationChain msgs = null;
        if (target != null)
            msgs = ((InternalEObject)target).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - N4JSPackage.PARAMETERIZED_CALL_EXPRESSION__TARGET, null, msgs);
        if (newTarget != null)
            msgs = ((InternalEObject)newTarget).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - N4JSPackage.PARAMETERIZED_CALL_EXPRESSION__TARGET, null, msgs);
        msgs = basicSetTarget(newTarget, msgs);
        if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, N4JSPackage.PARAMETERIZED_CALL_EXPRESSION__TARGET, newTarget, newTarget));
}
项目:ttc2017smartGrids    文件:CurtailmentProfileImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case EnergySchedulingPackage.CURTAILMENT_PROFILE__ENERGY_TRANSACTION:
            return basicSetEnergyTransaction(null, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}
项目:rgse.ttc17.emoflon.tgg    文件:GmlRasterSymbolImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setGmlDiagramObject(GmlDiagramObject newGmlDiagramObject) {
    if (newGmlDiagramObject != gmlDiagramObject) {
        NotificationChain msgs = null;
        if (gmlDiagramObject != null)
            msgs = ((InternalEObject)gmlDiagramObject).eInverseRemove(this, InfGMLSupportPackage.GML_DIAGRAM_OBJECT__GML_RASTER_SYMBOLS, GmlDiagramObject.class, msgs);
        if (newGmlDiagramObject != null)
            msgs = ((InternalEObject)newGmlDiagramObject).eInverseAdd(this, InfGMLSupportPackage.GML_DIAGRAM_OBJECT__GML_RASTER_SYMBOLS, GmlDiagramObject.class, msgs);
        msgs = basicSetGmlDiagramObject(newGmlDiagramObject, msgs);
        if (msgs != null) msgs.dispatch();
    }
    else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, InfGMLSupportPackage.GML_RASTER_SYMBOL__GML_DIAGRAM_OBJECT, newGmlDiagramObject, newGmlDiagramObject));
}
项目:rgse.ttc17.emoflon.tgg    文件:RatioTapChangerImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetWinding(DistributionTransformerWinding newWinding, NotificationChain msgs) {
    DistributionTransformerWinding oldWinding = winding;
    winding = newWinding;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WiresPackage.RATIO_TAP_CHANGER__WINDING, oldWinding, newWinding);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:ttc2017smartGrids    文件:EnergyConsumerImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetPowerCutZone(PowerCutZone newPowerCutZone, NotificationChain msgs) {
    PowerCutZone oldPowerCutZone = powerCutZone;
    powerCutZone = newPowerCutZone;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WiresPackage.ENERGY_CONSUMER__POWER_CUT_ZONE, oldPowerCutZone, newPowerCutZone);
        if (msgs == null) msgs = notification; else msgs.add(notification);
    }
    return msgs;
}
项目:Saturn    文件:ProcedureCallStepImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetProcedureCallConfiguration(ProcedureCallConfiguration newProcedureCallConfiguration,
    NotificationChain msgs)
{
  ProcedureCallConfiguration oldProcedureCallConfiguration = procedureCallConfiguration;
  procedureCallConfiguration = newProcedureCallConfiguration;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SaturnPackage.PROCEDURE_CALL_STEP__PROCEDURE_CALL_CONFIGURATION, oldProcedureCallConfiguration, newProcedureCallConfiguration);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
项目:Saturn    文件:ReplaceOperationImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
  switch (featureID)
  {
    case XmlManipModulePackage.REPLACE_OPERATION__SEARCH:
      return basicSetSearch(null, msgs);
    case XmlManipModulePackage.REPLACE_OPERATION__WITH:
      return basicSetWith(null, msgs);
  }
  return super.eInverseRemove(otherEnd, featureID, msgs);
}
项目:ttc2017smartGrids    文件:GmlGraphicImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case InfGMLSupportPackage.GML_GRAPHIC__GML_MARKS:
            return ((InternalEList<InternalEObject>)(InternalEList<?>)getGmlMarks()).basicAdd(otherEnd, msgs);
        case InfGMLSupportPackage.GML_GRAPHIC__GML_POINT_SYMBOLS:
            return ((InternalEList<InternalEObject>)(InternalEList<?>)getGmlPointSymbols()).basicAdd(otherEnd, msgs);
    }
    return super.eInverseAdd(otherEnd, featureID, msgs);
}
项目:ttc2017smartGrids    文件:QualificationRequirementImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
    switch (featureID) {
        case InfWorkPackage.QUALIFICATION_REQUIREMENT__SPECIFICATIONS:
            return ((InternalEList<?>)getSpecifications()).basicRemove(otherEnd, msgs);
        case InfWorkPackage.QUALIFICATION_REQUIREMENT__WORK_TASKS:
            return ((InternalEList<?>)getWorkTasks()).basicRemove(otherEnd, msgs);
        case InfWorkPackage.QUALIFICATION_REQUIREMENT__CU_LABOR_ITEMS:
            return ((InternalEList<?>)getCULaborItems()).basicRemove(otherEnd, msgs);
        case InfWorkPackage.QUALIFICATION_REQUIREMENT__SKILLS:
            return ((InternalEList<?>)getSkills()).basicRemove(otherEnd, msgs);
    }
    return super.eInverseRemove(otherEnd, featureID, msgs);
}