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 |
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
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 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.IResourceLoadStatus
configureEPackageRegistry
in interface ProjectManager.IResourceLoadStatus
public void configureDelegatingResource()
ProjectManager.IResourceLoadStatus
configureDelegatingResource
in interface ProjectManager.IResourceLoadStatus
public void configureResourceSetURIResourceMap(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
ProjectManager.IResourceLoadStatus
configureResourceSetURIResourceMap
in interface ProjectManager.IResourceLoadStatus
public void dispose()
ProjectManager.IResourceLoadStatus
dispose
in interface ProjectManager.IResourceLoadStatus
@Nullable public org.eclipse.emf.ecore.EPackage getConflictingDynamicResource(@NonNull org.eclipse.emf.ecore.EPackage ePackage)
ProjectManager.IResourceLoadStatus
getConflictingDynamicResource
in interface ProjectManager.IResourceLoadStatus
@Nullable public org.eclipse.emf.ecore.EPackage getFirstEPackage()
ProjectManager.IResourceLoadStatus
getFirstEPackage
in interface ProjectManager.IResourceLoadStatus
@Nullable public ProjectManager.IPackageLoadStatus getPackageLoadStatus(@NonNull ProjectManager.IPackageDescriptor packageDescriptor)
ProjectManager.IResourceLoadStatus
getPackageLoadStatus
in interface ProjectManager.IResourceLoadStatus
@NonNull public ProjectManager.IResourceLoadStrategy getResourceLoadStrategy()
ProjectManager.IResourceLoadStatus
getResourceLoadStrategy
in interface ProjectManager.IResourceLoadStatus
public org.eclipse.emf.ecore.EPackage.Registry getPackageRegistry()
ProjectManager.IResourceLoadStatus
getPackageRegistry
in interface ProjectManager.IResourceLoadStatus
@NonNull public ProjectManager.IResourceDescriptor getResourceDescriptor()
ProjectManager.IResourceLoadStatus
getResourceDescriptor
in interface ProjectManager.IResourceLoadStatus
@Nullable public org.eclipse.emf.ecore.resource.Resource getResource()
@Nullable public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
ProjectManager.IResourceLoadStatus
getResourceSet
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.RuntimeException
protected void install()
public boolean isAdapterForType(java.lang.Object type)
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
public void loadGeneratedPackages()
ProjectManager.IResourceLoadStatus
loadGeneratedPackages
in interface ProjectManager.IResourceLoadStatus
@Nullable public org.eclipse.emf.ecore.resource.Resource loadDynamicResource(@NonNull org.eclipse.emf.common.util.URI nsURI)
ProjectManager.IResourceLoadStatus
loadDynamicResource
in interface ProjectManager.IResourceLoadStatus
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
public void setConflictHandler(@Nullable ProjectManager.IConflictHandler conflictHandler)
ProjectManager.IResourceLoadStatus
setConflictHandler
in interface ProjectManager.IResourceLoadStatus
public void setGenerationInProgress(boolean isGenerating)
setGenerationInProgress
in interface ProjectManager.IResourceLoadStatus
public void setResource(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
ProjectManager.IResourceLoadStatus
setResource
in interface ProjectManager.IResourceLoadStatus
public void setResourceLoadStrategy(@NonNull ProjectManager.IResourceLoadStrategy resourceLoadStrategy)
ProjectManager.IResourceLoadStatus
setResourceLoadStrategy
in interface ProjectManager.IResourceLoadStatus
public 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.Object
public void unloadedResource()
ProjectManager.IResourceLoadStatus
unloadedResource
in interface ProjectManager.IResourceLoadStatus