public interface ModelResolver
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.ecore.resource.Resource |
getEcoreResource(org.eclipse.emf.common.util.URI uri,
boolean loadOnDemand)
Return the Ecore Resource for uri optionally loading it if not already loaded.
|
FileHandle |
getHandle() |
ProjectRegistry |
getProjectRegistry()
Return the project registry, creating and loading it if not already loaded.
|
org.eclipse.emf.ecore.resource.Resource |
getResource(org.eclipse.emf.common.util.URI uri,
boolean loadOnDemand)
Return the EMF Resource for uri optionally loading it if not already loaded.
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
Return the ResourceSet in which loaded resources are maintained.
|
<A extends Accessor<A>> |
getURI(A accessor)
Return the (Ecore) URI suitable for getting the (Ecore) resource defined by the
accessor in the context of a file defined by its handle.
|
org.eclipse.emf.common.util.URI |
getURI(java.lang.String modelName)
Return the (Ecore) URI suitable for getting the (Ecore) resource defined by the
modelName in the context of a file defined by its handle.
|
org.eclipse.emf.common.util.URI |
getURI(java.net.URI uri)
Return the (Ecore) URI suitable for getting the (Ecore) resource defined by the
(java.net.URI) uri in the context of a file defined by its handle.
|
org.eclipse.emf.ecore.resource.Resource getEcoreResource(org.eclipse.emf.common.util.URI uri, boolean loadOnDemand) throws java.lang.Exception
uri
- loadOnDemand
- java.lang.Exception
FileHandle getHandle()
ProjectRegistry getProjectRegistry()
org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.emf.common.util.URI uri, boolean loadOnDemand) throws java.lang.Exception
uri
- loadOnDemand
- java.lang.Exception
org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
<A extends Accessor<A>> org.eclipse.emf.common.util.URI getURI(A accessor)
accessor
- the name and type of resource to be located.org.eclipse.emf.common.util.URI getURI(java.lang.String modelName)
modelName
- the name of the model to be located.org.eclipse.emf.common.util.URI getURI(java.net.URI uri)
uri
- the URI name of the model to be located.