public interface IPersistenceServicesDelegate
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.emf.common.util.URI aURIResource)
Using the specified URI, create a new Resource in the editing domain and return
that Resource to the caller.
|
void |
deleteResource(org.eclipse.emf.ecore.resource.Resource aResource)
Delete the specified Resource.
|
org.eclipse.emf.ecore.resource.Resource |
findResource(org.eclipse.emf.common.util.URI aURI)
Find the Resource corresponding to the specified URI in the ResourceSet.
|
long |
getModificationStamp(org.eclipse.emf.ecore.resource.Resource aResource)
Get the modification stamp for the specified EMF resource.
|
java.lang.String |
getNewResourceName(org.eclipse.emf.common.util.URI aURIContainer,
java.lang.String astrFileName,
java.lang.String astrFileExtension)
Given the URI of a container in the Eclipse Workspace (either project or folder), a "base"
filename and a file extension, return a new unique filename within that container by appending
sequence numbers (if needed) until a unique name can be found.
|
org.eclipse.emf.ecore.resource.Resource |
loadResource(org.eclipse.emf.common.util.URI aURIResource)
Load the specified Resource into the editing domain's ResourceSet.
|
org.eclipse.emf.ecore.resource.Resource |
reloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
Reload the specified resource (unload/load).
|
void |
removeResource(org.eclipse.emf.ecore.resource.Resource aResource)
Remove the specified resource from the resource set.
|
boolean |
renameResource(org.eclipse.emf.ecore.resource.Resource aResource,
org.eclipse.emf.common.util.URI aURIResourceNew)
Rename the Resource identified by the specified URI.
|
void |
saveResource(org.eclipse.emf.ecore.resource.Resource aResource)
Save the contents of the specified resource.
|
void |
setModelAPIState(IModelAPIState aIModelAPIState)
Setter for model API state.
|
void |
unloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
Unload the specified resource.
|
org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI aURIResource)
aURIResource - URI of Resource to be created.void deleteResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be deleted.org.eclipse.emf.ecore.resource.Resource findResource(org.eclipse.emf.common.util.URI aURI)
aURI - URI to locate.null.long getModificationStamp(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource whose modification stamp should be returned.java.lang.String getNewResourceName(org.eclipse.emf.common.util.URI aURIContainer,
java.lang.String astrFileName,
java.lang.String astrFileExtension)
aURIContainer - Container relative path.astrFileName - File name.astrFileExtension - File extension.boolean renameResource(org.eclipse.emf.ecore.resource.Resource aResource,
org.eclipse.emf.common.util.URI aURIResourceNew)
aResource - Resource to be renamed.aURIResourceNew - New Resource URI.true if the command was successful.org.eclipse.emf.ecore.resource.Resource reloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be reloaded.void removeResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be removed.org.eclipse.emf.ecore.resource.Resource loadResource(org.eclipse.emf.common.util.URI aURIResource)
aURIResource - URI of Resource to load.null if an error occurs.void saveResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource instance to save.void setModelAPIState(IModelAPIState aIModelAPIState)
aIModelAPI - Model API instance.void unloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to unload.Copyright © 2005-2016 Progress Software Corporation and/or its subsidiaries and affiliates. All rights reserved.