Package org.jetbrains.mps.openapi.module
Interface SRepository
-
public interface SRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addRepositoryListener(SRepositoryListener listener)
Register a listener for the repository.ModelAccess
getModelAccess()
SModule
getModule(SModuleId moduleId)
Iterable<SModule>
getModules()
Returns an unmodifiable collection of modules.SRepository
getParent()
Deprecated.RepositoryAccess
getRepositoryAccess()
Deprecated.void
removeRepositoryListener(SRepositoryListener listener)
Remove a listener.void
saveAll()
-
-
-
Method Detail
-
getParent
@Deprecated SRepository getParent()
Deprecated.
-
getModule
@Nullable SModule getModule(@NotNull SModuleId moduleId)
- Returns:
- the module which id is equal to the given module id.
A repository is able to have only one module for a given module id.
null
is returned iff there is no such module in the repository
-
getModelAccess
@NotNull ModelAccess getModelAccess()
- Returns:
- a special class which yields a control to the objects which comprise the repository. These are namely modules, models, model roots, nodes.
-
getRepositoryAccess
@Deprecated RepositoryAccess getRepositoryAccess()
Deprecated.
-
saveAll
void saveAll()
-
addRepositoryListener
void addRepositoryListener(@NotNull SRepositoryListener listener)
Register a listener for the repository. If a listener isSRepositoryAttachListener
, it gets additionally notified and can perform own initialization (e.g. handle modules already in the repository)
-
removeRepositoryListener
void removeRepositoryListener(@NotNull SRepositoryListener listener)
Remove a listener. If a listener isSRepositoryAttachListener
, it is notified of detach event.
-
-