public abstract static class StandaloneProjectMap.AbstractResourceLoadStatus extends java.lang.Object implements ProjectManager.IResourceLoadStatus, org.eclipse.emf.common.notify.Adapter
| Modifier and Type | Field and Description |
|---|---|
protected ProjectManager.IConflictHandler |
conflictHandler
The optional handler for namespace/platform or platform/namespace metamodel schizophrenia.
|
protected org.eclipse.emf.ecore.resource.Resource |
eModel
The dynamically loaded model (e.g.
|
protected boolean |
generativeLoadInProgress
Re-entrancy inhibitor for for generation from AS2Ecore.
|
protected org.eclipse.emf.ecore.EPackage.Registry |
packageRegistry |
protected boolean |
recursiveLoadInProgress
Re-entrancy detector for self-referential models such as Ecore.ecore.
|
protected ProjectManager.IResourceDescriptor |
resourceDescriptor |
protected ProjectManager.IResourceLoadStrategy |
resourceLoadStrategy
The strategy to be used to resolve further URI to EPackage mappings.
|
protected org.eclipse.emf.ecore.resource.ResourceSet |
resourceSet |
| Modifier | Constructor and Description |
|---|---|
protected |
StandaloneProjectMap.AbstractResourceLoadStatus(ProjectManager.IResourceDescriptor resourceDescriptor,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureDelegatingResource()
Configure the ResourceSet.URIResourceMap to resolve platform:/plugin and platform:/resource
references to a pseudo resource that delegates to generated packages.
|
void |
configureEPackageRegistry(org.eclipse.emf.ecore.resource.Resource resource)
Configure the EPackage.Registry to resolve namesapce URI references to the specified resource.
|
void |
configureResourceSetURIResourceMap(org.eclipse.emf.ecore.resource.Resource resource)
Configure the ResourceSet.URIResourceMap to resolve platform:/plugin and platform:/resource
references to the specified resource.
|
void |
dispose()
Dispose of all facilities used by the IResourceLoadStatus, and remove all EPackageDescriptor entries.
|
org.eclipse.emf.ecore.EPackage |
getConflictingDynamicResource(org.eclipse.emf.ecore.EPackage ePackage)
Return the EPackage to be used for a platform-resource/plugin URI after a namespace URI has already been loaded.
|
org.eclipse.emf.ecore.EPackage |
getFirstEPackage()
Return the first loaded EPackage which may be part of a model or a Java generated EPackageinstance..
|
ProjectManager.IPackageLoadStatus |
getPackageLoadStatus(ProjectManager.IPackageDescriptor packageDescriptor)
Return the package load status for the package identified by packageDescriptor
|
org.eclipse.emf.ecore.EPackage.Registry |
getPackageRegistry()
Return the package registry maintained by this resource load status
|
org.eclipse.emf.ecore.resource.Resource |
getResource() |
ProjectManager.IResourceDescriptor |
getResourceDescriptor()
Return the descriptor for the resource.
|
ProjectManager.IResourceLoadStrategy |
getResourceLoadStrategy()
Return the configured resource loading strategy.
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
Return the ResourceSet to which the resource logically belongs.
|
org.eclipse.emf.common.notify.Notifier |
getTarget() |
org.eclipse.emf.ecore.EPackage |
handleConflictingGeneratedPackage(ProjectManager.IPackageLoadStatus packageLoadStatus) |
protected void |
handleLoadException(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.String location,
java.lang.Exception exception) |
protected void |
install() |
boolean |
isAdapterForType(java.lang.Object type) |
org.eclipse.emf.ecore.resource.Resource |
loadDynamicResource(org.eclipse.emf.common.util.URI nsURI)
Load and return the EPackage appropriate to the platform resource or plugin resource using nsURI to identify
a conflicting nsURI access,
|
void |
loadGeneratedPackages()
Load all the Java generated EPackage instances for the resource.
|
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification) |
void |
setConflictHandler(ProjectManager.IConflictHandler conflictHandler)
Define a new conflict handler.
|
void |
setGenerationInProgress(boolean isGenerating)
Set true by AS2Ecore to inhibit auto-loading of newly added EPackages.
|
void |
setResource(org.eclipse.emf.ecore.resource.Resource resource)
Define the resource once it has been loaded.
|
void |
setResourceLoadStrategy(ProjectManager.IResourceLoadStrategy resourceLoadStrategy)
Define a new package load strategy.
|
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget) |
java.lang.String |
toString() |
void |
unloadedResource()
Reset the status following notification that the model has been unloaded.
|
@NonNull protected final ProjectManager.IResourceDescriptor resourceDescriptor
@Nullable protected org.eclipse.emf.ecore.resource.ResourceSet resourceSet
@NonNull protected final org.eclipse.emf.ecore.EPackage.Registry packageRegistry
@Nullable protected ProjectManager.IConflictHandler conflictHandler
@NonNull protected ProjectManager.IResourceLoadStrategy resourceLoadStrategy
@Nullable protected org.eclipse.emf.ecore.resource.Resource eModel
protected boolean generativeLoadInProgress
protected boolean recursiveLoadInProgress
protected StandaloneProjectMap.AbstractResourceLoadStatus(@NonNull ProjectManager.IResourceDescriptor resourceDescriptor, @Nullable org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
public void configureEPackageRegistry(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
ProjectManager.IResourceLoadStatusconfigureEPackageRegistry in interface ProjectManager.IResourceLoadStatuspublic void configureDelegatingResource()
ProjectManager.IResourceLoadStatusconfigureDelegatingResource in interface ProjectManager.IResourceLoadStatuspublic void configureResourceSetURIResourceMap(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
ProjectManager.IResourceLoadStatusconfigureResourceSetURIResourceMap in interface ProjectManager.IResourceLoadStatuspublic void dispose()
ProjectManager.IResourceLoadStatusdispose in interface ProjectManager.IResourceLoadStatus@Nullable public org.eclipse.emf.ecore.EPackage getConflictingDynamicResource(@NonNull org.eclipse.emf.ecore.EPackage ePackage)
ProjectManager.IResourceLoadStatusgetConflictingDynamicResource in interface ProjectManager.IResourceLoadStatus@Nullable public org.eclipse.emf.ecore.EPackage getFirstEPackage()
ProjectManager.IResourceLoadStatusgetFirstEPackage in interface ProjectManager.IResourceLoadStatus@Nullable public ProjectManager.IPackageLoadStatus getPackageLoadStatus(@NonNull ProjectManager.IPackageDescriptor packageDescriptor)
ProjectManager.IResourceLoadStatusgetPackageLoadStatus in interface ProjectManager.IResourceLoadStatus@NonNull public ProjectManager.IResourceLoadStrategy getResourceLoadStrategy()
ProjectManager.IResourceLoadStatusgetResourceLoadStrategy in interface ProjectManager.IResourceLoadStatus@NonNull public org.eclipse.emf.ecore.EPackage.Registry getPackageRegistry()
ProjectManager.IResourceLoadStatusgetPackageRegistry in interface ProjectManager.IResourceLoadStatus@NonNull public ProjectManager.IResourceDescriptor getResourceDescriptor()
ProjectManager.IResourceLoadStatusgetResourceDescriptor in interface ProjectManager.IResourceLoadStatus@Nullable public org.eclipse.emf.ecore.resource.Resource getResource()
@Nullable public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
ProjectManager.IResourceLoadStatusgetResourceSet in interface ProjectManager.IResourceLoadStatus@Nullable public org.eclipse.emf.common.notify.Notifier getTarget()
getTarget in interface org.eclipse.emf.common.notify.Adapter@Nullable public org.eclipse.emf.ecore.EPackage handleConflictingGeneratedPackage(@NonNull ProjectManager.IPackageLoadStatus packageLoadStatus)
protected void handleLoadException(org.eclipse.emf.ecore.resource.Resource resource,
@NonNull
java.lang.String location,
java.lang.Exception exception)
throws java.lang.RuntimeException
java.lang.RuntimeExceptionprotected void install()
public boolean isAdapterForType(java.lang.Object type)
isAdapterForType in interface org.eclipse.emf.common.notify.Adapterpublic void loadGeneratedPackages()
ProjectManager.IResourceLoadStatusloadGeneratedPackages in interface ProjectManager.IResourceLoadStatus@Nullable public org.eclipse.emf.ecore.resource.Resource loadDynamicResource(@NonNull org.eclipse.emf.common.util.URI nsURI)
ProjectManager.IResourceLoadStatusloadDynamicResource in interface ProjectManager.IResourceLoadStatuspublic void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged in interface org.eclipse.emf.common.notify.Adapterpublic void setConflictHandler(@Nullable ProjectManager.IConflictHandler conflictHandler)
ProjectManager.IResourceLoadStatussetConflictHandler in interface ProjectManager.IResourceLoadStatuspublic void setGenerationInProgress(boolean isGenerating)
setGenerationInProgress in interface ProjectManager.IResourceLoadStatuspublic void setResource(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
ProjectManager.IResourceLoadStatussetResource in interface ProjectManager.IResourceLoadStatuspublic void setResourceLoadStrategy(@NonNull ProjectManager.IResourceLoadStrategy resourceLoadStrategy)
ProjectManager.IResourceLoadStatussetResourceLoadStrategy in interface ProjectManager.IResourceLoadStatuspublic void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
setTarget in interface org.eclipse.emf.common.notify.Adapter@NonNull public java.lang.String toString()
toString in class java.lang.Objectpublic void unloadedResource()
ProjectManager.IResourceLoadStatusunloadedResource in interface ProjectManager.IResourceLoadStatus