org.eclipse.ocl.examples.domain.utilities
Interface StandaloneProjectMap.IResourceLoadStrategy

All Known Implementing Classes:
StandaloneProjectMap.AbstractResourceLoadStrategy, StandaloneProjectMap.LoadBothStrategy, StandaloneProjectMap.LoadDynamicResourceStrategy, StandaloneProjectMap.LoadFirstStrategy, StandaloneProjectMap.LoadGeneratedPackageStrategy, StandaloneProjectMap.LoadingBothLoadedDynamicResourceStrategy
Enclosing class:
StandaloneProjectMap

public static interface StandaloneProjectMap.IResourceLoadStrategy

An IResourceLoadStrategy determines how each of the possible forms of URI reference to an EPackage should loaded.


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.
 org.eclipse.emf.ecore.EPackage getEPackage(StandaloneProjectMap.IPackageLoadStatus packageLoadStatus)
          Load and return the EPackage in response to an EPackage.Registry access through an EPackageDescriptor.
 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.
 void unloadedResource(StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus)
          Respond to the notification that the resource has been unloaded.
 void useGeneratedResource(StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus, org.eclipse.emf.ecore.resource.Resource resource)
          Respond to the explicit notification of a generated resource.
 

Method Detail

addedDynamicResource

void addedDynamicResource(@NonNull
                          StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus,
                          @NonNull
                          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.


addedGeneratedPackage

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


configure

void configure(@NonNull
               StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus,
               @Nullable
               StandaloneProjectMap.IConflictHandler conflictHandler)
Configure the resourceLoadStatus to udse this strategy and a conflictHandler.


getEPackage

@Nullable
org.eclipse.emf.ecore.EPackage getEPackage(@NonNull
                                                    StandaloneProjectMap.IPackageLoadStatus packageLoadStatus)
Load and return the EPackage in response to an EPackage.Registry access through an EPackageDescriptor.


handleConflictingDynamicResource

void handleConflictingDynamicResource(@NonNull
                                      StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus,
                                      @NonNull
                                      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,


loadedDynamicResource

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


unloadedResource

void unloadedResource(@NonNull
                      StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus)
Respond to the notification that the resource has been unloaded.


useGeneratedResource

void useGeneratedResource(@NonNull
                          StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus,
                          @NonNull
                          org.eclipse.emf.ecore.resource.Resource resource)
Respond to the explicit notification of a generated resource.