org.eclipse.emf.henshin.statespace.resource
Class StateSpaceResource
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.NotifierImpl
org.eclipse.emf.ecore.resource.impl.ResourceImpl
org.eclipse.emf.henshin.statespace.resource.StateSpaceResource
- All Implemented Interfaces:
- Notifier, Resource, Resource.Internal
public class StateSpaceResource
- extends ResourceImpl
Resource implementation for state spaces.
Fields inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl |
contents, defaultDeleteOptions, defaultLoadOptions, defaultSaveOptions, errors, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, resourceSet, timeStamp, unloadingContents, uri, warnings |
Fields inherited from interface org.eclipse.emf.ecore.resource.Resource |
OPTION_CIPHER, OPTION_SAVE_ONLY_IF_CHANGED, OPTION_SAVE_ONLY_IF_CHANGED_FILE_BUFFER, OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__TIME_STAMP, RESOURCE__URI, RESOURCE__WARNINGS |
Methods inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl |
addModificationTrackingAdapters, attached, attachedHelper, basicSetResourceSet, createModificationTrackingAdapter, delete, detached, detachedHelper, doUnload, getAllContents, getAllProperContents, getAllProperContents, getContents, getDefaultURIConverter, getEObject, getEObject, getEObjectByID, getEObjectForURIFragmentRootSegment, getErrors, getIntrinsicIDToEObjectMap, getResourceSet, getTimeStamp, getURI, getURIConverter, getURIFragment, getURIFragmentRootSegment, getWarnings, handleLoadResponse, handleSaveResponse, isAttachedDetachedHelperRequired, isLoaded, isLoading, isModified, isTrackingModification, load, load, mergeMaps, removeModificationTrackingAdapters, save, save, saveOnlyIfChangedWithFileBuffer, saveOnlyIfChangedWithMemoryBuffer, setIntrinsicIDToEObjectMap, setLoaded, setModified, setTimeStamp, setTrackingModification, setURI, toKeyString, toString, unload, unloaded |
FILE_EXTENSION
public static final String FILE_EXTENSION
- File extension for state space files.
- See Also:
- Constant Field Values
BUFFER_CAPACITY
public static final int BUFFER_CAPACITY
- See Also:
- Constant Field Values
StateSpaceResource
public StateSpaceResource()
- Default constructor.
StateSpaceResource
public StateSpaceResource(URI uri)
- Convenience constructor.
- Parameters:
uri
- URI of the resource.
getStateSpace
public StateSpace getStateSpace()
- Get the state space contained in this resource.
- Returns:
- The state space.
doSave
protected void doSave(OutputStream out,
Map<?,?> options)
throws IOException
- Overrides:
doSave
in class ResourceImpl
- Throws:
IOException
doLoad
protected void doLoad(InputStream in,
Map<?,?> options)
throws IOException
- Overrides:
doLoad
in class ResourceImpl
- Throws:
IOException
useZip
protected boolean useZip()
- Overrides:
useZip
in class ResourceImpl
newContentZipEntry
protected ZipEntry newContentZipEntry()
- Overrides:
newContentZipEntry
in class ResourceImpl
isContentZipEntry
protected boolean isContentZipEntry(ZipEntry entry)
- Overrides:
isContentZipEntry
in class ResourceImpl