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.BackgroundRunner
Validator 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 ChemicalTermsExpressionUtils
getCtUtils()
protected ScheduledExecutorService
getExecutorService()
void
phase1InRequestProcessor()
void
restartWithNewPrarams(String formulaToValidate, Class<?> expectedFormulaType)
protected abstract void
setResult(String errorMessage)
Called to update the status of validation.
-
-
-
Method Detail
-
phase1InRequestProcessor
public void phase1InRequestProcessor()
- Specified by:
phase1InRequestProcessor
in classcom.im.commons.progress.BackgroundRunner
-
getCtUtils
public ChemicalTermsExpressionUtils getCtUtils()
-
restartWithNewPrarams
public void restartWithNewPrarams(String formulaToValidate, Class<?> expectedFormulaType)
-
getExecutorService
protected ScheduledExecutorService getExecutorService()
- Overrides:
getExecutorService
in 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
-
-