public static final class StandaloneProjectMap.PackageLoadStatus extends java.lang.Object implements ProjectManager.IPackageLoadStatus
| Modifier and Type | Field and Description |
|---|---|
protected StandaloneProjectMap.EPackageDescriptor |
namespaceURIDescriptor |
protected ProjectManager.IPackageDescriptor |
packageDescriptor |
protected StandaloneProjectMap.AbstractResourceLoadStatus |
resourceLoadStatus |
| Constructor and Description |
|---|
PackageLoadStatus(StandaloneProjectMap.AbstractResourceLoadStatus resourceLoadStatus,
ProjectManager.IPackageDescriptor packageDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ProjectManager.IPackageDescriptor |
getPackageDescriptor()
Return the descriptor for the package.
|
ProjectManager.IResourceLoadStatus |
getResourceLoadStatus()
Get the status of the resource containing this package.
|
ProjectManager.IResourceLoadStrategy |
getResourceLoadStrategy() |
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.
|
java.lang.String |
toString() |
void |
unloadedResource()
Reset the status following notiofication that the model has been unloaded.
|
@NonNull protected final StandaloneProjectMap.AbstractResourceLoadStatus resourceLoadStatus
@NonNull protected final ProjectManager.IPackageDescriptor packageDescriptor
@NonNull protected final StandaloneProjectMap.EPackageDescriptor namespaceURIDescriptor
public PackageLoadStatus(@NonNull
StandaloneProjectMap.AbstractResourceLoadStatus resourceLoadStatus,
@NonNull
ProjectManager.IPackageDescriptor packageDescriptor)
public void configureEPackageRegistry(@NonNull
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
ProjectManager.IPackageLoadStatusconfigureEPackageRegistry in interface ProjectManager.IPackageLoadStatuspublic void dispose()
ProjectManager.IPackageLoadStatusdispose in interface ProjectManager.IPackageLoadStatus@Nullable public org.eclipse.emf.ecore.EPackage getConflictingGeneratedPackage()
ProjectManager.IPackageLoadStatusgetConflictingGeneratedPackage in interface ProjectManager.IPackageLoadStatus@Nullable public org.eclipse.emf.ecore.EPackage getEPackage()
ProjectManager.IPackageLoadStatusgetEPackage in interface ProjectManager.IPackageLoadStatus@Nullable public org.eclipse.emf.ecore.EPackage getEPackageInstance()
ProjectManager.IPackageLoadStatusgetEPackageInstance in interface ProjectManager.IPackageLoadStatus@Nullable public org.eclipse.emf.ecore.EPackage getFirstEPackage()
ProjectManager.IPackageLoadStatusgetFirstEPackage in interface ProjectManager.IPackageLoadStatus@Nullable public org.eclipse.emf.ecore.EPackage getModel()
ProjectManager.IPackageLoadStatusgetModel in interface ProjectManager.IPackageLoadStatus@NonNull public ProjectManager.IPackageDescriptor getPackageDescriptor()
ProjectManager.IPackageLoadStatusgetPackageDescriptor in interface ProjectManager.IPackageLoadStatus@NonNull public ProjectManager.IResourceLoadStrategy getResourceLoadStrategy()
@NonNull public ProjectManager.IResourceLoadStatus getResourceLoadStatus()
ProjectManager.IPackageLoadStatusgetResourceLoadStatus in interface ProjectManager.IPackageLoadStatus@Nullable public org.eclipse.emf.ecore.EPackage loadEPackage()
ProjectManager.IPackageLoadStatusloadEPackage in interface ProjectManager.IPackageLoadStatuspublic void setEPackage(@NonNull
org.eclipse.emf.ecore.EPackage ePackage)
ProjectManager.IPackageLoadStatussetEPackage in interface ProjectManager.IPackageLoadStatuspublic void setModel(@NonNull
org.eclipse.emf.ecore.EPackage ePackage)
ProjectManager.IPackageLoadStatussetModel in interface ProjectManager.IPackageLoadStatuspublic java.lang.String toString()
toString in class java.lang.Objectpublic void unloadedResource()
ProjectManager.IPackageLoadStatusunloadedResource in interface ProjectManager.IPackageLoadStatus