當前位置: 首頁>>代碼示例>>Java>>正文


Java InternalEObject類代碼示例

本文整理匯總了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);
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:25,代碼來源:DocumentumConfigurationImpl.java

示例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);
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:25,代碼來源:GmlStrokeImpl.java

示例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);
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:29,代碼來源:SecurityConstraintSumImpl.java

示例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);
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:21,代碼來源:SDPAccountingFunctionImpl.java

示例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 ) );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:22,代碼來源:ChildImpl.java

示例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);
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:22,代碼來源:ServiceReservationImpl.java

示例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));
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:21,代碼來源:PTCPTransportImpl.java

示例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));
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:19,代碼來源:ErpInvoiceLineItemImpl.java

示例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;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:17,代碼來源:OutageReportImpl.java

示例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);
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:32,代碼來源:ChangeItemImpl.java

示例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));
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:19,代碼來源:ErpItemMasterImpl.java

示例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);
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:15,代碼來源:OperationalLimitTypeImpl.java

示例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);
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:17,代碼來源:ValueReplaceOperationImpl.java

示例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));
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:19,代碼來源:NonConformLoadScheduleImpl.java

示例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);
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:16,代碼來源:InadvertentAccountImpl.java


注:本文中的org.eclipse.emf.ecore.InternalEObject類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。