org.eclipse.ocl.examples.domain.utilities
Class StandaloneProjectMap.LoadBothStrategy
java.lang.Object
org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.AbstractResourceLoadStrategy
org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.LoadBothStrategy
- All Implemented Interfaces:
- StandaloneProjectMap.IResourceLoadStrategy
- Enclosing class:
- StandaloneProjectMap
public static final class StandaloneProjectMap.LoadBothStrategy
- extends StandaloneProjectMap.AbstractResourceLoadStrategy
The LoadBothStrategy permits metamodel schizophrenia and so access to the namespace URI resolves to an installed
resource while access to the platform plugin or resource URI resolve to a dynamically loaded resource.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INSTANCE
@NonNull
public static final StandaloneProjectMap.IResourceLoadStrategy INSTANCE
StandaloneProjectMap.LoadBothStrategy
public StandaloneProjectMap.LoadBothStrategy()
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
- Overrides:
addedDynamicResource
in class StandaloneProjectMap.AbstractResourceLoadStrategy
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
- Overrides:
addedGeneratedPackage
in class StandaloneProjectMap.AbstractResourceLoadStrategy
getEPackage
@Nullable
public org.eclipse.emf.ecore.EPackage getEPackage(@NonNull
StandaloneProjectMap.IPackageLoadStatus packageLoadStatus)
- Description copied from interface:
StandaloneProjectMap.IResourceLoadStrategy
- Load and return the EPackage in response to an EPackage.Registry access through an EPackageDescriptor.
unloadedResource
public void unloadedResource(@NonNull
StandaloneProjectMap.IResourceLoadStatus packageLoadStatus)
- Description copied from interface:
StandaloneProjectMap.IResourceLoadStrategy
- Respond to the notification that the resource has been unloaded.