@ParametersAreNonnullByDefault public class PersistentResourceDecorator extends Object implements PersistentResource
PersistentResource wrapper that delegates all method calls to the decorated resource.
 
 This class can be extended by external tools to add behavior to an existing PersistentResource.
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 | 
|---|---|
| protected PersistentResource | resourceThe underlying resource. | 
ROOT_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 | 
|---|
| PersistentResourceDecorator(PersistentResource resource)Constructs a  PersistentResourceDecoratoron the givenresource. | 
| Modifier and Type | Method and Description | 
|---|---|
| <T extends org.eclipse.emf.ecore.EObject> | allInstancesOf(org.eclipse.emf.ecore.EClass eClass)Computes the set of instances of the given  EClass(including its sub-types). | 
| <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 | attached(org.eclipse.emf.ecore.EObject eObject) | 
| org.eclipse.emf.common.notify.NotificationChain | basicSetResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                   org.eclipse.emf.common.notify.NotificationChain notifications) | 
| void | close() | 
| void | delete(Map<?,?> options) | 
| void | detached(org.eclipse.emf.ecore.EObject eObject) | 
| org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> | eAdapters() | 
| boolean | eDeliver() | 
| void | eNotify(org.eclipse.emf.common.notify.Notification notification) | 
| void | eSetDeliver(boolean deliver) | 
| 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) | 
| org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource.Diagnostic> | getErrors() | 
| org.eclipse.emf.ecore.resource.ResourceSet | getResourceSet() | 
| long | getTimeStamp() | 
| org.eclipse.emf.common.util.URI | getURI() | 
| String | getURIFragment(org.eclipse.emf.ecore.EObject eObject) | 
| org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource.Diagnostic> | getWarnings() | 
| boolean | isLoaded() | 
| boolean | isLoading() | 
| boolean | isModified() | 
| boolean | isTrackingModification() | 
| void | load(ImmutableConfig config)Loads the resource using the specified configuration. | 
| void | load(InputStream inputStream,
    Map<?,?> options) | 
| void | load(Map<?,?> options) | 
| void | save(ImmutableConfig config)Saves the resource using the specified configuration. | 
| void | save(Map<?,?> options) | 
| void | save(OutputStream outputStream,
    Map<?,?> options) | 
| void | setModified(boolean isModified) | 
| void | setTimeStamp(long timeStamp) | 
| void | setTrackingModification(boolean isTrackingModification) | 
| void | setURI(org.eclipse.emf.common.util.URI uri) | 
| void | unload() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisPersistent, iteratorforEach, spliterator@Nonnull protected final PersistentResource resource
public PersistentResourceDecorator(PersistentResource resource)
PersistentResourceDecorator on the given resource.resource - the underlying resource@OverridingMethodsMustInvokeSuper public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
getResourceSet in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public org.eclipse.emf.common.util.URI getURI()
getURI in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public void setURI(org.eclipse.emf.common.util.URI uri)
setURI in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public long getTimeStamp()
getTimeStamp in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public void setTimeStamp(long timeStamp)
setTimeStamp in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getContents()
getContents in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> getAllContents()
getAllContents in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public String getURIFragment(org.eclipse.emf.ecore.EObject eObject)
getURIFragment in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public org.eclipse.emf.ecore.EObject getEObject(String uriFragment)
getEObject in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public void save(Map<?,?> options) throws IOException
save in interface org.eclipse.emf.ecore.resource.ResourceIOException@OverridingMethodsMustInvokeSuper public void load(Map<?,?> options) throws IOException
load in interface org.eclipse.emf.ecore.resource.ResourceIOException@OverridingMethodsMustInvokeSuper public void save(OutputStream outputStream, Map<?,?> options) throws IOException
save in interface org.eclipse.emf.ecore.resource.ResourceIOException@OverridingMethodsMustInvokeSuper public void load(InputStream inputStream, Map<?,?> options) throws IOException
load in interface org.eclipse.emf.ecore.resource.ResourceIOException@OverridingMethodsMustInvokeSuper public boolean isTrackingModification()
isTrackingModification in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public void setTrackingModification(boolean isTrackingModification)
setTrackingModification in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public boolean isModified()
isModified in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public void setModified(boolean isModified)
setModified in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public boolean isLoaded()
isLoaded in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public void unload()
unload in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public void delete(Map<?,?> options) throws IOException
delete in interface org.eclipse.emf.ecore.resource.ResourceIOException@OverridingMethodsMustInvokeSuper public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource.Diagnostic> getErrors()
getErrors in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.resource.Resource.Diagnostic> getWarnings()
getWarnings in interface org.eclipse.emf.ecore.resource.Resource@OverridingMethodsMustInvokeSuper public final void close()
close in interface PersistentResourceclose in interface Closeableclose in interface AutoCloseablepublic void save(ImmutableConfig config) throws IOException
PersistentResourcesave in interface PersistentResourceconfig - the save configurationIOException - if an I/O error occurs during savingResource.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 @OverridingMethodsMustInvokeSuper public <T extends org.eclipse.emf.ecore.EObject> Iterable<T> allInstancesOf(org.eclipse.emf.ecore.EClass eClass)
PersistentResourceEClass (including its sub-types).
 
 This method behaves like: allInstancesOf(EClass, false).
allInstancesOf in interface PersistentResourceeClass - the EClass for which look for instancesEClass from the resourcePersistentResource.allInstancesOf(EClass, boolean)@Nonnull @OverridingMethodsMustInvokeSuper 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 @OverridingMethodsMustInvokeSuper public StoreAdapter eStore()
Storable@OverridingMethodsMustInvokeSuper public org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> eAdapters()
eAdapters in interface org.eclipse.emf.common.notify.Notifier@OverridingMethodsMustInvokeSuper public boolean eDeliver()
eDeliver in interface org.eclipse.emf.common.notify.Notifier@OverridingMethodsMustInvokeSuper public void eSetDeliver(boolean deliver)
eSetDeliver in interface org.eclipse.emf.common.notify.Notifier@OverridingMethodsMustInvokeSuper public void eNotify(org.eclipse.emf.common.notify.Notification notification)
eNotify in interface org.eclipse.emf.common.notify.Notifier@OverridingMethodsMustInvokeSuper public void attached(org.eclipse.emf.ecore.EObject eObject)
attached in interface org.eclipse.emf.ecore.resource.Resource.Internal@OverridingMethodsMustInvokeSuper public void detached(org.eclipse.emf.ecore.EObject eObject)
detached in interface org.eclipse.emf.ecore.resource.Resource.Internal@OverridingMethodsMustInvokeSuper 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@OverridingMethodsMustInvokeSuper public boolean isLoading()
isLoading in interface org.eclipse.emf.ecore.resource.Resource.InternalCopyright © 2013–2019 Atlanmod. All rights reserved.