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; }
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); } }
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); } }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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); }
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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
@SuppressWarnings("unchecked") default <T> T getRootObject(final Resource resource) { final EList<EObject> contents = resource.getContents(); assertThat(contents).hasSize(1); return (T) contents.get(0); }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }
/** * <!-- 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; }