public interface IContainer extends ISelectable
container
describes resources that should be treated as visible
on the same level during the scoping stage. This depends on language implementations
in a way that a container that was obtained for a given resource may contain other resources
that would create other containers with distinct contents.
A container may be optimized by means of the ISelectable
-contract.ISelectable
Modifier and Type | Interface and Description |
---|---|
static interface |
IContainer.Manager |
Modifier and Type | Field and Description |
---|---|
static IContainer |
NULL_CONTAINER
a no-op implementation
|
Modifier and Type | Method and Description |
---|---|
IResourceDescription |
getResourceDescription(org.eclipse.emf.common.util.URI uri) |
int |
getResourceDescriptionCount() |
java.lang.Iterable<IResourceDescription> |
getResourceDescriptions() |
boolean |
hasResourceDescription(org.eclipse.emf.common.util.URI uri) |
getExportedObjects, getExportedObjects, getExportedObjectsByObject, getExportedObjectsByType, isEmpty
static final IContainer NULL_CONTAINER
java.lang.Iterable<IResourceDescription> getResourceDescriptions()
IResourceDescription
contained in this container. The result is never
null
. The result may be a cached view on the actual content of the underlying resources.int getResourceDescriptionCount()
getResourceDescriptions()
boolean hasResourceDescription(org.eclipse.emf.common.util.URI uri)
true
if the container can provide a resource description with the given uri
.IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
IResourceDescription
for the given URI, or null is this container does
not contain such an IResourceDescription
.
The result may be a cached view on the actual content of the underlying resource.