Class CTValidatorRunner


  • public abstract class CTValidatorRunner
    extends com.im.commons.progress.BackgroundRunner
    Validator for chemical terms expressions.
    Author:
    Petr Hamernik
    • Constructor Detail

      • CTValidatorRunner

        public CTValidatorRunner​(int jchemTableType,
                                 com.im.df.api.capabilities.StructureEntityCapability entity)
    • Method Detail

      • phase1InRequestProcessor

        public void phase1InRequestProcessor()
        Specified by:
        phase1InRequestProcessor in class com.im.commons.progress.BackgroundRunner
      • restartWithNewPrarams

        public void restartWithNewPrarams​(String formulaToValidate,
                                          Class<?> expectedFormulaType)
      • getExecutorService

        protected ScheduledExecutorService getExecutorService()
        Overrides:
        getExecutorService in class com.im.commons.progress.BackgroundRunner
      • setResult

        protected abstract void setResult​(String errorMessage)
        Called to update the status of validation. If the validation was successful, the errorMessage will be null. One of the error messages can also say that validation is running on background.
        Parameters:
        errorMessage - the validation error or null