Interface IResourceStorageFacade
-
- All Known Implementing Classes:
ResourceStorageFacade
public interface IResourceStorageFacade- Since:
- 2.8
- Noextend:
- Noimplement:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceStorageLoadablecreateResourceStorageLoadable(java.io.InputStream inputStream)Creates a freshResourceStorageLoadablewrapping the givenInputStreamResourceStorageWritablecreateResourceStorageWritable(java.io.OutputStream outputStream)Creates a freshResourceStorageWritablewrapping the givenOutputStreamResourceStorageLoadablegetOrCreateResourceStorageLoadable(StorageAwareResource resource)Finds or creates aResourceStorageLoadablefor the given resource.booleanhasStorageFor(org.eclipse.emf.common.util.URI uri)voidsaveResource(StorageAwareResource resource, IFileSystemAccessExtension3 fsa)Saves the resource using the given file system access.booleanshouldLoadFromStorage(StorageAwareResource resource)
-
-
-
Method Detail
-
shouldLoadFromStorage
boolean shouldLoadFromStorage(StorageAwareResource resource)
- Returns:
- whether the given
resourceshould and can be loaded from stored resource state
-
hasStorageFor
boolean hasStorageFor(org.eclipse.emf.common.util.URI uri)
- Returns:
- whether storage data exists for the given
URI
-
getOrCreateResourceStorageLoadable
ResourceStorageLoadable getOrCreateResourceStorageLoadable(StorageAwareResource resource)
Finds or creates aResourceStorageLoadablefor the given resource. Clients should first callshouldLoadFromStorage(StorageAwareResource)to check whether there exists a storage version of the given resource.
-
saveResource
void saveResource(StorageAwareResource resource, IFileSystemAccessExtension3 fsa)
Saves the resource using the given file system access.
-
createResourceStorageWritable
ResourceStorageWritable createResourceStorageWritable(java.io.OutputStream outputStream)
Creates a freshResourceStorageWritablewrapping the givenOutputStream
-
createResourceStorageLoadable
ResourceStorageLoadable createResourceStorageLoadable(java.io.InputStream inputStream)
Creates a freshResourceStorageLoadablewrapping the givenInputStream
-
-