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

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.AbstractResourceDescriptor
      extended by org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.MultiplePackageResourceDescriptor
All Implemented Interfaces:
StandaloneProjectMap.IResourceDescriptor
Enclosing class:
StandaloneProjectMap

public static final class StandaloneProjectMap.MultiplePackageResourceDescriptor
extends StandaloneProjectMap.AbstractResourceDescriptor

PackageDescriptor supports lazy class loading and initialization of a compiled Ecore package. Class loading occurs in the context of the ProjectMap, which performs classpath scans, so it is assumed that everything is visible. Re-use in a larger context may require a new ProjectMap to be created. If a PackageDescriptor is installed under multiple URIs, the resource created by the first load is shared by all subsequent resolutions. If a PackageDescriptor is set to useModel, the *.ecore file is loaded to provide the EPackage, rather than the Java className. A PackageDescriptor maintains the declared context of a package which may be shared by many ResourceSets. In contrast a PackageStatus maintains the actual state of a package for a particular EPackage.Registry, each of which may have a distinct ResourceLoadStrategy and consequently may not load the same EPackage.


Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.AbstractResourceDescriptor
genModelURI, packageDescriptors, projectDescriptor
 
Constructor Summary
StandaloneProjectMap.MultiplePackageResourceDescriptor(StandaloneProjectMap.ProjectDescriptor projectDescriptor, org.eclipse.emf.common.util.URI genModelURI, java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> nsURI2className)
           
 
Method Summary
protected  StandaloneProjectMap.IResourceLoadStatus createResourceLoadStatus(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.AbstractResourceDescriptor
addedDynamicResource, addedGeneratedPackage, configure, configureResourceSetURIResourceMap, getGenModelURI, getLocationURI, getPackageDescriptors, getPlatformPluginURI, getPlatformResourceURI, getProjectDescriptor, getProjectRelativeEcorePackageURI, getResourceLoadStatus, hasEcoreModel, setEcoreModel, unload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StandaloneProjectMap.MultiplePackageResourceDescriptor

public StandaloneProjectMap.MultiplePackageResourceDescriptor(@NonNull
                                                              StandaloneProjectMap.ProjectDescriptor projectDescriptor,
                                                              @NonNull
                                                              org.eclipse.emf.common.util.URI genModelURI,
                                                              @NonNull
                                                              java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> nsURI2className)
Method Detail

createResourceLoadStatus

@NonNull
protected StandaloneProjectMap.IResourceLoadStatus createResourceLoadStatus(@Nullable
                                                                                    org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Specified by:
createResourceLoadStatus in class StandaloneProjectMap.AbstractResourceDescriptor

toString

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