org.eclipse.ocl.examples.domain.utilities
Interface StandaloneProjectMap.IResourceDescriptor

All Known Implementing Classes:
StandaloneProjectMap.AbstractResourceDescriptor, StandaloneProjectMap.MultiplePackageResourceDescriptor, StandaloneProjectMap.SinglePackageResourceDescriptor
Enclosing class:
StandaloneProjectMap

public static interface StandaloneProjectMap.IResourceDescriptor

An IResourceDescriptor describes the modeling capabilities of one or more known model packages in a genmodel.


Method Summary
 void addedDynamicResource(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.ecore.resource.Resource resource)
           
 void addedGeneratedPackage(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.ecore.EPackage ePackage)
           
 void configure(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, StandaloneProjectMap.IResourceLoadStrategy resourceLoadStrategy, StandaloneProjectMap.IConflictHandler conflictHandler)
           
 void configureResourceSetURIResourceMap(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.ecore.resource.Resource resource)
           
 org.eclipse.emf.common.util.URI getGenModelURI()
          Return the project relative Gen Model URI.
 org.eclipse.emf.common.util.URI getLocationURI()
          Return the external filespace form of the model URI containing the package.
 java.lang.Iterable<? extends StandaloneProjectMap.IPackageDescriptor> getPackageDescriptors()
          Return the descriptors for allpackages in this resource.
 org.eclipse.emf.common.util.URI getPlatformPluginURI()
          Return the platform:/plugin form of the model URI containing the package
 org.eclipse.emf.common.util.URI getPlatformResourceURI()
          Return the platform:/resource form of the model URI containing the package
 StandaloneProjectMap.IProjectDescriptor getProjectDescriptor()
          Return the Project Descriptor containing this resource.
 org.eclipse.emf.common.util.URI getProjectRelativeEcorePackageURI(org.eclipse.emf.common.util.URI genModelRelativeEcorePackageURI)
           
 StandaloneProjectMap.IResourceLoadStatus getResourceLoadStatus(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
          Return IResourceLoadStatus for this resource in conjunction with resourceSet.
 boolean hasEcoreModel()
          Return true if setEcoreModel has defined the Ecore Model context.
 void setEcoreModel(java.util.List<java.lang.String> genModelRelativeEcorePackageUris, java.util.Map<java.lang.String,StandaloneProjectMap.IPackageDescriptor> nsURI2packageDescriptor)
          Set the Ecore Model context of the resource from a list of URIs of the Ecore Packages relative to the genModelURI, and a map of the package namespace URI to package descriptor.
 void unload(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
          Unload the package registry to force a reload.
 

Method Detail

addedDynamicResource

void addedDynamicResource(@NonNull
                          org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                          @NonNull
                          org.eclipse.emf.ecore.resource.Resource resource)

addedGeneratedPackage

void addedGeneratedPackage(@NonNull
                           org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                           @NonNull
                           org.eclipse.emf.ecore.EPackage ePackage)

configure

void configure(@Nullable
               org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
               @NonNull
               StandaloneProjectMap.IResourceLoadStrategy resourceLoadStrategy,
               @Nullable
               StandaloneProjectMap.IConflictHandler conflictHandler)

configureResourceSetURIResourceMap

void configureResourceSetURIResourceMap(@NonNull
                                        org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                                        @NonNull
                                        org.eclipse.emf.ecore.resource.Resource resource)

getGenModelURI

@NonNull
org.eclipse.emf.common.util.URI getGenModelURI()
Return the project relative Gen Model URI.


getLocationURI

@NonNull
org.eclipse.emf.common.util.URI getLocationURI()
Return the external filespace form of the model URI containing the package.

Throws:
java.lang.IllegalStateException - if there is no Ecore model.

getPackageDescriptors

java.lang.Iterable<? extends StandaloneProjectMap.IPackageDescriptor> getPackageDescriptors()
Return the descriptors for allpackages in this resource.


getPlatformResourceURI

@NonNull
org.eclipse.emf.common.util.URI getPlatformResourceURI()
Return the platform:/resource form of the model URI containing the package

Throws:
java.lang.IllegalStateException - if there is no Ecore model.

getPlatformPluginURI

@NonNull
org.eclipse.emf.common.util.URI getPlatformPluginURI()
Return the platform:/plugin form of the model URI containing the package

Throws:
java.lang.IllegalStateException - if there is no Ecore model.

getProjectDescriptor

@NonNull
StandaloneProjectMap.IProjectDescriptor getProjectDescriptor()
Return the Project Descriptor containing this resource.


getProjectRelativeEcorePackageURI

@NonNull
org.eclipse.emf.common.util.URI getProjectRelativeEcorePackageURI(@NonNull
                                                                          org.eclipse.emf.common.util.URI genModelRelativeEcorePackageURI)

getResourceLoadStatus

@NonNull
StandaloneProjectMap.IResourceLoadStatus getResourceLoadStatus(@Nullable
                                                                       org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Return IResourceLoadStatus for this resource in conjunction with resourceSet.


hasEcoreModel

boolean hasEcoreModel()
Return true if setEcoreModel has defined the Ecore Model context.


setEcoreModel

void setEcoreModel(@NonNull
                   java.util.List<java.lang.String> genModelRelativeEcorePackageUris,
                   @NonNull
                   java.util.Map<java.lang.String,StandaloneProjectMap.IPackageDescriptor> nsURI2packageDescriptor)
Set the Ecore Model context of the resource from a list of URIs of the Ecore Packages relative to the genModelURI, and a map of the package namespace URI to package descriptor.


unload

void unload(@NonNull
            org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Unload the package registry to force a reload.