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