|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.AbstractResourceLoadStatus
public abstract static class StandaloneProjectMap.AbstractResourceLoadStatus
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
---|
org.eclipse.emf.common.notify.Adapter.Internal |
Field Summary | |
---|---|
protected StandaloneProjectMap.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 Pivot2Ecore. |
protected org.eclipse.emf.ecore.EPackage.Registry |
packageRegistry
|
protected boolean |
recursiveLoadInProgress
Re-entrancy detector for self-referential models such as Ecore.ecore. |
protected StandaloneProjectMap.IResourceDescriptor |
resourceDescriptor
|
protected StandaloneProjectMap.IResourceLoadStrategy |
resourceLoadStrategy
The strategy to be used to resolve further URI to EPackage mappings. |
protected org.eclipse.emf.ecore.resource.ResourceSet |
resourceSet
|
Constructor Summary | |
---|---|
protected |
StandaloneProjectMap.AbstractResourceLoadStatus(StandaloneProjectMap.IResourceDescriptor resourceDescriptor,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
|
Method Summary | |
---|---|
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.. |
StandaloneProjectMap.IPackageLoadStatus |
getPackageLoadStatus(StandaloneProjectMap.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()
|
StandaloneProjectMap.IResourceDescriptor |
getResourceDescriptor()
Return the descriptor for the resource. |
StandaloneProjectMap.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(StandaloneProjectMap.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(StandaloneProjectMap.IConflictHandler conflictHandler)
Define a new conflict handler. |
void |
setGenerationInProgress(boolean isGenerating)
Set true by Pivot2Ecore 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(StandaloneProjectMap.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@NonNull protected final StandaloneProjectMap.IResourceDescriptor resourceDescriptor
@Nullable protected org.eclipse.emf.ecore.resource.ResourceSet resourceSet
@NonNull protected final org.eclipse.emf.ecore.EPackage.Registry packageRegistry
@Nullable protected StandaloneProjectMap.IConflictHandler conflictHandler
@NonNull protected StandaloneProjectMap.IResourceLoadStrategy resourceLoadStrategy
@Nullable protected org.eclipse.emf.ecore.resource.Resource eModel
protected boolean generativeLoadInProgress
protected boolean recursiveLoadInProgress
Constructor Detail |
---|
protected StandaloneProjectMap.AbstractResourceLoadStatus(@NonNull StandaloneProjectMap.IResourceDescriptor resourceDescriptor, @Nullable org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Method Detail |
---|
public void configureEPackageRegistry(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
StandaloneProjectMap.IResourceLoadStatus
configureEPackageRegistry
in interface StandaloneProjectMap.IResourceLoadStatus
public void configureDelegatingResource()
StandaloneProjectMap.IResourceLoadStatus
configureDelegatingResource
in interface StandaloneProjectMap.IResourceLoadStatus
public void configureResourceSetURIResourceMap(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
StandaloneProjectMap.IResourceLoadStatus
configureResourceSetURIResourceMap
in interface StandaloneProjectMap.IResourceLoadStatus
public void dispose()
StandaloneProjectMap.IResourceLoadStatus
dispose
in interface StandaloneProjectMap.IResourceLoadStatus
@Nullable public org.eclipse.emf.ecore.EPackage getConflictingDynamicResource(@NonNull org.eclipse.emf.ecore.EPackage ePackage)
StandaloneProjectMap.IResourceLoadStatus
getConflictingDynamicResource
in interface StandaloneProjectMap.IResourceLoadStatus
@Nullable public org.eclipse.emf.ecore.EPackage getFirstEPackage()
StandaloneProjectMap.IResourceLoadStatus
getFirstEPackage
in interface StandaloneProjectMap.IResourceLoadStatus
@Nullable public StandaloneProjectMap.IPackageLoadStatus getPackageLoadStatus(@NonNull StandaloneProjectMap.IPackageDescriptor packageDescriptor)
StandaloneProjectMap.IResourceLoadStatus
getPackageLoadStatus
in interface StandaloneProjectMap.IResourceLoadStatus
@NonNull public StandaloneProjectMap.IResourceLoadStrategy getResourceLoadStrategy()
StandaloneProjectMap.IResourceLoadStatus
getResourceLoadStrategy
in interface StandaloneProjectMap.IResourceLoadStatus
@NonNull public org.eclipse.emf.ecore.EPackage.Registry getPackageRegistry()
StandaloneProjectMap.IResourceLoadStatus
getPackageRegistry
in interface StandaloneProjectMap.IResourceLoadStatus
@NonNull public StandaloneProjectMap.IResourceDescriptor getResourceDescriptor()
StandaloneProjectMap.IResourceLoadStatus
getResourceDescriptor
in interface StandaloneProjectMap.IResourceLoadStatus
@Nullable public org.eclipse.emf.ecore.resource.Resource getResource()
@Nullable public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
StandaloneProjectMap.IResourceLoadStatus
getResourceSet
in interface StandaloneProjectMap.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 StandaloneProjectMap.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()
StandaloneProjectMap.IResourceLoadStatus
loadGeneratedPackages
in interface StandaloneProjectMap.IResourceLoadStatus
@Nullable public org.eclipse.emf.ecore.resource.Resource loadDynamicResource(@NonNull org.eclipse.emf.common.util.URI nsURI)
StandaloneProjectMap.IResourceLoadStatus
loadDynamicResource
in interface StandaloneProjectMap.IResourceLoadStatus
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
public void setConflictHandler(@Nullable StandaloneProjectMap.IConflictHandler conflictHandler)
StandaloneProjectMap.IResourceLoadStatus
setConflictHandler
in interface StandaloneProjectMap.IResourceLoadStatus
public void setGenerationInProgress(boolean isGenerating)
setGenerationInProgress
in interface StandaloneProjectMap.IResourceLoadStatus
public void setResource(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
StandaloneProjectMap.IResourceLoadStatus
setResource
in interface StandaloneProjectMap.IResourceLoadStatus
public void setResourceLoadStrategy(@NonNull StandaloneProjectMap.IResourceLoadStrategy resourceLoadStrategy)
StandaloneProjectMap.IResourceLoadStatus
setResourceLoadStrategy
in interface StandaloneProjectMap.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()
StandaloneProjectMap.IResourceLoadStatus
unloadedResource
in interface StandaloneProjectMap.IResourceLoadStatus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |