java.lang.Objectorg.eclipse.gmt.umlx.registry.environment.AbstractModelResolver
public class AbstractModelResolver
Constructor Summary | |
---|---|
AbstractModelResolver(AbstractFileHandle handle)
|
Method Summary | ||
---|---|---|
ProjectRegistry |
getProjectRegistry()
Return the project registry, creating and loading it if not already loaded. |
|
|
getRegistration(A accessor)
|
|
Registration<ModelNameAccessor> |
getRegistration(java.lang.String modelName)
|
|
Registration<URIAccessor> |
getRegistration(java.net.URI uri)
|
|
|
getRegistrations(java.lang.Class<A> accessorClass)
|
|
org.eclipse.emf.ecore.resource.Resource |
getResource(Registration<ModelNameAccessor> registration)
|
|
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 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. |
|
void |
setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Define the |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractModelResolver(AbstractFileHandle handle)
Method Detail |
---|
public ProjectRegistry getProjectRegistry()
ModelResolver
getProjectRegistry
in interface ModelResolver
public <A extends Accessor> Registration<A> getRegistration(A accessor)
public Registration<ModelNameAccessor> getRegistration(java.lang.String modelName)
public Registration<URIAccessor> getRegistration(java.net.URI uri)
public <A extends Accessor> java.util.Collection<Registration<A>> getRegistrations(java.lang.Class<A> accessorClass)
public org.eclipse.emf.ecore.resource.Resource getResource(org.eclipse.emf.common.util.URI uri, boolean loadOnDemand) throws java.lang.Exception
getResource
in interface ModelResolver
java.lang.Exception
public org.eclipse.emf.ecore.resource.Resource getResource(Registration<ModelNameAccessor> registration) throws java.io.IOException
java.io.IOException
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
getResourceSet
in interface ModelResolver
public org.eclipse.emf.common.util.URI getURI(Accessor accessor)
ModelResolver
getURI
in interface ModelResolver
accessor
- the name and type of resource to be located.
public org.eclipse.emf.common.util.URI getURI(java.lang.String modelName)
ModelResolver
getURI
in interface ModelResolver
modelName
- the name of the model to be located.
public org.eclipse.emf.common.util.URI getURI(java.net.URI uri)
ModelResolver
getURI
in interface ModelResolver
uri
- the URI name of the model to be located.
public void setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
resourceSet
- public java.lang.String toString()
toString
in class java.lang.Object