Class AbstractIDExtractor

    • Constructor Detail

      • AbstractIDExtractor

        public AbstractIDExtractor()
    • 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)
        Performs checks on the object.
        Parameters:
        obj - the object to check
        Returns:
        null if successful, otherwise error message
      • doExtractID

        protected abstract String doExtractID​(Object obj)
        Extracts the ID from a object.
        Parameters:
        obj - the object to process
        Returns:
        the extracted ID, null if failed to extract or not handled
      • extractID

        public String extractID​(Object obj)
        Extracts the ID from a object.
        Specified by:
        extractID in interface IDExtractor
        Parameters:
        obj - the object to process
        Returns:
        the extracted ID, null if failed to extract or not handled