Interface SRepository

    • Method Detail

      • 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.
      • saveAll

        void saveAll()
      • addRepositoryListener

        void addRepositoryListener​(@NotNull
                                   SRepositoryListener listener)
        Register a listener for the repository. If a listener is SRepositoryAttachListener, it gets additionally notified and can perform own initialization (e.g. handle modules already in the repository)