public class TypeResource extends org.eclipse.emf.ecore.resource.impl.ResourceImpl implements ISynchronizable<TypeResource>
Modifier and Type | Class and Description |
---|---|
protected static class |
TypeResource.CannotLoadTypeResourceException |
org.eclipse.emf.ecore.resource.impl.ResourceImpl.ContentsEList<E extends java.lang.Object & org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.resource.impl.ResourceImpl.ModificationTrackingAdapter
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
org.eclipse.emf.ecore.resource.Resource.Diagnostic, org.eclipse.emf.ecore.resource.Resource.Factory, org.eclipse.emf.ecore.resource.Resource.Internal, org.eclipse.emf.ecore.resource.Resource.IOWrappedException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPTION_CLASSPATH_CONTEXT |
contents, defaultDeleteOptions, defaultLoadOptions, defaultSaveOptions, errors, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, resourceSet, timeStamp, unloadingContents, uri, warnings
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
OPTION_CIPHER, OPTION_LINE_DELIMITER, OPTION_LINE_DELIMITER_UNSPECIFIED, 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
Constructor and Description |
---|
TypeResource() |
TypeResource(org.eclipse.emf.common.util.URI uri) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.common.notify.NotificationChain |
basicSetResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.common.notify.NotificationChain notifications) |
protected void |
doLoad(java.io.InputStream inputStream,
java.util.Map<?,?> options) |
<Result> Result |
execute(IUnitOfWork<Result,? super TypeResource> unit)
Execute the unit of work in a context that allows for modification.
|
org.eclipse.emf.ecore.EObject |
getEObject(java.lang.String uriFragment) |
IndexedJvmTypeAccess |
getIndexedJvmTypeAccess() |
java.lang.Object |
getLock()
Returns the lock of the owning
ResourceSet , if it exposes such a lock. |
IMirror |
getMirror() |
java.lang.String |
getURIFragment(org.eclipse.emf.ecore.EObject eObject) |
void |
load(java.util.Map<?,?> options) |
org.eclipse.emf.ecore.EObject |
resolveJavaObjectURIProxy(org.eclipse.emf.ecore.InternalEObject proxy,
JvmTypeReference sender) |
void |
save(java.util.Map<?,?> options) |
void |
setIndexedJvmTypeAccess(IndexedJvmTypeAccess indexedJvmTypeAccess) |
void |
setMirror(IMirror mirror) |
void |
setTypeResourceServices(TypeResourceServices typeResourceServices) |
addModificationTrackingAdapters, attached, attachedHelper, createModificationTrackingAdapter, delete, detached, detachedHelper, doSave, doUnload, getAllContents, getAllProperContents, getAllProperContents, getContents, getDefaultURIConverter, getEObject, getEObjectByID, getEObjectForURIFragmentRootSegment, getErrors, getIntrinsicIDToEObjectMap, getResourceSet, getTimeStamp, getUnloadingContents, getURI, getURIConverter, getURIFragmentRootSegment, getWarnings, handleLoadResponse, handleSaveResponse, isAttachedDetachedHelperRequired, isContentZipEntry, isLoaded, isLoading, isModified, isTrackingModification, load, mergeMaps, newContentZipEntry, removeModificationTrackingAdapters, save, saveOnlyIfChangedWithFileBuffer, saveOnlyIfChangedWithMemoryBuffer, setIntrinsicIDToEObjectMap, setLoaded, setModified, setTimeStamp, setTrackingModification, setURI, toKeyString, toString, unload, unloaded, useZip
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
public static final java.lang.String OPTION_CLASSPATH_CONTEXT
public TypeResource()
public TypeResource(org.eclipse.emf.common.util.URI uri)
public void setTypeResourceServices(TypeResourceServices typeResourceServices)
public org.eclipse.emf.common.notify.NotificationChain basicSetResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.common.notify.NotificationChain notifications)
basicSetResourceSet
in interface org.eclipse.emf.ecore.resource.Resource.Internal
basicSetResourceSet
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
public org.eclipse.emf.ecore.EObject getEObject(java.lang.String uriFragment)
getEObject
in interface org.eclipse.emf.ecore.resource.Resource
getEObject
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
public java.lang.String getURIFragment(org.eclipse.emf.ecore.EObject eObject)
getURIFragment
in interface org.eclipse.emf.ecore.resource.Resource
getURIFragment
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
public void setMirror(IMirror mirror)
public IMirror getMirror()
public void load(java.util.Map<?,?> options) throws java.io.IOException
load
in interface org.eclipse.emf.ecore.resource.Resource
load
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
java.io.IOException
public void save(java.util.Map<?,?> options) throws java.io.IOException
save
in interface org.eclipse.emf.ecore.resource.Resource
save
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
java.io.IOException
protected void doLoad(java.io.InputStream inputStream, java.util.Map<?,?> options) throws java.io.IOException
doLoad
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
java.io.IOException
public org.eclipse.emf.ecore.EObject resolveJavaObjectURIProxy(org.eclipse.emf.ecore.InternalEObject proxy, JvmTypeReference sender)
public IndexedJvmTypeAccess getIndexedJvmTypeAccess()
public void setIndexedJvmTypeAccess(IndexedJvmTypeAccess indexedJvmTypeAccess)
public java.lang.Object getLock()
ResourceSet
, if it exposes such a lock.
Otherwise this resource itself is used as the lock context.getLock
in interface ISynchronizable<TypeResource>
public <Result> Result execute(IUnitOfWork<Result,? super TypeResource> unit) throws java.lang.Exception
execute
in interface ISynchronizable<TypeResource>
unit
- the action to perform. May not be null
java.lang.Exception
- the exception that was thrown by the unit.