/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setMaster ( MasterServer newMaster ) { if ( newMaster != eInternalContainer () || ( eContainerFeatureID () != InfrastructurePackage.MASTER_IMPORT__MASTER && newMaster != null ) ) { if ( EcoreUtil.isAncestor ( this, newMaster ) ) throw new IllegalArgumentException ( "Recursive containment not allowed for " + toString () ); //$NON-NLS-1$ NotificationChain msgs = null; if ( eInternalContainer () != null ) msgs = eBasicRemoveFromContainer ( msgs ); if ( newMaster != null ) msgs = ( (InternalEObject)newMaster ).eInverseAdd ( this, InfrastructurePackage.MASTER_SERVER__IMPORT_MASTER, MasterServer.class, msgs ); msgs = basicSetMaster ( newMaster, msgs ); if ( msgs != null ) msgs.dispatch (); } else if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.SET, InfrastructurePackage.MASTER_IMPORT__MASTER, newMaster, newMaster ) ); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setFavorites(Favorites newFavorites) { if (newFavorites != favorites) { NotificationChain msgs = null; if (favorites != null) msgs = ((InternalEObject)favorites).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.LAUNCH_CONFIG__FAVORITES, null, msgs); if (newFavorites != null) msgs = ((InternalEObject)newFavorites).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LcDslPackage.LAUNCH_CONFIG__FAVORITES, null, msgs); msgs = basicSetFavorites(newFavorites, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, LcDslPackage.LAUNCH_CONFIG__FAVORITES, newFavorites, newFavorites)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setResource(NamedResourceDefinition newResource) { if (newResource != resource) { NotificationChain msgs = null; if (resource != null) msgs = ((InternalEObject)resource).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ValuesPackage.JSON_COMPLEX_VALUE__RESOURCE, null, msgs); if (newResource != null) msgs = ((InternalEObject)newResource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ValuesPackage.JSON_COMPLEX_VALUE__RESOURCE, null, msgs); msgs = basicSetResource(newResource, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ValuesPackage.JSON_COMPLEX_VALUE__RESOURCE, newResource, newResource)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setName(String newName) { String oldName = name; name = newName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, RestaurantePackage.INGREDIENTE__NAME, oldName, name)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SPC getCapDS() { if (capDS != null && capDS.eIsProxy()) { InternalEObject oldCapDS = (InternalEObject)capDS; capDS = (SPC)eResolveProxy(oldCapDS); if (capDS != oldCapDS) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupZPackage.ZCAP__CAP_DS, oldCapDS, capDS)); } } return capDS; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetURI(ComplexValue newURI, NotificationChain msgs) { ComplexValue oldURI = uRI; uRI = newURI; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FileResourcePackage.XML_NAMESPACE_DEFINITION__URI, oldURI, newURI); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetErpQuoteLineItem(ErpQuoteLineItem newErpQuoteLineItem, NotificationChain msgs) { ErpQuoteLineItem oldErpQuoteLineItem = erpQuoteLineItem; erpQuoteLineItem = newErpQuoteLineItem; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_INVOICE_LINE_ITEM__ERP_QUOTE_LINE_ITEM, oldErpQuoteLineItem, newErpQuoteLineItem); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetPhaseVariationCurve(PhaseVariationCurve newPhaseVariationCurve, NotificationChain msgs) { PhaseVariationCurve oldPhaseVariationCurve = phaseVariationCurve; phaseVariationCurve = newPhaseVariationCurve; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WiresPackage.PHASE_TAP_CHANGER__PHASE_VARIATION_CURVE, oldPhaseVariationCurve, newPhaseVariationCurve); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSection(String newSection) { String oldSection = section; section = newSection; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.TOWN_DETAIL__SECTION, oldSection, section)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetProgramEntries(ElectricityProgramEntries newProgramEntries, NotificationChain msgs) { ElectricityProgramEntries oldProgramEntries = programEntries; programEntries = newProgramEntries; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, COSEMPackage.LOGICAL_DEVICE__PROGRAM_ENTRIES, oldProgramEntries, newProgramEntries); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DataAccessConnection getConnection () { if ( connection != null && connection.eIsProxy () ) { InternalEObject oldConnection = (InternalEObject)connection; connection = (DataAccessConnection)eResolveProxy ( oldConnection ); if ( connection != oldConnection ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.SOURCE_ITEM__CONNECTION, oldConnection, connection ) ); } } return connection; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSymbolID(String newSymbolID) { String oldSymbolID = symbolID; symbolID = newSymbolID; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, InfGMLSupportPackage.GML_GRAPHIC__SYMBOL_ID, oldSymbolID, symbolID)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setI(int newI) { int oldI = i; i = newI; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DataclassesPackage.ANALOGUE_VALUE__I, oldI, i)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSource(ConformLoadGroup newSource) { ConformLoadGroup oldSource = source; source = newSource; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, OutagePreventionMjtracePackage.REF_CONFORM_LOAD_GROUP_CONFORM_LOAD_GROUP_LOAD_GROUP__SOURCE, oldSource, source)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ING getPhDlTmms() { if (phDlTmms != null && phDlTmms.eIsProxy()) { InternalEObject oldPhDlTmms = (InternalEObject)phDlTmms; phDlTmms = (ING)eResolveProxy(oldPhDlTmms); if (phDlTmms != oldPhDlTmms) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupPPackage.PDIS__PH_DL_TMMS, oldPhDlTmms, phDlTmms)); } } return phDlTmms; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public HMV getHaVolAmpr() { if (haVolAmpr != null && haVolAmpr.eIsProxy()) { InternalEObject oldHaVolAmpr = (InternalEObject)haVolAmpr; haVolAmpr = (HMV)eResolveProxy(oldHaVolAmpr); if (haVolAmpr != oldHaVolAmpr) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupMPackage.MHAN__HA_VOL_AMPR, oldHaVolAmpr, haVolAmpr)); } } return haVolAmpr; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AssetModelCatalogue getAssetModelCatalogue() { if (assetModelCatalogue != null && assetModelCatalogue.eIsProxy()) { InternalEObject oldAssetModelCatalogue = (InternalEObject)assetModelCatalogue; assetModelCatalogue = (AssetModelCatalogue)eResolveProxy(oldAssetModelCatalogue); if (assetModelCatalogue != oldAssetModelCatalogue) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfAssetModelsPackage.ASSET_MODEL_CATALOGUE_ITEM__ASSET_MODEL_CATALOGUE, oldAssetModelCatalogue, assetModelCatalogue)); } } return assetModelCatalogue; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetSuperType(ParameterizedTypeRef newSuperType, NotificationChain msgs) { ParameterizedTypeRef oldSuperType = superType; superType = newSuperType; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TypesPackage.TOBJECT_PROTOTYPE__SUPER_TYPE, oldSuperType, newSuperType); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setRisGndRch(ASG newRisGndRch) { ASG oldRisGndRch = risGndRch; risGndRch = newRisGndRch; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, LNGroupPPackage.PDIS__RIS_GND_RCH, oldRisGndRch, risGndRch)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setLLim(AnalogueValue newLLim) { AnalogueValue oldLLim = lLim; lLim = newLLim; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DataclassesPackage.RANGE_CONFIG__LLIM, oldLLim, lLim)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public MV getVol() { if (vol != null && vol.eIsProxy()) { InternalEObject oldVol = (InternalEObject)vol; vol = (MV)eResolveProxy(oldVol); if (vol != oldVol) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, LNGroupZPackage.ZAXN__VOL, oldVol, vol)); } } return vol; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setQuestionText(String newQuestionText) { String oldQuestionText = questionText; questionText = newQuestionText; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, InfWorkPackage.INFO_QUESTION__QUESTION_TEXT, oldQuestionText, questionText)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setGovernmentID(String newGovernmentID) { String oldGovernmentID = governmentID; governmentID = newGovernmentID; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_ORGANISATION__GOVERNMENT_ID, oldGovernmentID, governmentID)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setInterval(DateTimeInterval newInterval) { DateTimeInterval oldInterval = interval; interval = newInterval; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, InfOperationsPackage.SWITCHING_SCHEDULE__INTERVAL, oldInterval, interval)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setStage(int newStage) { int oldStage = stage; stage = newStage; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, InfAssetsPackage.POWER_RATING__STAGE, oldStage, stage)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setFillKind(JointFillKind newFillKind) { JointFillKind oldFillKind = fillKind; fillKind = newFillKind == null ? FILL_KIND_EDEFAULT : newFillKind; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, InfAssetsPackage.JOINT_INFO__FILL_KIND, oldFillKind, fillKind)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setOp(ACT newOp) { ACT oldOp = op; op = newOp; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, LNGroupPPackage.PTEF__OP, oldOp, op)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setCredential(arrayCredential newCredential) { if (newCredential != credential) { NotificationChain msgs = null; if (credential != null) msgs = ((InternalEObject)credential).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ExtendedtoscaPackage.TOSCA_NODES_COMPUTEWITHCAPWITHATTR__CREDENTIAL, null, msgs); if (newCredential != null) msgs = ((InternalEObject)newCredential).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ExtendedtoscaPackage.TOSCA_NODES_COMPUTEWITHCAPWITHATTR__CREDENTIAL, null, msgs); msgs = basicSetCredential(newCredential, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ExtendedtoscaPackage.TOSCA_NODES_COMPUTEWITHCAPWITHATTR__CREDENTIAL, newCredential, newCredential)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setWeb(String newWeb) { String oldWeb = web; web = newWeb; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.ELECTRONIC_ADDRESS__WEB, oldWeb, web)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setInductiveRating(float newInductiveRating) { float oldInductiveRating = inductiveRating; inductiveRating = newInductiveRating; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WiresPackage.STATIC_VAR_COMPENSATOR__INDUCTIVE_RATING, oldInductiveRating, inductiveRating)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTimestamp(Duration newTimestamp) { Duration oldTimestamp = timestamp; timestamp = newTimestamp; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TracePackage.EVENT__TIMESTAMP, oldTimestamp, timestamp)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setOp(ACT newOp) { ACT oldOp = op; op = newOp; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, LNGroupPPackage.PTOV__OP, oldOp, op)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetMarket(Market newMarket, NotificationChain msgs) { Market oldMarket = market; market = newMarket; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MarketOperationsPackage.MARKET_PRODUCT__MARKET, oldMarket, newMarket); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setAmpere_squaredHours(double newAmpere_squaredHours) { double oldAmpere_squaredHours = ampere_squaredHours; ampere_squaredHours = newAmpere_squaredHours; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, COSEMObjectsPackage.ELECTRICITY_VALUES__AMPERE_SQUARED_HOURS, oldAmpere_squaredHours, ampere_squaredHours)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setMaxAngleDiff(float newMaxAngleDiff) { float oldMaxAngleDiff = maxAngleDiff; maxAngleDiff = newMaxAngleDiff; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ProtectionPackage.SYNCHROCHECK_RELAY__MAX_ANGLE_DIFF, oldMaxAngleDiff, maxAngleDiff)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetErpPOLineItem(ErpPOLineItem newErpPOLineItem, NotificationChain msgs) { ErpPOLineItem oldErpPOLineItem = erpPOLineItem; erpPOLineItem = newErpPOLineItem; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_REC_DELV_LINE_ITEM__ERP_PO_LINE_ITEM, oldErpPOLineItem, newErpPOLineItem); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setStatus(Status newStatus) { Status oldStatus = status; status = newStatus; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_QUOTE_LINE_ITEM__STATUS, oldStatus, status)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StartUpCostCurve getStartUpCostCurve() { if (startUpCostCurve != null && startUpCostCurve.eIsProxy()) { InternalEObject oldStartUpCostCurve = (InternalEObject)startUpCostCurve; startUpCostCurve = (StartUpCostCurve)eResolveProxy(oldStartUpCostCurve); if (startUpCostCurve != oldStartUpCostCurve) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, MarketOperationsPackage.GENERATING_BID__START_UP_COST_CURVE, oldStartUpCostCurve, startUpCostCurve)); } } return startUpCostCurve; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setPricingStructure(PricingStructure newPricingStructure) { if (newPricingStructure != pricingStructure) { NotificationChain msgs = null; if (pricingStructure != null) msgs = ((InternalEObject)pricingStructure).eInverseRemove(this, CustomersPackage.PRICING_STRUCTURE__POWER_QUALITY_PRICINGS, PricingStructure.class, msgs); if (newPricingStructure != null) msgs = ((InternalEObject)newPricingStructure).eInverseAdd(this, CustomersPackage.PRICING_STRUCTURE__POWER_QUALITY_PRICINGS, PricingStructure.class, msgs); msgs = basicSetPricingStructure(newPricingStructure, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, InfCustomersPackage.POWER_QUALITY_PRICING__PRICING_STRUCTURE, newPricingStructure, newPricingStructure)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setUnit(Unit newUnit) { if (newUnit != unit) { NotificationChain msgs = null; if (unit != null) msgs = ((InternalEObject)unit).eInverseRemove(this, CorePackage.UNIT__MEASUREMENTS, Unit.class, msgs); if (newUnit != null) msgs = ((InternalEObject)newUnit).eInverseAdd(this, CorePackage.UNIT__MEASUREMENTS, Unit.class, msgs); msgs = basicSetUnit(newUnit, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MeasPackage.MEASUREMENT__UNIT, newUnit, newUnit)); }