org.eclipse.emf.henshin.statespace.resource
Class StateSpaceResourceSet
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.NotifierImpl
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
org.eclipse.emf.henshin.model.resource.HenshinResourceSet
org.eclipse.emf.henshin.statespace.resource.StateSpaceResourceSet
- All Implemented Interfaces:
- Notifier, ResourceSet
public class StateSpaceResourceSet
- extends HenshinResourceSet
A resource set implementation for state spaces.
Provides some convenience methods for easy use and supports
automatic resolving of relative file URIs using a base
directory as implemented in HenshinResourceSet
.
Methods inherited from class org.eclipse.emf.henshin.model.resource.HenshinResourceSet |
createResource, getBaseDir, getEObject, getModule, getModule, getModule, getResource, initPackageImplementation, registerDynamicEPackages, registerXMIResourceFactories, saveEObject, saveEObject |
Methods inherited from class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl |
createResource, createResource, delegatedGetResource, demandCreateResource, demandLoad, demandLoadHelper, getAdapterFactories, getAllContents, getEObject, getLoadOptions, getPackageRegistry, getResource, getResourceFactoryRegistry, getResources, getURIConverter, getURIResourceMap, handleDemandLoadException, setPackageRegistry, setResourceFactoryRegistry, setURIConverter, setURIResourceMap, toString |
StateSpaceResourceSet
public StateSpaceResourceSet(String baseDir)
- Constructor which sets the base directory for this resource set.
- Parameters:
baseDir
- Base directory (can be also null
).
StateSpaceResourceSet
public StateSpaceResourceSet()
- Constructor without base directory.
getStateSpace
public StateSpace getStateSpace(String path)
- Convenience method for loading a
StateSpace
from a
file given as a path and file name.
- Parameters:
path
- Possibly relative path and file name of a state space resource.
- Returns:
- The contained
StateSpace
.
getModel
public Model getModel(String path)
- Convenience method for loading a
Model
from a
file given as a path and file name.
- Parameters:
path
- Possibly relative path and file name of a model resource.
- Returns:
- The loaded model.