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


Java EList類代碼示例

本文整理匯總了Java中org.eclipse.emf.common.util.EList的典型用法代碼示例。如果您正苦於以下問題:Java EList類的具體用法?Java EList怎麽用?Java EList使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


EList類屬於org.eclipse.emf.common.util包,在下文中一共展示了EList類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getSuperTypeImports

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
protected List<ImportNormalizer> getSuperTypeImports(Resource res, EReference reference) {
	List<ImportNormalizer> result = Lists.newArrayList();
	TreeIterator<EObject> allContents = res.getAllContents();
	while (allContents.hasNext()) {
		EObject next = allContents.next();
		if (next instanceof ContractDefinition) {
			ContractDefinition contract = (ContractDefinition) next;
			EList<ComplexType> superTypes = contract.getSuperTypes();
			for (ComplexType complexType : superTypes) {
				// if (complexType.eIsProxy() || complexType.getName() ==
				// null)
				// continue;
				ImportNormalizer resolver = createImportedNamespaceResolver(complexType.getName() + ".*", false);
				result.add(resolver);
			}
			allContents.prune();
		}
	}
	return result;
}
 
開發者ID:Yakindu,項目名稱:solidity-ide,代碼行數:21,代碼來源:SolidityImportedNamespaceAwareLocalScopeProvider.java

示例2: initializeQuestions

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
public void initializeQuestions(final Page page) {
  this.questions.clear();
  EList _questions = page.getQuestions();
  int size = _questions.size();
  int i = 0;
  boolean _while = (i < size);
  while (_while) {
    {
      EList _questions_1 = page.getQuestions();
      Object _get = _questions_1.get(i);
      this.questions.add(((Question) _get));
      i = (i + 1);
    }
    _while = (i < size);
  }
}
 
開發者ID:TodorovicNikola,項目名稱:SurveyDSL,代碼行數:17,代碼來源:JQueryGenerator.java

示例3: initializeMultiTextItems

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
public void initializeMultiTextItems(final Question question) {
  this.multiTextItems.clear();
  EList _multiTextItems = question.getMultiTextItems();
  int size = _multiTextItems.size();
  int i = 0;
  boolean _while = (i < size);
  while (_while) {
    {
      EList _multiTextItems_1 = question.getMultiTextItems();
      Object _get = _multiTextItems_1.get(i);
      this.multiTextItems.add(((MultiTextItem) _get));
      i = (i + 1);
    }
    _while = (i < size);
  }
}
 
開發者ID:TodorovicNikola,項目名稱:SurveyDSL,代碼行數:17,代碼來源:JQueryGenerator.java

示例4: getVendorShifts

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<VendorShift> getVendorShifts() {
	if (vendorShifts == null) {
		vendorShifts = new EObjectWithInverseResolvingEList<VendorShift>(VendorShift.class, this, PaymentMeteringPackage.VENDOR__VENDOR_SHIFTS, PaymentMeteringPackage.VENDOR_SHIFT__VENDOR);
	}
	return vendorShifts;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:12,代碼來源:VendorImpl.java

示例5: getIncomingTransitions

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Transition> getIncomingTransitions() {
	if (incomingTransitions == null) {
		incomingTransitions = new EObjectWithInverseResolvingEList<Transition>(Transition.class, this, FsmPackage.STATE__INCOMING_TRANSITIONS, FsmPackage.TRANSITION__TARGET);
	}
	return incomingTransitions;
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:12,代碼來源:StateImpl.java

示例6: getResources

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Resource> getResources() {
	if (resources == null) {
		resources = new EObjectContainmentWithInverseEList<Resource>(Resource.class, this, AnalysisPackage.ANALYZED_SYSTEM__RESOURCES, AnalysisPackage.RESOURCE__PARENT);
	}
	return resources;
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:12,代碼來源:AnalyzedSystemImpl.java

示例7: eInvoke

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException {
	switch (operationID) {
		case TracePackage.TRACED_OBJECT___GET_DIMENSIONS_INTERNAL:
			return getDimensionsInternal();
	}
	return super.eInvoke(operationID, arguments);
}
 
開發者ID:eclipse,項目名稱:gemoc-studio-modeldebugging,代碼行數:14,代碼來源:TracedObjectImpl.java

示例8: compilarTexto

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
public CharSequence compilarTexto(final Restaurante r) {
  StringConcatenation _builder = new StringConcatenation();
  _builder.append("Restaurantes ==> ");
  String _nombre = r.getNombre();
  _builder.append(_nombre);
  _builder.newLineIfNotEmpty();
  _builder.append("Fecha de edici�n ==> ");
  String _fecha = r.getFecha();
  _builder.append(_fecha);
  _builder.newLineIfNotEmpty();
  _builder.newLine();
  _builder.append("Informaci�n sobre los productos");
  _builder.newLine();
  _builder.append("-------------------------------");
  _builder.newLine();
  {
    EList<Producto> _productos = r.getProductos();
    for(final Producto p : _productos) {
      CharSequence _compilarTexto = this.compilarTexto(p);
      _builder.append(_compilarTexto);
      _builder.newLineIfNotEmpty();
    }
  }
  _builder.newLine();
  _builder.append("Informaci�n sobre los men�s");
  _builder.newLine();
  _builder.append("---------------------------");
  _builder.newLine();
  {
    EList<Menu> _menus = r.getMenus();
    for(final Menu m : _menus) {
      CharSequence _compilarTexto_1 = this.compilarTexto(m);
      _builder.append(_compilarTexto_1);
      _builder.newLineIfNotEmpty();
    }
  }
  return _builder;
}
 
開發者ID:vicegd,項目名稱:org.xtext.dsl.restaurante,代碼行數:39,代碼來源:GeneradorTexto.java

示例9: getEnergyPriceCurves

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<EnergyPriceCurve> getEnergyPriceCurves() {
	if (energyPriceCurves == null) {
		energyPriceCurves = new EObjectWithInverseResolvingEList.ManyInverse<EnergyPriceCurve>(EnergyPriceCurve.class, this, EnergySchedulingPackage.ENERGY_TRANSACTION__ENERGY_PRICE_CURVES, MarketOperationsPackage.ENERGY_PRICE_CURVE__ENERGY_TRANSACTIONS);
	}
	return energyPriceCurves;
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:12,代碼來源:EnergyTransactionImpl.java

示例10: getReserves_TransmissionService

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<TransmissionService> getReserves_TransmissionService() {
	if (reserves_TransmissionService == null) {
		reserves_TransmissionService = new EObjectWithInverseResolvingEList.ManyInverse<TransmissionService>(TransmissionService.class, this, ReservationPackage.SERVICE_RESERVATION__RESERVES_TRANSMISSION_SERVICE, ReservationPackage.TRANSMISSION_SERVICE__RESERVED_BY_SERVICE_RESERVATION);
	}
	return reserves_TransmissionService;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:12,代碼來源:ServiceReservationImpl.java

示例11: getBays

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Bay> getBays() {
	if (bays == null) {
		bays = new EObjectWithInverseResolvingEList<Bay>(Bay.class, this, CorePackage.SUBSTATION__BAYS, CorePackage.BAY__SUBSTATION);
	}
	return bays;
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:12,代碼來源:SubstationImpl.java

示例12: getElectricalAssets

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<ElectricalAsset> getElectricalAssets() {
	if (electricalAssets == null) {
		electricalAssets = new EObjectWithInverseResolvingEList<ElectricalAsset>(ElectricalAsset.class, this, CorePackage.CONDUCTING_EQUIPMENT__ELECTRICAL_ASSETS, InfAssetsPackage.ELECTRICAL_ASSET__CONDUCTING_EQUIPMENT);
	}
	return electricalAssets;
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:12,代碼來源:ConductingEquipmentImpl.java

示例13: getLocations

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Location> getLocations() {
	if (locations == null) {
		locations = new EObjectWithInverseResolvingEList<Location>(Location.class, this, InfAssetsPackage.DIMENSIONS_INFO__LOCATIONS, CommonPackage.LOCATION__DIMENSIONS_INFO);
	}
	return locations;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:12,代碼來源:DimensionsInfoImpl.java

示例14: getDocuments

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Document> getDocuments() {
	if (documents == null) {
		documents = new EObjectWithInverseResolvingEList.ManyInverse<Document>(Document.class, this, CommonPackage.ACTIVITY_RECORD__DOCUMENTS, CommonPackage.DOCUMENT__ACTIVITY_RECORDS);
	}
	return documents;
}
 
開發者ID:georghinkel,項目名稱:ttc2017smartGrids,代碼行數:12,代碼來源:ActivityRecordImpl.java

示例15: getSwitchSchedules

import org.eclipse.emf.common.util.EList; //導入依賴的package包/類
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<SwitchSchedule> getSwitchSchedules() {
	if (switchSchedules == null) {
		switchSchedules = new EObjectWithInverseResolvingEList<SwitchSchedule>(SwitchSchedule.class, this, WiresPackage.SWITCH__SWITCH_SCHEDULES, WiresPackage.SWITCH_SCHEDULE__SWITCH);
	}
	return switchSchedules;
}
 
開發者ID:SvenPeldszus,項目名稱:rgse.ttc17.emoflon.tgg,代碼行數:12,代碼來源:SwitchImpl.java


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