org.eclipse.gmt.umlx.registry.util
Interface ModelResolver

All Known Implementing Classes:
AbstractModelResolver, ModelFileResolver, ModelResourceResolver

public interface ModelResolver


Method Summary
 org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.emf.common.util.URI uri, boolean loadOnDemand)
           
 org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
           
 org.eclipse.emf.common.util.URI getURI(Accessor accessor)
          Return the (Ecore) URI suitable for getting the (Ecore) resource defined by the accessor of a (Workspace) resource.
 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 of a (Workspace) resource.
 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 of a (Workspace) resource.
 

Method Detail

getResource

org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.emf.common.util.URI uri,
                                                    boolean loadOnDemand)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

getResourceSet

org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()

getURI

org.eclipse.emf.common.util.URI getURI(Accessor accessor)
Return the (Ecore) URI suitable for getting the (Ecore) resource defined by the accessor of a (Workspace) resource.

Parameters:
accessor - the name and type of resource to be located.
Returns:
the Ecore URI

getURI

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 of a (Workspace) resource. This is just a convenience form of getURI(resource, new ModelNameAccessor(modelName)).

Parameters:
modelName - the name of the model to be located.
Returns:
the Ecore URI

getURI

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 of a (Workspace) resource. This is just a convenience form of getURI(resource, new URIAccessor(uri)).

Parameters:
modelName - the name of the model to be located.
Returns:
the Ecore URI