Java 类org.eclipse.emf.common.util.EList 实例源码

项目:solidity-ide    文件:SolidityImportedNamespaceAwareLocalScopeProvider.java   
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;
}
项目:SurveyDSL    文件:JQueryGenerator.java   
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);
  }
}
项目:SurveyDSL    文件:JQueryGenerator.java   
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);
  }
}
项目:ttc2017smartGrids    文件:VendorImpl.java   
/**
 * <!-- 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;
}
项目:gemoc-studio    文件:StateImpl.java   
/**
 * <!-- 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;
}
项目:time4sys    文件:AnalyzedSystemImpl.java   
/**
 * <!-- 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;
}
项目:gemoc-studio-modeldebugging    文件:TracedObjectImpl.java   
/**
 * <!-- 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);
}
项目:org.xtext.dsl.restaurante    文件:GeneradorTexto.java   
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;
}
项目:rgse.ttc17.emoflon.tgg    文件:EnergyTransactionImpl.java   
/**
 * <!-- 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;
}
项目:ttc2017smartGrids    文件:ServiceReservationImpl.java   
/**
 * <!-- 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;
}
项目:rgse.ttc17.emoflon.tgg    文件:SubstationImpl.java   
/**
 * <!-- 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;
}
项目:rgse.ttc17.emoflon.tgg    文件:ConductingEquipmentImpl.java   
/**
 * <!-- 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;
}
项目:ttc2017smartGrids    文件:DimensionsInfoImpl.java   
/**
 * <!-- 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;
}
项目:ttc2017smartGrids    文件:ActivityRecordImpl.java   
/**
 * <!-- 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;
}
项目:rgse.ttc17.emoflon.tgg    文件:SwitchImpl.java   
/**
 * <!-- 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;
}
项目:rgse.ttc17.emoflon.tgg    文件:GenerationProviderImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<GeneratingUnit> getGeneratingUnits() {
    if (generatingUnits == null) {
        generatingUnits = new EObjectWithInverseResolvingEList<GeneratingUnit>(GeneratingUnit.class, this, FinancialPackage.GENERATION_PROVIDER__GENERATING_UNITS, ProductionPackage.GENERATING_UNIT__OPERATED_BY_GENERATION_PROVIDER);
    }
    return generatingUnits;
}
项目:ttc2017smartGrids    文件:ChangeSetImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<ChangeItem> getChangeItems() {
    if (changeItems == null) {
        changeItems = new EObjectWithInverseResolvingEList<ChangeItem>(ChangeItem.class, this, InfOperationsPackage.CHANGE_SET__CHANGE_ITEMS, InfOperationsPackage.CHANGE_ITEM__CHANGE_SET);
    }
    return changeItems;
}
项目:Tarski    文件:AlloyUtilities.java   
public static Map<IMarker, String> getRelationsOfFirstSideMarker(IMarker selectedMarker) {
  selectedMarker = MarkUtilities.getLeaderOfMarker(selectedMarker);

  final Map<IMarker, String> relationsOfMarker = new HashMap<>();
  if (MarkUtilities.getType(selectedMarker) == null) {
    return relationsOfMarker;
  }
  final ArrayList<FieldType> fieldTypesOfSelectedMarkerType =
      AlloyUtilities.getFieldTypesList(MarkUtilities.getType(selectedMarker), true);
  final String selectedMarkerId = MarkUtilities.getSourceId(selectedMarker);

  for (final FieldType fieldType : fieldTypesOfSelectedMarkerType) {
    final EList<TupleType> tupleTypes = fieldType.getTuple();
    for (final TupleType tupleType : tupleTypes) {
      final EList<AtomType> atoms = tupleType.getAtom();
      final AtomType firstAtomType = atoms.get(0);
      if (firstAtomType.getLabel().equals(selectedMarkerId)) {
        final AtomType secondAtomType = atoms.get(1);
        final ItemType itemTypeOfAtom = AlloyUtilities.getItemById(secondAtomType.getLabel());
        if (itemTypeOfAtom == null)
          continue;
        final IMarker toMarker = MarkUtilities.getiMarker(secondAtomType.getLabel(),
            AlloyUtilities.getValueOfEntry(itemTypeOfAtom, AlloyUtilities.RESOURCE));
        relationsOfMarker.put(toMarker, fieldType.getLabel());
      }
    }
  }

  return relationsOfMarker;
}
项目:rgse.ttc17.emoflon.tgg    文件:TransformerInfoImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<WindingInfo> getWindingInfos() {
    if (windingInfos == null) {
        windingInfos = new EObjectWithInverseResolvingEList<WindingInfo>(WindingInfo.class, this, AssetModelsPackage.TRANSFORMER_INFO__WINDING_INFOS, AssetModelsPackage.WINDING_INFO__TRANSFORMER_INFO);
    }
    return windingInfos;
}
项目:ttc2017smartGrids    文件:MarketImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<MarketProduct> getMarketProducts() {
    if (marketProducts == null) {
        marketProducts = new EObjectWithInverseResolvingEList<MarketProduct>(MarketProduct.class, this, MarketOperationsPackage.MARKET__MARKET_PRODUCTS, MarketOperationsPackage.MARKET_PRODUCT__MARKET);
    }
    return marketProducts;
}
项目:ttc2017smartGrids    文件:GmlStrokeImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<GmlMark> getGmlMarks() {
    if (gmlMarks == null) {
        gmlMarks = new EObjectWithInverseResolvingEList.ManyInverse<GmlMark>(GmlMark.class, this, InfGMLSupportPackage.GML_STROKE__GML_MARKS, InfGMLSupportPackage.GML_MARK__GML_STROKES);
    }
    return gmlMarks;
}
项目:time4sys    文件:SoftwareSchedulableResourceImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<ResourceService> getDisableConcurrencyServices() {
    if (disableConcurrencyServices == null) {
        disableConcurrencyServices = new EObjectResolvingEList<ResourceService>(ResourceService.class, this, SrmPackage.SOFTWARE_SCHEDULABLE_RESOURCE__DISABLE_CONCURRENCY_SERVICES);
    }
    return disableConcurrencyServices;
}
项目:OCCI-Studio    文件:ResourceImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Link> getRlinks() {
    if (rlinks == null) {
        rlinks = new EObjectWithInverseResolvingEList<Link>(Link.class, this, OCCIPackage.RESOURCE__RLINKS, OCCIPackage.LINK__TARGET);
    }
    return rlinks;
}
项目:ttc2017smartGrids    文件:LoadResponseCharacteristicImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<EnergyConsumer> getEnergyConsumer() {
    if (energyConsumer == null) {
        energyConsumer = new EObjectWithInverseResolvingEList<EnergyConsumer>(EnergyConsumer.class, this, LoadModelPackage.LOAD_RESPONSE_CHARACTERISTIC__ENERGY_CONSUMER, WiresPackage.ENERGY_CONSUMER__LOAD_RESPONSE);
    }
    return energyConsumer;
}
项目:time4sys    文件:LinkImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<MappableArtefact> getTargets() {
    if (targets == null) {
        targets = new EObjectContainmentEList<MappableArtefact>(MappableArtefact.class, this, MappingPackage.LINK__TARGETS);
    }
    return targets;
}
项目:time4sys    文件:ResourceImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Resource> getOwnedResource() {
    if (ownedResource == null) {
        ownedResource = new EObjectContainmentEList<Resource>(Resource.class, this, GrmPackage.RESOURCE__OWNED_RESOURCE);
    }
    return ownedResource;
}
项目:rgse.ttc17.emoflon.tgg    文件:SeasonImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<CapacityBenefitMargin> getCapacityBenefitMargin() {
    if (capacityBenefitMargin == null) {
        capacityBenefitMargin = new EObjectWithInverseResolvingEList<CapacityBenefitMargin>(CapacityBenefitMargin.class, this, LoadModelPackage.SEASON__CAPACITY_BENEFIT_MARGIN, MarketOperationsPackage.CAPACITY_BENEFIT_MARGIN__SEASON);
    }
    return capacityBenefitMargin;
}
项目:OCCI-Studio    文件:ExtensionImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Mixin> getMixins() {
    if (mixins == null) {
        mixins = new EObjectContainmentEList<Mixin>(Mixin.class, this, OCCIPackage.EXTENSION__MIXINS);
    }
    return mixins;
}
项目:ttc2017smartGrids    文件:SubstandardImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<DPStatus> getDPStatus() {
    if (dpStatus == null) {
        dpStatus = new EObjectContainmentEList<DPStatus>(DPStatus.class, this, SubstationStandardPackage.SUBSTANDARD__DP_STATUS);
    }
    return dpStatus;
}
项目:rest-modeling-framework    文件:ResourceFixtures.java   
@SuppressWarnings("unchecked")
default <T> T getRootObject(final Resource resource) {
       final EList<EObject> contents = resource.getContents();

       assertThat(contents).hasSize(1);

       return (T) contents.get(0);
   }
项目:ttc2017smartGrids    文件:ErpOrganisationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Request> getRequests() {
    if (requests == null) {
        requests = new EObjectWithInverseResolvingEList<Request>(Request.class, this, InfERPSupportPackage.ERP_ORGANISATION__REQUESTS, InfWorkPackage.REQUEST__ORGANISATION);
    }
    return requests;
}
项目:rgse.ttc17.emoflon.tgg    文件:ErpOrganisationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<OrgErpPersonRole> getErpPersonRoles() {
    if (erpPersonRoles == null) {
        erpPersonRoles = new EObjectWithInverseResolvingEList<OrgErpPersonRole>(OrgErpPersonRole.class, this, InfERPSupportPackage.ERP_ORGANISATION__ERP_PERSON_ROLES, InfERPSupportPackage.ORG_ERP_PERSON_ROLE__ERP_ORGANISATION);
    }
    return erpPersonRoles;
}
项目:boem    文件:AImpl.java   
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public EList<A> getAutoContainementA() {
    if (autoContainementA == null) {
        autoContainementA = new EObjectContainmentEList<A>(A.class, this, BoemTestPackage.A__AUTO_CONTAINEMENT_A);
    }
    return autoContainementA;
}
项目:ttc2017smartGrids    文件:ChangeSetImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<LandBase> getLandBases() {
    if (landBases == null) {
        landBases = new EObjectResolvingEList<LandBase>(LandBase.class, this, InfOperationsPackage.CHANGE_SET__LAND_BASES);
    }
    return landBases;
}
项目:ttc2017smartGrids    文件:LocationImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Crew> getCrews() {
    if (crews == null) {
        crews = new EObjectWithInverseResolvingEList.ManyInverse<Crew>(Crew.class, this, CommonPackage.LOCATION__CREWS, InfWorkPackage.CREW__LOCATIONS);
    }
    return crews;
}
项目:ttc2017smartGrids    文件:AppointmentImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<ErpPerson> getErpPersons() {
    if (erpPersons == null) {
        erpPersons = new EObjectWithInverseResolvingEList.ManyInverse<ErpPerson>(ErpPerson.class, this, InfWorkPackage.APPOINTMENT__ERP_PERSONS, InfERPSupportPackage.ERP_PERSON__APPOINTMENTS);
    }
    return erpPersons;
}
项目:rgse.ttc17.emoflon.tgg    文件:ReadingTypeImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Reading> getReadings() {
    if (readings == null) {
        readings = new EObjectWithInverseResolvingEList<Reading>(Reading.class, this, MeteringPackage.READING_TYPE__READINGS, MeteringPackage.READING__READING_TYPE);
    }
    return readings;
}
项目:ttc2017smartGrids    文件:SubControlAreaImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<ServicePoint> getPartOf() {
    if (partOf == null) {
        partOf = new EObjectWithInverseResolvingEList<ServicePoint>(ServicePoint.class, this, EnergySchedulingPackage.SUB_CONTROL_AREA__PART_OF, ReservationPackage.SERVICE_POINT__MEMBER_OF);
    }
    return partOf;
}
项目:ttc2017smartGrids    文件:LoadMgmtFunctionImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Switch> getSwitches() {
    if (switches == null) {
        switches = new EObjectWithInverseResolvingEList.ManyInverse<Switch>(Switch.class, this, InfLoadControlPackage.LOAD_MGMT_FUNCTION__SWITCHES, WiresPackage.SWITCH__LOAD_MGMT_FUNCTIONS);
    }
    return switches;
}
项目:rgse.ttc17.emoflon.tgg    文件:FlowgateImpl.java   
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<ViolationLimit> getViolationLimits() {
    if (violationLimits == null) {
        violationLimits = new EObjectWithInverseResolvingEList<ViolationLimit>(ViolationLimit.class, this, MarketOperationsPackage.FLOWGATE__VIOLATION_LIMITS, MarketOperationsPackage.VIOLATION_LIMIT__FLOWGATE);
    }
    return violationLimits;
}