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

All Known Implementing Classes:
ProjectMap.ProjectDescriptor, StandaloneProjectMap.ProjectDescriptor
Enclosing class:
StandaloneProjectMap

public static interface StandaloneProjectMap.IProjectDescriptor

An IProjectDescriptor describes the capabilities of a project.


Method Summary
 void addPackageDescriptor(StandaloneProjectMap.IPackageDescriptor packageDescriptor)
          Call back to add a packageDescriptor to the project.
 void addResourceDescriptor(StandaloneProjectMap.IResourceDescriptor resourceDescriptor)
          Call back to add a resourceDescriptor to the project.
 void configure(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, StandaloneProjectMap.IResourceLoadStrategy resourceLoadStrategy, StandaloneProjectMap.IConflictHandler conflictHandler)
          Configure the resourceSet-specific status of for this resource to use a strategy and a conflictHandler.
 StandaloneProjectMap.IResourceDescriptor createResourceDescriptor(java.lang.String projectRelativeGenModelUri, java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> nsURI2className)
          Create an IResourceDescriptor for a projectRelativeGenModelUri comprsising a map of NsURI to className.
 java.io.File getLocationFile(java.lang.String projectRelativeFileName)
          Return the physical location of a projectRelativeFileName as a File.
 org.eclipse.emf.common.util.URI getLocationURI()
          Return the physical location of this project.
 org.eclipse.emf.common.util.URI getLocationURI(java.lang.String projectRelativeFileName)
          Return the physical location of a projectRelativeFileName as a URI.
 java.lang.String getName()
          Return project name.
 StandaloneProjectMap.IPackageDescriptor getPackageDescriptor(org.eclipse.emf.common.util.URI nsURI)
          Return the package descriptor for the package with a given nsURI or null if none known in the project.
 org.eclipse.emf.common.util.URI getPlatformPluginURI()
          Return the location of this project as a platform:/plugin URI.
 org.eclipse.emf.common.util.URI getPlatformPluginURI(java.lang.String projectRelativeFileName)
          Return the location of a projectRelativeFileName as a platform:/resource URI.
 org.eclipse.emf.common.util.URI getPlatformResourceURI()
          Return the location of this project as a platform:/resource URI.
 org.eclipse.emf.common.util.URI getPlatformResourceURI(java.lang.String projectRelativeFileName)
          Return the location of a projectRelativeFileName as a platform:/resource URI.
 StandaloneProjectMap getProjectMap()
          Return the overall ProjectMap.
 java.util.Collection<StandaloneProjectMap.IResourceDescriptor> getResourceDescriptors()
          Return all packages descriptors in the project.
 void initializeGenModelLocationMap(java.util.Map<org.eclipse.emf.common.util.URI,StandaloneProjectMap.IPackageDescriptor> nsURI2package)
           
 void initializePlatformResourceMap()
           
 void initializeURIMap(java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> uriMap)
           
 void unload(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
           
 

Method Detail

addPackageDescriptor

void addPackageDescriptor(@NonNull
                          StandaloneProjectMap.IPackageDescriptor packageDescriptor)
Call back to add a packageDescriptor to the project.


addResourceDescriptor

void addResourceDescriptor(@NonNull
                           StandaloneProjectMap.IResourceDescriptor resourceDescriptor)
Call back to add a resourceDescriptor to the project.


configure

void configure(@Nullable
               org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
               @NonNull
               StandaloneProjectMap.IResourceLoadStrategy resourceLoadStrategy,
               @Nullable
               StandaloneProjectMap.IConflictHandler conflictHandler)
Configure the resourceSet-specific status of for this resource to use a strategy and a conflictHandler.


createResourceDescriptor

@NonNull
StandaloneProjectMap.IResourceDescriptor createResourceDescriptor(@NonNull
                                                                          java.lang.String projectRelativeGenModelUri,
                                                                          @NonNull
                                                                          java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> nsURI2className)
Create an IResourceDescriptor for a projectRelativeGenModelUri comprsising a map of NsURI to className.


getLocationURI

@NonNull
org.eclipse.emf.common.util.URI getLocationURI()
Return the physical location of this project.


getLocationURI

@NonNull
org.eclipse.emf.common.util.URI getLocationURI(@NonNull
                                                       java.lang.String projectRelativeFileName)
Return the physical location of a projectRelativeFileName as a URI.


getLocationFile

@NonNull
java.io.File getLocationFile(@NonNull
                                     java.lang.String projectRelativeFileName)
Return the physical location of a projectRelativeFileName as a File.


getName

@NonNull
java.lang.String getName()
Return project name.


getPlatformPluginURI

@NonNull
org.eclipse.emf.common.util.URI getPlatformPluginURI()
Return the location of this project as a platform:/plugin URI.


getPlatformPluginURI

@NonNull
org.eclipse.emf.common.util.URI getPlatformPluginURI(@NonNull
                                                             java.lang.String projectRelativeFileName)
Return the location of a projectRelativeFileName as a platform:/resource URI.


getPlatformResourceURI

@NonNull
org.eclipse.emf.common.util.URI getPlatformResourceURI()
Return the location of this project as a platform:/resource URI.


getPlatformResourceURI

@NonNull
org.eclipse.emf.common.util.URI getPlatformResourceURI(@NonNull
                                                               java.lang.String projectRelativeFileName)
Return the location of a projectRelativeFileName as a platform:/resource URI.


getPackageDescriptor

@Nullable
StandaloneProjectMap.IPackageDescriptor getPackageDescriptor(@NonNull
                                                                      org.eclipse.emf.common.util.URI nsURI)
Return the package descriptor for the package with a given nsURI or null if none known in the project.


getProjectMap

@NonNull
StandaloneProjectMap getProjectMap()
Return the overall ProjectMap.


getResourceDescriptors

@Nullable
java.util.Collection<StandaloneProjectMap.IResourceDescriptor> getResourceDescriptors()
Return all packages descriptors in the project.


initializeGenModelLocationMap

void initializeGenModelLocationMap(@NonNull
                                   java.util.Map<org.eclipse.emf.common.util.URI,StandaloneProjectMap.IPackageDescriptor> nsURI2package)

initializePlatformResourceMap

void initializePlatformResourceMap()

initializeURIMap

void initializeURIMap(@NonNull
                      java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> uriMap)

unload

void unload(@NonNull
            org.eclipse.emf.ecore.resource.ResourceSet resourceSet)