public class ResourceSetBasedResourceDescriptions extends AbstractCompoundSelectable implements IResourceDescriptions.IContextAware
IResourceDescriptions.IContextAware, IResourceDescriptions.NullImpl
Constructor and Description |
---|
ResourceSetBasedResourceDescriptions() |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<IResourceDescription> |
getAllResourceDescriptions() |
java.lang.Iterable<IEObjectDescription> |
getExportedObjects() |
java.lang.Iterable<IEObjectDescription> |
getExportedObjects(org.eclipse.emf.ecore.EClass type,
QualifiedName qualifiedName,
boolean ignoreCase) |
java.lang.Iterable<IEObjectDescription> |
getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object) |
java.lang.Iterable<IEObjectDescription> |
getExportedObjectsByType(org.eclipse.emf.ecore.EClass type) |
IResourceDescription |
getResourceDescription(org.eclipse.emf.common.util.URI uri)
Returns the resource descriptions for the given URI.
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet() |
protected java.lang.Iterable<? extends ISelectable> |
getSelectables() |
protected boolean |
hasDescription(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.
|
void |
setContext(org.eclipse.emf.common.notify.Notifier ctx) |
void |
setRegistry(IResourceServiceProvider.Registry registry) |
java.lang.String |
toString() |
public ResourceSetBasedResourceDescriptions()
public void setRegistry(IResourceServiceProvider.Registry registry)
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
public java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()
getAllResourceDescriptions
in interface IResourceDescriptions
protected java.lang.Iterable<? extends ISelectable> getSelectables()
getSelectables
in class AbstractCompoundSelectable
public boolean isEmpty()
ISelectable
false
if it is too expensive to compute the actual result.isEmpty
in interface ISelectable
isEmpty
in class AbstractCompoundSelectable
true
if the selectable does not provide any descriptions.protected boolean hasDescription(org.eclipse.emf.common.util.URI uri)
public IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
IResourceDescriptions
getResourceDescription
in interface IResourceDescriptions
public void setContext(org.eclipse.emf.common.notify.Notifier ctx)
setContext
in interface IResourceDescriptions.IContextAware
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Iterable<IEObjectDescription> getExportedObjects()
getExportedObjects
in interface ISelectable
getExportedObjects
in class AbstractCompoundSelectable
null
.public java.lang.Iterable<IEObjectDescription> getExportedObjectsByType(org.eclipse.emf.ecore.EClass type)
getExportedObjectsByType
in interface ISelectable
getExportedObjectsByType
in class AbstractCompoundSelectable
null
.public java.lang.Iterable<IEObjectDescription> getExportedObjects(org.eclipse.emf.ecore.EClass type, QualifiedName qualifiedName, boolean ignoreCase)
getExportedObjects
in interface ISelectable
getExportedObjects
in class AbstractCompoundSelectable
null
.public java.lang.Iterable<IEObjectDescription> getExportedObjectsByObject(org.eclipse.emf.ecore.EObject object)
getExportedObjectsByObject
in interface ISelectable
getExportedObjectsByObject
in class AbstractCompoundSelectable
null
.