本文整理汇总了Java中org.eclipse.emf.ecore.InternalEObject类的典型用法代码示例。如果您正苦于以下问题:Java InternalEObject类的具体用法?Java InternalEObject怎么用?Java InternalEObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InternalEObject类属于org.eclipse.emf.ecore包,在下文中一共展示了InternalEObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: eInverseRemove
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
switch (featureID)
{
case DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__BASE:
return basicSetBase(null, msgs);
case DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__USERNAME:
return basicSetUsername(null, msgs);
case DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__PASSWORD:
return basicSetPassword(null, msgs);
case DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__FOLDER:
return basicSetFolder(null, msgs);
case DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__DOCUMENT:
return basicSetDocument(null, msgs);
case DocumentumModulePackage.DOCUMENTUM_CONFIGURATION__FILE:
return basicSetFile(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
示例2: eInverseAdd
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case InfGMLSupportPackage.GML_STROKE__GML_COLOUR:
if (gmlColour != null)
msgs = ((InternalEObject)gmlColour).eInverseRemove(this, InfGMLSupportPackage.GML_COLOUR__GML_STROKES, GmlColour.class, msgs);
return basicSetGmlColour((GmlColour)otherEnd, msgs);
case InfGMLSupportPackage.GML_STROKE__GML_SVG_PARAMETERS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getGmlSvgParameters()).basicAdd(otherEnd, msgs);
case InfGMLSupportPackage.GML_STROKE__GML_POLYGON_SYMBOLS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getGmlPolygonSymbols()).basicAdd(otherEnd, msgs);
case InfGMLSupportPackage.GML_STROKE__GML_LINE_SYMBOLS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getGmlLineSymbols()).basicAdd(otherEnd, msgs);
case InfGMLSupportPackage.GML_STROKE__GML_MARKS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getGmlMarks()).basicAdd(otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
示例3: eInverseAdd
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case MarketOperationsPackage.SECURITY_CONSTRAINT_SUM__CONTINGENCY_CONSTRAINT_LIMITS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getContingencyConstraintLimits()).basicAdd(otherEnd, msgs);
case MarketOperationsPackage.SECURITY_CONSTRAINT_SUM__DEFAULT_CONSTRAINT_LIMIT:
if (defaultConstraintLimit != null)
msgs = ((InternalEObject)defaultConstraintLimit).eInverseRemove(this, MarketOperationsPackage.DEFAULT_CONSTRAINT_LIMIT__SECURITY_CONSTRAINT_SUM, DefaultConstraintLimit.class, msgs);
return basicSetDefaultConstraintLimit((DefaultConstraintLimit)otherEnd, msgs);
case MarketOperationsPackage.SECURITY_CONSTRAINT_SUM__BASE_CASE_CONSTRAINT_LIMIT:
if (baseCaseConstraintLimit != null)
msgs = ((InternalEObject)baseCaseConstraintLimit).eInverseRemove(this, MarketOperationsPackage.BASE_CASE_CONSTRAINT_LIMIT__SECURITY_CONSTRAINT_SUM, BaseCaseConstraintLimit.class, msgs);
return basicSetBaseCaseConstraintLimit((BaseCaseConstraintLimit)otherEnd, msgs);
case MarketOperationsPackage.SECURITY_CONSTRAINT_SUM__CONSTRAINT_TERMS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getConstraintTerms()).basicAdd(otherEnd, msgs);
case MarketOperationsPackage.SECURITY_CONSTRAINT_SUM__RTO:
if (rto != null)
msgs = ((InternalEObject)rto).eInverseRemove(this, MarketOperationsPackage.RTO__SECURITY_CONSTRAINTS_LINEAR, RTO.class, msgs);
return basicSetRTO((RTO)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
示例4: eInverseAdd
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case InfPaymentMeteringPackage.SDP_ACCOUNTING_FUNCTION__CREDIT_REGISTERS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getCreditRegisters()).basicAdd(otherEnd, msgs);
case InfPaymentMeteringPackage.SDP_ACCOUNTING_FUNCTION__CHARGE_REGISTERS:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getChargeRegisters()).basicAdd(otherEnd, msgs);
case InfPaymentMeteringPackage.SDP_ACCOUNTING_FUNCTION__SERVICE_KIND:
if (serviceKind != null)
msgs = ((InternalEObject)serviceKind).eInverseRemove(this, CustomersPackage.SERVICE_CATEGORY__SP_ACCOUNTING_FUNCTIONS, ServiceCategory.class, msgs);
return basicSetServiceKind((ServiceCategory)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
示例5: setElement
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setElement ( Primitive newElement )
{
if ( newElement != element )
{
NotificationChain msgs = null;
if ( element != null )
msgs = ( (InternalEObject)element ).eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - VisualInterfacePackage.CHILD__ELEMENT, null, msgs );
if ( newElement != null )
msgs = ( (InternalEObject)newElement ).eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - VisualInterfacePackage.CHILD__ELEMENT, null, msgs );
msgs = basicSetElement ( newElement, msgs );
if ( msgs != null )
msgs.dispatch ();
}
else if ( eNotificationRequired () )
eNotify ( new ENotificationImpl ( this, Notification.SET, VisualInterfacePackage.CHILD__ELEMENT, newElement, newElement ) );
}
示例6: eInverseRemove
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case ReservationPackage.SERVICE_RESERVATION__HOLDS:
return basicSetHolds(null, msgs);
case ReservationPackage.SERVICE_RESERVATION__RESERVES_TRANSMISSION_SERVICE:
return ((InternalEList<?>)getReserves_TransmissionService()).basicRemove(otherEnd, msgs);
case ReservationPackage.SERVICE_RESERVATION__RESERVES_ANCILLARY_SERVICES:
return ((InternalEList<?>)getReserves_AncillaryServices()).basicRemove(otherEnd, msgs);
case ReservationPackage.SERVICE_RESERVATION__RESELLS:
return basicSetResells(null, msgs);
case ReservationPackage.SERVICE_RESERVATION__SELLS:
return basicSetSells(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
示例7: setHostname
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setHostname(ComplexValue newHostname)
{
if (newHostname != hostname)
{
NotificationChain msgs = null;
if (hostname != null)
msgs = ((InternalEObject)hostname).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SoapIOResourcePackage.PTCP_TRANSPORT__HOSTNAME, null, msgs);
if (newHostname != null)
msgs = ((InternalEObject)newHostname).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SoapIOResourcePackage.PTCP_TRANSPORT__HOSTNAME, null, msgs);
msgs = basicSetHostname(newHostname, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SoapIOResourcePackage.PTCP_TRANSPORT__HOSTNAME, newHostname, newHostname));
}
示例8: setErpRecLineItem
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setErpRecLineItem(ErpRecLineItem newErpRecLineItem) {
if (newErpRecLineItem != erpRecLineItem) {
NotificationChain msgs = null;
if (erpRecLineItem != null)
msgs = ((InternalEObject)erpRecLineItem).eInverseRemove(this, InfERPSupportPackage.ERP_REC_LINE_ITEM__ERP_INVOICE_LINE_ITEM, ErpRecLineItem.class, msgs);
if (newErpRecLineItem != null)
msgs = ((InternalEObject)newErpRecLineItem).eInverseAdd(this, InfERPSupportPackage.ERP_REC_LINE_ITEM__ERP_INVOICE_LINE_ITEM, ErpRecLineItem.class, msgs);
msgs = basicSetErpRecLineItem(newErpRecLineItem, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_INVOICE_LINE_ITEM__ERP_REC_LINE_ITEM, newErpRecLineItem, newErpRecLineItem));
}
示例9: getOutageHistory
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public OutageHistory getOutageHistory() {
if (outageHistory != null && outageHistory.eIsProxy()) {
InternalEObject oldOutageHistory = (InternalEObject)outageHistory;
outageHistory = (OutageHistory)eResolveProxy(oldOutageHistory);
if (outageHistory != oldOutageHistory) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, InfOperationsPackage.OUTAGE_REPORT__OUTAGE_HISTORY, oldOutageHistory, outageHistory));
}
}
return outageHistory;
}
示例10: eInverseRemove
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case InfOperationsPackage.CHANGE_ITEM__CHANGE_SET:
return basicSetChangeSet(null, msgs);
case InfOperationsPackage.CHANGE_ITEM__ASSET:
return basicSetAsset(null, msgs);
case InfOperationsPackage.CHANGE_ITEM__NETWORK_DATA_SET:
return basicSetNetworkDataSet(null, msgs);
case InfOperationsPackage.CHANGE_ITEM__GML_SELECTOR:
return basicSetGmlSelector(null, msgs);
case InfOperationsPackage.CHANGE_ITEM__ORGANISATION:
return basicSetOrganisation(null, msgs);
case InfOperationsPackage.CHANGE_ITEM__GML_OBSERVATION:
return basicSetGmlObservation(null, msgs);
case InfOperationsPackage.CHANGE_ITEM__LOCATION:
return basicSetLocation(null, msgs);
case InfOperationsPackage.CHANGE_ITEM__POWER_SYSTEM_RESOURCE:
return basicSetPowerSystemResource(null, msgs);
case InfOperationsPackage.CHANGE_ITEM__DOCUMENT:
return basicSetDocument(null, msgs);
case InfOperationsPackage.CHANGE_ITEM__ERP_PERSON:
return basicSetErpPerson(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
示例11: setAsset
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setAsset(Asset newAsset) {
if (newAsset != asset) {
NotificationChain msgs = null;
if (asset != null)
msgs = ((InternalEObject)asset).eInverseRemove(this, AssetsPackage.ASSET__ERP_ITEM_MASTER, Asset.class, msgs);
if (newAsset != null)
msgs = ((InternalEObject)newAsset).eInverseAdd(this, AssetsPackage.ASSET__ERP_ITEM_MASTER, Asset.class, msgs);
msgs = basicSetAsset(newAsset, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_ITEM_MASTER__ASSET, newAsset, newAsset));
}
示例12: eInverseAdd
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case OperationalLimitsPackage.OPERATIONAL_LIMIT_TYPE__OPERATIONAL_LIMIT:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getOperationalLimit()).basicAdd(otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
示例13: eInverseRemove
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
switch (featureID)
{
case XmlManipModulePackage.VALUE_REPLACE_OPERATION__REG_EXP:
return basicSetRegExp(null, msgs);
case XmlManipModulePackage.VALUE_REPLACE_OPERATION__NEW_VALUE:
return basicSetNewValue(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
示例14: setNonConformLoadGroup
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNonConformLoadGroup(NonConformLoadGroup newNonConformLoadGroup) {
if (newNonConformLoadGroup != nonConformLoadGroup) {
NotificationChain msgs = null;
if (nonConformLoadGroup != null)
msgs = ((InternalEObject)nonConformLoadGroup).eInverseRemove(this, LoadModelPackage.NON_CONFORM_LOAD_GROUP__NON_CONFORM_LOAD_SCHEDULES, NonConformLoadGroup.class, msgs);
if (newNonConformLoadGroup != null)
msgs = ((InternalEObject)newNonConformLoadGroup).eInverseAdd(this, LoadModelPackage.NON_CONFORM_LOAD_GROUP__NON_CONFORM_LOAD_SCHEDULES, NonConformLoadGroup.class, msgs);
msgs = basicSetNonConformLoadGroup(newNonConformLoadGroup, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, LoadModelPackage.NON_CONFORM_LOAD_SCHEDULE__NON_CONFORM_LOAD_GROUP, newNonConformLoadGroup, newNonConformLoadGroup));
}
示例15: eInverseAdd
import org.eclipse.emf.ecore.InternalEObject; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EnergySchedulingPackage.INADVERTENT_ACCOUNT__HOST_CONTROL_AREA:
if (hostControlArea != null)
msgs = ((InternalEObject)hostControlArea).eInverseRemove(this, EnergySchedulingPackage.HOST_CONTROL_AREA__INADVERTENT_ACCOUNTS, HostControlArea.class, msgs);
return basicSetHostControlArea((HostControlArea)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}