|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.modelregistry.model.ProjectRegistry
public class ProjectRegistry
A ProjectRegistry instance forms the root of a model registry. It provides the in-memory form of the org.eclipse.ocl.modelregistry model read from and updated in the project .settings folder. The ProjectRegistry contains a FileHandleRegistry for each file handle for which models are registered. The FileHandleRegistry in turn contains an AccessorRegistry for each Accessor class and the AccessorRegistry contains the model Registrations.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_SERIALISATION_NAME
|
Constructor Summary | |
---|---|
ProjectRegistry(ProjectHandle projectHandle)
|
Method Summary | ||
---|---|---|
FileHandleRegistry |
add(FileHandle fileHandle)
|
|
|
add(Registration<A> registration)
|
|
FileHandleRegistry |
get(FileHandle fileHandle)
|
|
FileHandleRegistry |
getOrCreate(FileHandle fileHandle)
|
|
ProjectHandle |
getProject()
|
|
|
getRegistration(FileHandle fileHandle,
A accessor)
Return the registration applicable to accessor in the context of fileHandle |
|
|
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. |
|
|
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. |
|
|
getURI(FileHandle fileHandle,
A accessor)
Return the URI that resolves accessor within the context of fileHandle. |
|
boolean |
loadModel()
|
|
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_SERIALISATION_NAME
Constructor Detail |
---|
public ProjectRegistry(ProjectHandle projectHandle)
Method Detail |
---|
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 accessor
public <A extends Accessor<A>> java.util.Collection<Registration<A>> getRegistrations(FileHandle fileHandle, Accessor.Namespace<A> namespace)
fileHandle
- defining look-up contextnamespace
- name of accessor
public <A extends Accessor<A>> org.eclipse.emf.common.util.URI getResolvedURI(FileHandle fileHandle, A accessor)
fileHandle
- defining look-up contextaccessor
- name and kind of accessor
public 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 accessor
public 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 resolve
public boolean saveModel()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |