public class EObjectDescriptionLookUp extends Object implements ISelectable
| Constructor and Description |
|---|
EObjectDescriptionLookUp(List<IEObjectDescription> allDescriptions) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<IEObjectDescription> |
getExportedObjects() |
Iterable<IEObjectDescription> |
getExportedObjects(org.eclipse.emf.ecore.EClass type,
QualifiedName name,
boolean ignoreCase) |
Iterable<IEObjectDescription> |
getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object) |
Iterable<IEObjectDescription> |
getExportedObjectsByType(org.eclipse.emf.ecore.EClass type) |
protected Map<QualifiedName,List<IEObjectDescription>> |
getNameToObjects() |
boolean |
isEmpty()
Clients may want to check the selectable to skip its processing in case it is empty.
|
protected void |
putIntoMap(Map<QualifiedName,List<IEObjectDescription>> nameToObjects,
IEObjectDescription description) |
void |
setExportedObjects(List<IEObjectDescription> allDescriptions) |
public EObjectDescriptionLookUp(List<IEObjectDescription> allDescriptions)
public boolean isEmpty()
ISelectablefalse if it is too expensive to compute the actual result.isEmpty in interface ISelectabletrue if the selectable does not provide any descriptions.public Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
getExportedObjectsByType in interface ISelectablenull.public Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
getExportedObjectsByObject in interface ISelectablenull.public Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)
getExportedObjects in interface ISelectablenull.public Iterable<IEObjectDescription> getExportedObjects()
getExportedObjects in interface ISelectablenull.public void setExportedObjects(List<IEObjectDescription> allDescriptions)
protected Map<QualifiedName,List<IEObjectDescription>> getNameToObjects()
protected void putIntoMap(Map<QualifiedName,List<IEObjectDescription>> nameToObjects, IEObjectDescription description)
Copyright © 2015. All Rights Reserved.