org.eclipse.ocl.examples.domain.utilities
Class StandaloneProjectMap.ProjectDescriptor

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.ProjectDescriptor
All Implemented Interfaces:
StandaloneProjectMap.IProjectDescriptor, StandaloneProjectMap.IProjectDescriptor.Internal
Direct Known Subclasses:
ProjectMap.ProjectDescriptor
Enclosing class:
StandaloneProjectMap

public static class StandaloneProjectMap.ProjectDescriptor
extends java.lang.Object
implements StandaloneProjectMap.IProjectDescriptor.Internal


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.IProjectDescriptor
StandaloneProjectMap.IProjectDescriptor.Internal
 
Field Summary
protected  org.eclipse.emf.common.util.URI locationURI
          The resolveable location.
protected  java.lang.String name
          The project/bundle/plugin name; e.g.
 
Constructor Summary
StandaloneProjectMap.ProjectDescriptor(java.lang.String name, org.eclipse.emf.common.util.URI locationURI)
           
 
Method Summary
 StandaloneProjectMap.IPackageDescriptor.Internal createPackageDescriptor(org.eclipse.emf.common.util.URI nsURI, org.eclipse.emf.common.util.URI genModelURI)
          Internal callback from Ecore model pre-parse to register the Ecore Package URI.
 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()
           
 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.
 java.util.Collection<StandaloneProjectMap.IPackageDescriptor> getPackageDescriptors()
          Return all package descriptor 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.
 void initializeGenModelLocationMap()
           
 void initializePackageRegistration(org.eclipse.emf.ecore.EPackage.Registry packageRegistry, StandaloneProjectMap.IPackageDescriptor packageDescriptor)
           
 void initializePlatformResourceMap()
           
 void initializeURIMap(java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> uriMap)
           
 void installEcoreModel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.common.util.URI nsURI)
           
 java.lang.String toString()
           
 void useModelsAndPackages(org.eclipse.emf.ecore.resource.Resource ecoreResource)
           
 void usePackages(org.eclipse.emf.ecore.resource.Resource ecoreResource)
          Treat any top level packages in ecoreResource as preloaded packages for use by corresponding URIs in this project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final java.lang.String name
The project/bundle/plugin name; e.g. "org.eclipse.emf.ecore"


locationURI

protected final org.eclipse.emf.common.util.URI locationURI
The resolveable location.

Constructor Detail

StandaloneProjectMap.ProjectDescriptor

public StandaloneProjectMap.ProjectDescriptor(java.lang.String name,
                                              org.eclipse.emf.common.util.URI locationURI)
Method Detail

createPackageDescriptor

public StandaloneProjectMap.IPackageDescriptor.Internal createPackageDescriptor(org.eclipse.emf.common.util.URI nsURI,
                                                                                org.eclipse.emf.common.util.URI genModelURI)
Description copied from interface: StandaloneProjectMap.IProjectDescriptor.Internal
Internal callback from Ecore model pre-parse to register the Ecore Package URI.

Specified by:
createPackageDescriptor in interface StandaloneProjectMap.IProjectDescriptor.Internal

getLocationURI

public org.eclipse.emf.common.util.URI getLocationURI()
Description copied from interface: StandaloneProjectMap.IProjectDescriptor
Return the physical location of this project.

Specified by:
getLocationURI in interface StandaloneProjectMap.IProjectDescriptor

getLocationURI

public org.eclipse.emf.common.util.URI getLocationURI(java.lang.String projectRelativeFileName)
Description copied from interface: StandaloneProjectMap.IProjectDescriptor
Return the physical location of a projectRelativeFileName as a URI.

Specified by:
getLocationURI in interface StandaloneProjectMap.IProjectDescriptor

getLocationFile

public java.io.File getLocationFile(java.lang.String projectRelativeFileName)
Description copied from interface: StandaloneProjectMap.IProjectDescriptor
Return the physical location of a projectRelativeFileName as a File.

Specified by:
getLocationFile in interface StandaloneProjectMap.IProjectDescriptor

getName

public java.lang.String getName()

getPackageDescriptor

public StandaloneProjectMap.IPackageDescriptor getPackageDescriptor(org.eclipse.emf.common.util.URI nsURI)
Description copied from interface: StandaloneProjectMap.IProjectDescriptor
Return the package descriptor for the package with a given nsURI or null if none known in the project.

Specified by:
getPackageDescriptor in interface StandaloneProjectMap.IProjectDescriptor

getPackageDescriptors

public java.util.Collection<StandaloneProjectMap.IPackageDescriptor> getPackageDescriptors()
Description copied from interface: StandaloneProjectMap.IProjectDescriptor
Return all package descriptor in the project.

Specified by:
getPackageDescriptors in interface StandaloneProjectMap.IProjectDescriptor

getPlatformPluginURI

public org.eclipse.emf.common.util.URI getPlatformPluginURI()
Description copied from interface: StandaloneProjectMap.IProjectDescriptor
Return the location of this project as a platform:/plugin URI.

Specified by:
getPlatformPluginURI in interface StandaloneProjectMap.IProjectDescriptor

getPlatformPluginURI

public org.eclipse.emf.common.util.URI getPlatformPluginURI(java.lang.String projectRelativeFileName)
Description copied from interface: StandaloneProjectMap.IProjectDescriptor
Return the location of a projectRelativeFileName as a platform:/resource URI.

Specified by:
getPlatformPluginURI in interface StandaloneProjectMap.IProjectDescriptor

getPlatformResourceURI

public org.eclipse.emf.common.util.URI getPlatformResourceURI()
Description copied from interface: StandaloneProjectMap.IProjectDescriptor
Return the location of this project as a platform:/resource URI.

Specified by:
getPlatformResourceURI in interface StandaloneProjectMap.IProjectDescriptor

getPlatformResourceURI

public org.eclipse.emf.common.util.URI getPlatformResourceURI(java.lang.String projectRelativeFileName)
Description copied from interface: StandaloneProjectMap.IProjectDescriptor
Return the location of a projectRelativeFileName as a platform:/resource URI.

Specified by:
getPlatformResourceURI in interface StandaloneProjectMap.IProjectDescriptor

installEcoreModel

public void installEcoreModel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                              org.eclipse.emf.common.util.URI nsURI)

initializeGenModelLocationMap

public void initializeGenModelLocationMap()
Specified by:
initializeGenModelLocationMap in interface StandaloneProjectMap.IProjectDescriptor

initializePackageRegistration

public void initializePackageRegistration(org.eclipse.emf.ecore.EPackage.Registry packageRegistry,
                                          StandaloneProjectMap.IPackageDescriptor packageDescriptor)
Specified by:
initializePackageRegistration in interface StandaloneProjectMap.IProjectDescriptor

initializePlatformResourceMap

public void initializePlatformResourceMap()
Specified by:
initializePlatformResourceMap in interface StandaloneProjectMap.IProjectDescriptor

initializeURIMap

public void initializeURIMap(java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> uriMap)
Specified by:
initializeURIMap in interface StandaloneProjectMap.IProjectDescriptor

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

useModelsAndPackages

public void useModelsAndPackages(org.eclipse.emf.ecore.resource.Resource ecoreResource)
Specified by:
useModelsAndPackages in interface StandaloneProjectMap.IProjectDescriptor

usePackages

public void usePackages(org.eclipse.emf.ecore.resource.Resource ecoreResource)
Description copied from interface: StandaloneProjectMap.IProjectDescriptor
Treat any top level packages in ecoreResource as preloaded packages for use by corresponding URIs in this project.

Specified by:
usePackages in interface StandaloneProjectMap.IProjectDescriptor