org.eclipse.ocl.examples.domain.utilities
Class StandaloneProjectMap.SinglePackageResourceDescriptor
java.lang.Object
org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.AbstractResourceDescriptor
org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.SinglePackageResourceDescriptor
- All Implemented Interfaces:
- StandaloneProjectMap.IResourceDescriptor
- Enclosing class:
- StandaloneProjectMap
public static final class StandaloneProjectMap.SinglePackageResourceDescriptor
- 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.
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 |
StandaloneProjectMap.SinglePackageResourceDescriptor
public StandaloneProjectMap.SinglePackageResourceDescriptor(@NonNull
StandaloneProjectMap.IProjectDescriptor projectDescriptor,
@NonNull
org.eclipse.emf.common.util.URI genModelURI,
@NonNull
java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> nsURI2className)
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