Class AbstractIDUpdater

    • Constructor Detail

      • AbstractIDUpdater

        public AbstractIDUpdater()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(Object obj,
                               String id)
        Performs checks on the object.
        Parameters:
        obj - the object to check
        id - the new ID
        Returns:
        null if successful, otherwise error message
      • doUpdateID

        protected abstract String doUpdateID​(Object obj,
                                             String id)
        Updates the ID of the object.
        Parameters:
        obj - the object to process
        id - the new ID
        Returns:
        null if successful, otherwise error message
      • updateID

        public String updateID​(Object obj,
                               String id)
        Updates the ID of the object.
        Specified by:
        updateID in interface IDUpdater
        Parameters:
        obj - the object to process
        id - the new ID
        Returns:
        null if successful, otherwise error message