Package com.im.df.util
Class CTValidatorRunner
- java.lang.Object
-
- com.im.commons.progress.BackgroundRunner
-
- com.im.df.util.CTValidatorRunner
-
public abstract class CTValidatorRunner extends com.im.commons.progress.BackgroundRunnerValidator for chemical terms expressions.- Author:
- Petr Hamernik
-
-
Constructor Summary
Constructors Constructor Description CTValidatorRunner(int jchemTableType, com.im.df.api.capabilities.StructureEntityCapability entity)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ChemicalTermsExpressionUtilsgetCtUtils()protected ScheduledExecutorServicegetExecutorService()voidphase1InRequestProcessor()voidrestartWithNewPrarams(String formulaToValidate, Class<?> expectedFormulaType)protected abstract voidsetResult(String errorMessage)Called to update the status of validation.
-
-
-
Method Detail
-
phase1InRequestProcessor
public void phase1InRequestProcessor()
- Specified by:
phase1InRequestProcessorin classcom.im.commons.progress.BackgroundRunner
-
getCtUtils
public ChemicalTermsExpressionUtils getCtUtils()
-
restartWithNewPrarams
public void restartWithNewPrarams(String formulaToValidate, Class<?> expectedFormulaType)
-
getExecutorService
protected ScheduledExecutorService getExecutorService()
- Overrides:
getExecutorServicein classcom.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
-
-