Package org.eclipse.xtext.resource
Interface ISelectable
-
- All Known Subinterfaces:
IContainer
,IResourceDescription
,IResourceDescriptions
,IResourceDescriptions.IContextAware
,IResourceDescriptions.IResourceSetAware
- All Known Implementing Classes:
AbstractCompoundSelectable
,AbstractContainer
,AbstractResourceDescription
,ChunkedResourceDescriptions
,DefaultResourceDescription
,DefaultUniqueNameContext.VisibleContainers.Selectable
,DescriptionAddingContainer
,EagerResourceSetBasedResourceDescriptions
,EObjectDescriptionLookUp
,FilterUriContainer
,IResourceDescriptions.NullImpl
,LiveShadowedChunkedContainer
,LiveShadowedChunkedResourceDescriptions
,LiveShadowedResourceDescriptions
,LoadOnDemandResourceDescriptions
,LocalUniqueNameContext
,MultimapBasedSelectable
,ResolvedResourceDescription
,ResourceDescriptionsBasedContainer
,ResourceDescriptionsData
,ResourceSetBasedResourceDescriptions
,ScopeBasedSelectable
,SerializableResourceDescription
,StateBasedContainer
public interface ISelectable
AnISelectable
is something that can be queried for exported object. Thereby it serves as a common abstract super concept forIContainer
andIResourceDescription
. Furthermore there is an implementation of theIScope
interface that is based onISelectable
and vice versa. All implementations ofISelectable
can deal with ignore case and case sensitive queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
boolean
isEmpty()
Clients may want to check the selectable to skip its processing in case it is empty.
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
Clients may want to check the selectable to skip its processing in case it is empty. Implementations should be fast and not require expensive precalculation. Selectable may returnfalse
if it is too expensive to compute the actual result.- Returns:
true
if the selectable does not provide any descriptions.
-
getExportedObjects
java.lang.Iterable<IEObjectDescription> getExportedObjects()
- Returns:
- all exported elements. May not be
null
.
-
getExportedObjects
java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName name, boolean ignoreCase)
- Returns:
- all elements which match the given qualified name and type. May not be
null
.
-
getExportedObjectsByType
java.lang.Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
- Returns:
- all elements which match the given type. May not be
null
.
-
getExportedObjectsByObject
java.lang.Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
- Returns:
- all elements which match the given instance. May not be
null
.
-
-