org.eclipse.ocl.examples.domain.utilities
Class StandaloneProjectMap.AbstractResourceLoadStrategy

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.AbstractResourceLoadStrategy
All Implemented Interfaces:
StandaloneProjectMap.IResourceLoadStrategy
Direct Known Subclasses:
StandaloneProjectMap.LoadBothStrategy, StandaloneProjectMap.LoadDynamicResourceStrategy, StandaloneProjectMap.LoadFirstStrategy, StandaloneProjectMap.LoadGeneratedPackageStrategy, StandaloneProjectMap.LoadingBothLoadedDynamicResourceStrategy
Enclosing class:
StandaloneProjectMap

protected abstract static class StandaloneProjectMap.AbstractResourceLoadStrategy
extends java.lang.Object
implements StandaloneProjectMap.IResourceLoadStrategy


Constructor Summary
protected StandaloneProjectMap.AbstractResourceLoadStrategy()
           
 
Method Summary
 void addedDynamicResource(StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus, org.eclipse.emf.ecore.resource.Resource resource)
          Respond to the explicit addition of a yet to be loaded Ecore model in the user's ResourceSet.
 void addedGeneratedPackage(StandaloneProjectMap.IPackageLoadStatus packageLoadStatus, org.eclipse.emf.ecore.EPackage ePackage)
          Respond to the explicit addition of a generated EPackage in the user's ResourceSet.
 void configure(StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus, StandaloneProjectMap.IConflictHandler conflictHandler)
          Configure the resourceLoadStatus to udse this strategy and a conflictHandler.
 void handleConflictingDynamicResource(StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus, org.eclipse.emf.ecore.EPackage ePackage)
          Respond to the platform/plugin access to a resource with a resourceLoadStatus containing a package already accessed as the Java generated ePackage,
 void loadedDynamicResource(StandaloneProjectMap.IResourceLoadStatus packageLoadStatus, org.eclipse.emf.ecore.resource.Resource resource)
          Respond to the loading of a dynamic Ecore model in the user's ResourceSet.
protected  org.eclipse.emf.ecore.EPackage loadEPackage(StandaloneProjectMap.IPackageLoadStatus packageLoadStatus, boolean configureURImap)
           
protected  org.eclipse.emf.ecore.EPackage loadModel(StandaloneProjectMap.IPackageLoadStatus packageLoadStatus)
           
protected  org.eclipse.emf.ecore.EPackage returnEPackage(StandaloneProjectMap.IPackageLoadStatus packageLoadStatus, org.eclipse.emf.ecore.EPackage ePackage)
           
 java.lang.String toString()
           
 void useGeneratedResource(StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus, org.eclipse.emf.ecore.resource.Resource resource)
          Respond to the explicit notification of a generated resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.IResourceLoadStrategy
getEPackage, unloadedResource
 

Constructor Detail

StandaloneProjectMap.AbstractResourceLoadStrategy

protected StandaloneProjectMap.AbstractResourceLoadStrategy()
Method Detail

addedDynamicResource

public void addedDynamicResource(@NonNull
                                 StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus,
                                 @NonNull
                                 org.eclipse.emf.ecore.resource.Resource resource)
Description copied from interface: StandaloneProjectMap.IResourceLoadStrategy
Respond to the explicit addition of a yet to be loaded Ecore model in the user's ResourceSet.

Specified by:
addedDynamicResource in interface StandaloneProjectMap.IResourceLoadStrategy

addedGeneratedPackage

public void addedGeneratedPackage(@NonNull
                                  StandaloneProjectMap.IPackageLoadStatus packageLoadStatus,
                                  @NonNull
                                  org.eclipse.emf.ecore.EPackage ePackage)
Description copied from interface: StandaloneProjectMap.IResourceLoadStrategy
Respond to the explicit addition of a generated EPackage in the user's ResourceSet.

Specified by:
addedGeneratedPackage in interface StandaloneProjectMap.IResourceLoadStrategy

configure

public void configure(@NonNull
                      StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus,
                      @Nullable
                      StandaloneProjectMap.IConflictHandler conflictHandler)
Description copied from interface: StandaloneProjectMap.IResourceLoadStrategy
Configure the resourceLoadStatus to udse this strategy and a conflictHandler.

Specified by:
configure in interface StandaloneProjectMap.IResourceLoadStrategy

handleConflictingDynamicResource

public void handleConflictingDynamicResource(@NonNull
                                             StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus,
                                             @NonNull
                                             org.eclipse.emf.ecore.EPackage ePackage)
Description copied from interface: StandaloneProjectMap.IResourceLoadStrategy
Respond to the platform/plugin access to a resource with a resourceLoadStatus containing a package already accessed as the Java generated ePackage,

Specified by:
handleConflictingDynamicResource in interface StandaloneProjectMap.IResourceLoadStrategy

loadEPackage

@Nullable
protected org.eclipse.emf.ecore.EPackage loadEPackage(@NonNull
                                                               StandaloneProjectMap.IPackageLoadStatus packageLoadStatus,
                                                               boolean configureURImap)

loadModel

@Nullable
protected org.eclipse.emf.ecore.EPackage loadModel(@NonNull
                                                            StandaloneProjectMap.IPackageLoadStatus packageLoadStatus)

loadedDynamicResource

public void loadedDynamicResource(@NonNull
                                  StandaloneProjectMap.IResourceLoadStatus packageLoadStatus,
                                  @NonNull
                                  org.eclipse.emf.ecore.resource.Resource resource)
Description copied from interface: StandaloneProjectMap.IResourceLoadStrategy
Respond to the loading of a dynamic Ecore model in the user's ResourceSet.

Specified by:
loadedDynamicResource in interface StandaloneProjectMap.IResourceLoadStrategy

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

returnEPackage

@Nullable
protected org.eclipse.emf.ecore.EPackage returnEPackage(@NonNull
                                                                 StandaloneProjectMap.IPackageLoadStatus packageLoadStatus,
                                                                 @Nullable
                                                                 org.eclipse.emf.ecore.EPackage ePackage)

useGeneratedResource

public void useGeneratedResource(@NonNull
                                 StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus,
                                 @NonNull
                                 org.eclipse.emf.ecore.resource.Resource resource)
Description copied from interface: StandaloneProjectMap.IResourceLoadStrategy
Respond to the explicit notification of a generated resource.

Specified by:
useGeneratedResource in interface StandaloneProjectMap.IResourceLoadStrategy