public class StateBasedContainer extends ResourceDescriptionsBasedContainer
container state is used to decide about the actually
contained resource descriptions.IContainer.ManagerNULL_CONTAINER| Constructor and Description |
|---|
StateBasedContainer(IResourceDescriptions descriptions,
IContainerState state) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<org.eclipse.emf.common.util.URI,IResourceDescription> |
doGetUriToDescription() |
protected Iterable<IEObjectDescription> |
filterByURI(Iterable<IEObjectDescription> unfiltered) |
Iterable<IEObjectDescription> |
getExportedObjects() |
Iterable<IEObjectDescription> |
getExportedObjects(org.eclipse.emf.ecore.EClass type,
QualifiedName qualifiedName,
boolean ignoreCase) |
Iterable<IEObjectDescription> |
getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object) |
Iterable<IEObjectDescription> |
getExportedObjectsByType(org.eclipse.emf.ecore.EClass type) |
IResourceDescription |
getResourceDescription(org.eclipse.emf.common.util.URI uri) |
int |
getResourceDescriptionCount() |
Iterable<IResourceDescription> |
getResourceDescriptions() |
boolean |
hasResourceDescription(org.eclipse.emf.common.util.URI uri) |
boolean |
isEmpty()
Clients may want to check the selectable to skip its processing in case it is empty.
|
String |
toString() |
contains, descriptionsChanged, getDescriptions, getUriToDescription, isUriToDescriptionCacheEnabled, setUriToDescriptionCacheEnabledgetSelectablespublic StateBasedContainer(IResourceDescriptions descriptions, IContainerState state)
protected Iterable<IEObjectDescription> filterByURI(Iterable<IEObjectDescription> unfiltered)
filterByURI in class ResourceDescriptionsBasedContainerpublic boolean hasResourceDescription(org.eclipse.emf.common.util.URI uri)
hasResourceDescription in interface IContainerhasResourceDescription in class ResourceDescriptionsBasedContainertrue if the container can provide a resource description with the given uri.public int getResourceDescriptionCount()
getResourceDescriptionCount in interface IContainergetResourceDescriptionCount in class ResourceDescriptionsBasedContainerIContainer.getResourceDescriptions()public boolean isEmpty()
ISelectablefalse if it is too expensive to compute the actual result.isEmpty in interface ISelectableisEmpty in class AbstractCompoundSelectabletrue if the selectable does not provide any descriptions.public IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
getResourceDescription in interface IContainergetResourceDescription in class ResourceDescriptionsBasedContainerIResourceDescription 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.public Iterable<IResourceDescription> getResourceDescriptions()
getResourceDescriptions in interface IContainergetResourceDescriptions in class ResourceDescriptionsBasedContainerIResourceDescription contained in this container. The result is never
null. The result may be a cached view on the actual content of the underlying resources.protected Map<org.eclipse.emf.common.util.URI,IResourceDescription> doGetUriToDescription()
doGetUriToDescription in class ResourceDescriptionsBasedContainerpublic Iterable<IEObjectDescription> getExportedObjects()
getExportedObjects in interface ISelectablegetExportedObjects in class AbstractCompoundSelectablenull.public Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
getExportedObjectsByType in interface ISelectablegetExportedObjectsByType in class ResourceDescriptionsBasedContainernull.public Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
getExportedObjectsByObject in interface ISelectablegetExportedObjectsByObject in class AbstractContainernull.public Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName qualifiedName, boolean ignoreCase)
getExportedObjects in interface ISelectablegetExportedObjects in class ResourceDescriptionsBasedContainernull.Copyright © 2015. All Rights Reserved.