public abstract class AbstractResourceScope extends java.lang.Object implements IResourceScope
Constructor and Description |
---|
AbstractResourceScope() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
boolean |
exists()
Returns true if this
resource scope exists. |
protected java.util.Collection<org.eclipse.core.resources.IFile> |
getFilesUnderRoot(org.eclipse.core.resources.IResource root) |
java.util.Collection<org.eclipse.emf.ecore.resource.Resource> |
getLoadedResources(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain,
boolean includeReferencedScopes)
Returns
resource s loaded in the given editing domain being part of that scope. |
java.util.Collection<org.eclipse.core.resources.IFile> |
getPersistedFiles(boolean includeReferencedScopes)
Returns all the files in this scope persisted in the workspace.
|
int |
hashCode() |
boolean |
isShared(org.eclipse.core.resources.IFile file)
Determines if given
file is shared among multiple resource scopes, i.e., can simultaneously belong
to multiple resource scopes, or not. |
boolean |
isShared(org.eclipse.emf.ecore.resource.Resource resource)
Determines if given
resource is shared among multiple resource scopes, i.e., can simultaneously
belong to multiple resource scopes, or not. |
boolean |
isShared(org.eclipse.emf.common.util.URI uri)
Determines if given
URI is shared among multiple resource scopes, i.e., can simultaneously belong to
multiple resource scopes, or not. |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
belongsTo, belongsTo, belongsTo, didBelongTo, didBelongTo, didBelongTo, getReferencedRoots, getReferencingRoots, getRoot
public boolean exists()
IResourceScope
resource scope
exists.
This method is guaranteed to have a very little performance overhead.
exists
in interface IResourceScope
true
if the model exist (i.e if all user defined conditions required are full filled)public java.util.Collection<org.eclipse.core.resources.IFile> getPersistedFiles(boolean includeReferencedScopes)
IResourceScope
getPersistedFiles
in interface IResourceScope
includeReferencedScopes
- Determines if scopes referenced by the current resource scope
must be
investigated.Collection
of persisted file
s owned by this scope.protected java.util.Collection<org.eclipse.core.resources.IFile> getFilesUnderRoot(org.eclipse.core.resources.IResource root)
public java.util.Collection<org.eclipse.emf.ecore.resource.Resource> getLoadedResources(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain, boolean includeReferencedScopes)
IResourceScope
resource
s loaded in the given editing domain being part of that scope.getLoadedResources
in interface IResourceScope
editingDomain
- The editing domain
to be investigated.includeReferencedScopes
- Determines if scopes referenced by the current resource scope
must be
investigated.Collection
of resource
s owned by this scope and loaded in the provided
editing domain
.public boolean isShared(org.eclipse.core.resources.IFile file)
IResourceScope
file
is shared among multiple resource scopes, i.e., can simultaneously belong
to multiple resource scopes, or not.isShared
in interface IResourceScope
file
- The file to be investigated.true
if given file is shared across multiple resource scopes, or false
otherwise.public boolean isShared(org.eclipse.emf.ecore.resource.Resource resource)
IResourceScope
resource
is shared among multiple resource scopes, i.e., can simultaneously
belong to multiple resource scopes, or not.isShared
in interface IResourceScope
true
if given resource is shared across multiple resource scopes, or false
otherwise.public boolean isShared(org.eclipse.emf.common.util.URI uri)
IResourceScope
URI
is shared among multiple resource scopes, i.e., can simultaneously belong to
multiple resource scopes, or not.isShared
in interface IResourceScope
true
if the resource behind given URI is shared across multiple resource scopes, or
false
otherwise.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object