当前位置: 首页>>代码示例>>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;未经允许,请勿转载。