@ParametersAreNonnullByDefault public class DefaultPersistentResource extends org.eclipse.emf.ecore.resource.impl.ResourceImpl implements PersistentResource
PersistentResource that contains PersistentEObject.
DefaultPersistentResources are backend-agnostic and only delegate model element operations to their internal
Store which is responsible of database access.
PersistentStoreAdapterorg.eclipse.emf.ecore.resource.impl.ResourceImpl.ContentsEList<E extends Object & org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.resource.impl.ResourceImpl.ModificationTrackingAdapterorg.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterListorg.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.IOWrappedExceptioncontents, defaultDeleteOptions, defaultLoadOptions, defaultSaveOptions, errors, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, resourceSet, timeStamp, unloadingContents, uri, warningseAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAGROOT_ID, ROOT_REFERENCE_ID, ROOT_REFERENCE_NAMEOPTION_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 |
|---|
DefaultPersistentResource(org.eclipse.emf.common.util.URI uri)
Constructs a new
DefaultPersistentResource with the given uri. |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.eclipse.emf.ecore.EObject> |
allInstancesOf(org.eclipse.emf.ecore.EClass eClass,
boolean strict)
Computes the set of instances of the given
EClass. |
void |
close() |
protected void |
doUnload() |
StoreAdapter |
eStore()
Returns the store used to store the model.
|
org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> |
getAllContents() |
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> |
getContents() |
org.eclipse.emf.ecore.EObject |
getEObject(String uriFragment) |
protected List<org.eclipse.emf.ecore.EObject> |
getUnloadingContents() |
String |
getURIFragment(org.eclipse.emf.ecore.EObject eObject) |
void |
load(ImmutableConfig config)
Loads the resource using the specified configuration.
|
void |
load(Map<?,?> options) |
void |
save(ImmutableConfig config)
Saves the resource using the specified configuration.
|
void |
save(Map<?,?> options) |
org.eclipse.emf.common.notify.Notification |
setLoaded(boolean isLoaded) |
addModificationTrackingAdapters, attached, attachedHelper, basicSetResourceSet, createModificationTrackingAdapter, delete, detached, detachedHelper, doLoad, doSave, getAllProperContents, getAllProperContents, getDefaultURIConverter, getEObject, getEObjectByID, getEObjectForURIFragmentRootSegment, getErrors, getIntrinsicIDToEObjectMap, getResourceSet, getTimeStamp, getURI, getURIConverter, getURIFragmentRootSegment, getWarnings, handleLoadResponse, handleSaveResponse, isAttachedDetachedHelperRequired, isContentZipEntry, isLoaded, isLoading, isModified, isTrackingModification, load, mergeMaps, newContentZipEntry, removeModificationTrackingAdapters, save, saveOnlyIfChangedWithFileBuffer, saveOnlyIfChangedWithMemoryBuffer, setIntrinsicIDToEObjectMap, setModified, setTimeStamp, setTrackingModification, setURI, toKeyString, toString, unload, unloaded, useZipeAdapters, eBasicAdapters, eDeliver, eSetDelivereBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitallInstancesOf, isPersistent, iteratorattached, basicSetResourceSet, detached, isLoadingdelete, getErrors, getResourceSet, getTimeStamp, getURI, getWarnings, isLoaded, isModified, isTrackingModification, load, save, setModified, setTimeStamp, setTrackingModification, setURI, unloadeAdapters, eDeliver, eNotify, eSetDeliverforEach, spliteratorpublic DefaultPersistentResource(org.eclipse.emf.common.util.URI uri)
DefaultPersistentResource with the given uri.uri - the URI of the resource@Nonnull public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getContents()
getContents in interface org.eclipse.emf.ecore.resource.ResourcegetContents in class org.eclipse.emf.ecore.resource.impl.ResourceImpl@Nonnull public org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> getAllContents()
getAllContents in interface org.eclipse.emf.ecore.resource.ResourcegetAllContents in class org.eclipse.emf.ecore.resource.impl.ResourceImpl@Nonnull public String getURIFragment(org.eclipse.emf.ecore.EObject eObject)
getURIFragment in interface org.eclipse.emf.ecore.resource.ResourcegetURIFragment in class org.eclipse.emf.ecore.resource.impl.ResourceImplpublic org.eclipse.emf.ecore.EObject getEObject(String uriFragment)
getEObject in interface org.eclipse.emf.ecore.resource.ResourcegetEObject in class org.eclipse.emf.ecore.resource.impl.ResourceImplpublic void save(Map<?,?> options)
save in interface org.eclipse.emf.ecore.resource.Resourcesave in class org.eclipse.emf.ecore.resource.impl.ResourceImplpublic void load(Map<?,?> options) throws IOException
load in interface org.eclipse.emf.ecore.resource.Resourceload in class org.eclipse.emf.ecore.resource.impl.ResourceImplIOExceptionpublic org.eclipse.emf.common.notify.Notification setLoaded(boolean isLoaded)
setLoaded in class org.eclipse.emf.ecore.resource.impl.ResourceImplprotected List<org.eclipse.emf.ecore.EObject> getUnloadingContents()
getUnloadingContents in class org.eclipse.emf.ecore.resource.impl.ResourceImplprotected void doUnload()
doUnload in class org.eclipse.emf.ecore.resource.impl.ResourceImplpublic void close()
close in interface PersistentResourceclose in interface Closeableclose in interface AutoCloseablepublic void save(ImmutableConfig config)
PersistentResourcesave in interface PersistentResourceconfig - the save configurationResource.save(java.util.Map)public void load(ImmutableConfig config) throws IOException
PersistentResourceload in interface PersistentResourceconfig - the load configurationIOException - if an I/O error occurs during loadingResource.load(java.util.Map)@Nonnull public <T extends org.eclipse.emf.ecore.EObject> Iterable<T> allInstancesOf(org.eclipse.emf.ecore.EClass eClass, boolean strict)
PersistentResourceEClass.allInstancesOf in interface PersistentResourceeClass - the EClass for which look for instancesstrict - true if the lookup searches for strict instancestrue then the method returns only the strict instances of the given EClass, otherwise
it also returns the instances of the sub-types of eClass.@Nonnull public StoreAdapter eStore()
StorableCopyright © 2013–2019 Atlanmod. All rights reserved.