Class ModuleFacetBase

    • Constructor Detail

      • ModuleFacetBase

        protected ModuleFacetBase​(@NotNull
                                  String facetType)
    • Method Detail

      • getFacetPresentation

        public String getFacetPresentation()
      • getModule

        @NotNull
        public SModule getModule()
        Description copied from interface: SModuleFacet
        The owning module TODO @deprecated facet is supposed to be a simple primitive flags storage. To extend module functionality one has two more ways: TODO extend from one of the SModule subclasses or implement a custom aspect
        Specified by:
        getModule in interface SModuleFacet
      • setModule

        public boolean setModule​(SModule module)
        FIXME javadoc @return and do we need both setModule + attach? Returns null if the facet cannot work within the passed module.
      • checkNotRegistered

        protected void checkNotRegistered()
      • isRegistered

        public boolean isRegistered()
      • attach

        public void attach()
      • dispose

        public void dispose()
      • save

        public void save​(Memento memento)
        Description copied from interface: SModuleFacet
        Gives the module facet the opportunity to persist into the supplied memento whatever configuration information may be needed to restore the models in the future.
        Specified by:
        save in interface SModuleFacet
      • load

        public void load​(Memento memento)
        Description copied from interface: SModuleFacet
        Allows the model root to read its previously saved configuration information
        Specified by:
        load in interface SModuleFacet