本文整理匯總了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;
}
示例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);
}
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}