public class ProjectRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SERIALISATION_NAME |
Constructor and Description |
---|
ProjectRegistry(ProjectHandle projectHandle) |
Modifier and Type | Method and Description |
---|---|
FileHandleRegistry |
add(FileHandle fileHandle) |
<A extends Accessor<A>> |
add(Registration<A> registration) |
FileHandleRegistry |
get(FileHandle fileHandle) |
FileHandleRegistry |
getOrCreate(FileHandle fileHandle) |
ProjectHandle |
getProject() |
<A extends Accessor<A>> |
getRegistration(FileHandle fileHandle,
A accessor)
Return the registration applicable to accessor in the context of fileHandle
|
<A extends Accessor<A>> |
getRegistrations(FileHandle fileHandle,
Accessor.Namespace<A> namespace)
Return all registrations applicable to accessorClass in the context of fileHandle, typically
to treat all such registrations as a look-up path.
|
<A extends Accessor<A>> |
getResolvedURI(FileHandle fileHandle,
A accessor)
Return the URI that resolves accessor within the context of fileHandle
after resolution against the URI of the project.
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
Return the ResourceSet that contains the model registry.
|
<A extends Accessor<A>> |
getURI(FileHandle fileHandle,
A accessor)
Return the URI that resolves accessor within the context of fileHandle.
|
boolean |
loadModel() |
<A extends Accessor<A>> |
remove(Registration<A> registration) |
org.eclipse.emf.common.util.URI |
resolveURI(org.eclipse.emf.common.util.URI uri)
Return the URI after resolution against the project file handle URI.
|
boolean |
saveModel() |
java.lang.String |
toString() |
public static final java.lang.String DEFAULT_SERIALISATION_NAME
public ProjectRegistry(ProjectHandle projectHandle)
public FileHandleRegistry add(FileHandle fileHandle)
public <A extends Accessor<A>> Registration<A> add(Registration<A> registration)
public FileHandleRegistry get(FileHandle fileHandle)
public FileHandleRegistry getOrCreate(FileHandle fileHandle)
public ProjectHandle getProject()
public <A extends Accessor<A>> Registration<A> getRegistration(FileHandle fileHandle, A accessor)
A
- kind of accessorfileHandle
- defining look-up contextaccessor
- name of accessorpublic <A extends Accessor<A>> java.util.Collection<Registration<A>> getRegistrations(FileHandle fileHandle, Accessor.Namespace<A> namespace)
fileHandle
- defining look-up contextnamespace
- name of accessorpublic <A extends Accessor<A>> org.eclipse.emf.common.util.URI getResolvedURI(FileHandle fileHandle, A accessor)
fileHandle
- defining look-up contextaccessor
- name and kind of accessorpublic org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
public <A extends Accessor<A>> org.eclipse.emf.common.util.URI getURI(FileHandle fileHandle, A accessor)
fileHandle
- defining look-up contextaccessor
- name and kind of accessorpublic boolean loadModel()
public <A extends Accessor<A>> Registration<A> remove(Registration<A> registration)
public org.eclipse.emf.common.util.URI resolveURI(org.eclipse.emf.common.util.URI uri)
uri
- uri to resolvepublic boolean saveModel()
public java.lang.String toString()
toString
in class java.lang.Object