Class FilterUriContainer
- java.lang.Object
-
- org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
-
- org.eclipse.xtext.resource.impl.AbstractContainer
-
- org.eclipse.xtext.resource.containers.FilterUriContainer
-
- All Implemented Interfaces:
IContainer,ISelectable
public class FilterUriContainer extends AbstractContainer
A container that virtually removes aresource descriptionwith a givenurifrom another container.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.IContainer
IContainer.Manager
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.resource.IContainer
NULL_CONTAINER
-
-
Constructor Summary
Constructors Constructor Description FilterUriContainer(org.eclipse.emf.common.util.URI filterMe, IContainer delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<IEObjectDescription>getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName qualifiedName, boolean ignoreCase)java.lang.Iterable<IEObjectDescription>getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)IResourceDescriptiongetResourceDescription(org.eclipse.emf.common.util.URI uri)intgetResourceDescriptionCount()java.lang.Iterable<IResourceDescription>getResourceDescriptions()booleanhasResourceDescription(org.eclipse.emf.common.util.URI uri)booleanisEmpty()Clients may want to check the selectable to skip its processing in case it is empty.-
Methods inherited from class org.eclipse.xtext.resource.impl.AbstractContainer
getExportedObjectsByObject, getSelectables
-
Methods inherited from class org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
getExportedObjects
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.resource.ISelectable
getExportedObjects
-
-
-
-
Constructor Detail
-
FilterUriContainer
public FilterUriContainer(org.eclipse.emf.common.util.URI filterMe, IContainer delegate)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Description copied from interface:ISelectableClients 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 returnfalseif it is too expensive to compute the actual result.- Specified by:
isEmptyin interfaceISelectable- Overrides:
isEmptyin classAbstractCompoundSelectable- Returns:
trueif the selectable does not provide any descriptions.
-
hasResourceDescription
public boolean hasResourceDescription(org.eclipse.emf.common.util.URI uri)
- Specified by:
hasResourceDescriptionin interfaceIContainer- Overrides:
hasResourceDescriptionin classAbstractContainer- Returns:
trueif the container can provide aresource description with the given uri.
-
getResourceDescriptionCount
public int getResourceDescriptionCount()
- Specified by:
getResourceDescriptionCountin interfaceIContainer- Overrides:
getResourceDescriptionCountin classAbstractContainer- Returns:
- the total number of resource descriptions returned by
IContainer.getResourceDescriptions()
-
getResourceDescriptions
public java.lang.Iterable<IResourceDescription> getResourceDescriptions()
- Returns:
- the
IResourceDescriptioncontained in this container. The result is nevernull. The result may be a cached view on the actual content of the underlying resources.
-
getExportedObjects
public java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName qualifiedName, boolean ignoreCase)
- Specified by:
getExportedObjectsin interfaceISelectable- Overrides:
getExportedObjectsin classAbstractCompoundSelectable- Returns:
- all elements which match the given qualified name and type. May not be
null.
-
getExportedObjectsByType
public java.lang.Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
- Specified by:
getExportedObjectsByTypein interfaceISelectable- Overrides:
getExportedObjectsByTypein classAbstractCompoundSelectable- Returns:
- all elements which match the given type. May not be
null.
-
getResourceDescription
public IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
- Specified by:
getResourceDescriptionin interfaceIContainer- Overrides:
getResourceDescriptionin classAbstractContainer- Returns:
- the
IResourceDescriptionfor the given URI, or null is this container does not contain such anIResourceDescription. The result may be a cached view on the actual content of the underlying resource.
-
-