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

All Known Implementing Classes:
StandaloneProjectMap.PackageLoadStatus
Enclosing class:
StandaloneProjectMap

public static interface StandaloneProjectMap.IPackageLoadStatus

An IPackageLoadStatus maintains the lazy load state of a package within an EPackage.Registry


Method Summary
 void configureEPackageRegistry(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
          Configure the resourceSet EPackage.Registry for this package to resolve to the defined generated/loaded EPackage.
 void dispose()
          Dispose of all facilities used by the PackageLoadStatus, and remove all EPackageDescriptor entries.
 org.eclipse.emf.ecore.EPackage getConflictingGeneratedPackage()
          Return the EPackage to be used for a namespace URI after a platform-resource/plugin URI has already been loaded.
 org.eclipse.emf.ecore.EPackage getEPackage()
          Return the generated EPackage instance, or null if none loaded.
 org.eclipse.emf.ecore.EPackage getEPackageInstance()
          Return the generated EPackage instance without affecting the prevailing status.
 org.eclipse.emf.ecore.EPackage getFirstEPackage()
          Return the EPackage resolved by the first loadEPackageByModelURI/loadEPackageByNsURI, or null if none loaded.
 org.eclipse.emf.ecore.EPackage getModel()
          Return the loaded EPackages, or null if none loaded.
 StandaloneProjectMap.IPackageDescriptor getPackageDescriptor()
          Return the descriptor for the package.
 StandaloneProjectMap.IResourceLoadStatus getResourceLoadStatus()
          Get the status of the resource containing this package.
 org.eclipse.emf.ecore.EPackage loadEPackage()
          Load and return the generated EPackage instance appropriate to the namespace URI.
 void setEPackage(org.eclipse.emf.ecore.EPackage ePackage)
          Define the generated EPackage for this package.
 void setModel(org.eclipse.emf.ecore.EPackage ePackage)
          Define the loaded EPackage for this package.
 void unloadedResource()
          Reset the status following notiofication that the model has been unloaded.
 

Method Detail

configureEPackageRegistry

void configureEPackageRegistry(@NonNull
                               org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Configure the resourceSet EPackage.Registry for this package to resolve to the defined generated/loaded EPackage.


dispose

void dispose()
Dispose of all facilities used by the PackageLoadStatus, and remove all EPackageDescriptor entries.


getConflictingGeneratedPackage

@Nullable
org.eclipse.emf.ecore.EPackage getConflictingGeneratedPackage()
Return the EPackage to be used for a namespace URI after a platform-resource/plugin URI has already been loaded.


getEPackage

@Nullable
org.eclipse.emf.ecore.EPackage getEPackage()
Return the generated EPackage instance, or null if none loaded.


getEPackageInstance

@Nullable
org.eclipse.emf.ecore.EPackage getEPackageInstance()
Return the generated EPackage instance without affecting the prevailing status. Returns null if an instance cannot be loaded.


getFirstEPackage

@Nullable
org.eclipse.emf.ecore.EPackage getFirstEPackage()
Return the EPackage resolved by the first loadEPackageByModelURI/loadEPackageByNsURI, or null if none loaded.


getModel

@Nullable
org.eclipse.emf.ecore.EPackage getModel()
Return the loaded EPackages, or null if none loaded.


getPackageDescriptor

@NonNull
StandaloneProjectMap.IPackageDescriptor getPackageDescriptor()
Return the descriptor for the package.


getResourceLoadStatus

@NonNull
StandaloneProjectMap.IResourceLoadStatus getResourceLoadStatus()
Get the status of the resource containing this package.


loadEPackage

@Nullable
org.eclipse.emf.ecore.EPackage loadEPackage()
Load and return the generated EPackage instance appropriate to the namespace URI.


setEPackage

void setEPackage(@NonNull
                 org.eclipse.emf.ecore.EPackage ePackage)
Define the generated EPackage for this package.


setModel

void setModel(@NonNull
              org.eclipse.emf.ecore.EPackage ePackage)
Define the loaded EPackage for this package.


unloadedResource

void unloadedResource()
Reset the status following notiofication that the model has been unloaded.