com.im.df/1 14.10.20.0 7

com.im.df.util
Class CTValidatorRunner

java.lang.Object
  extended by com.im.commons.progress.BackgroundRunner
      extended by com.im.df.util.CTValidatorRunner

public abstract class CTValidatorRunner
extends BackgroundRunner

Validator for chemical terms expressions.


Constructor Summary
CTValidatorRunner(int jchemTableType)
           
 
Method Summary
 ChemicalTermsExpressionUtils getCtUtils()
           
protected  RequestProcessor getRequestProcessor()
           
 void phase1InRequestProcessor()
           
 void phase2InAWT()
           
 void restartWithNewPrarams(String formulaToValidate, Class<?> expectedFormulaType)
           
protected abstract  void setResult(String errorMessage)
          Called to update the status of validation.
 
Methods inherited from class com.im.commons.progress.BackgroundRunner
createTask, failTask, getCreateLock, getDelay, getTask, interrupt, phase1Cancelled, phase1Exception, phase1Finally, phase1FinallyInternal, processTheTask, restart, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CTValidatorRunner

public CTValidatorRunner(int jchemTableType)
Method Detail

phase1InRequestProcessor

public void phase1InRequestProcessor()
Specified by:
phase1InRequestProcessor in class BackgroundRunner

phase2InAWT

public void phase2InAWT()
Overrides:
phase2InAWT in class BackgroundRunner

getCtUtils

public ChemicalTermsExpressionUtils getCtUtils()

restartWithNewPrarams

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

getRequestProcessor

protected RequestProcessor getRequestProcessor()
Overrides:
getRequestProcessor in class 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

com.im.df/1 14.10.20.0 7