org.eclipse.emf.henshin.statespace.resource
Class StateSpaceResourceSet

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.common.notify.impl.NotifierImpl
          extended by org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
              extended by org.eclipse.emf.henshin.model.resource.HenshinResourceSet
                  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
ResourceSetImpl.MappedResourceLocator, ResourceSetImpl.ResourceLocator, ResourceSetImpl.ResourcesEList<E extends Object & Resource>
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
adapterFactories, loadOptions, packageRegistry, resourceFactoryRegistry, resourceLocator, resources, uriConverter, uriResourceMap
 
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.resource.ResourceSet
RESOURCE_SET__RESOURCES
 
Constructor Summary
StateSpaceResourceSet()
          Constructor without base directory.
StateSpaceResourceSet(String baseDir)
          Constructor which sets the base directory for this resource set.
 
Method Summary
 Model getModel(String path)
          Convenience method for loading a Model from a file given as a path and file name.
 StateSpace getStateSpace(String path)
          Convenience method for loading a StateSpace from a file given as a path and file name.
 
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
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Constructor Detail

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.

Method Detail

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.