Package step.plugins.compare
Class ImageCompareFunctionHandler
- java.lang.Object
-
- step.functions.handler.AbstractFunctionHandler<javax.json.JsonObject,javax.json.JsonObject>
-
- step.functions.handler.JsonBasedFunctionHandler
-
- step.plugins.compare.AbstractCompareFunctionHandler
-
- step.plugins.compare.ImageCompareFunctionHandler
-
public class ImageCompareFunctionHandler extends AbstractCompareFunctionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPARE_ACTUAL_FILEstatic StringCOMPARE_EXPECTED_FILEstatic StringCOMPARE_KW_NAMEstatic StringCOMPARE_SCENARIO_DIR_FILEstatic StringCOMPARE_WORKING_DIR_DEFAULTstatic StringCOMPARE_WORKING_DIR_PROPstatic StringDEFAULT_LANGUAGE_OPTIONstatic StringSUPPORTED_LANGUAGES_OPTION-
Fields inherited from class step.plugins.compare.AbstractCompareFunctionHandler
ACTUAL, ACTUAL_FILE_ON_AGENT, compareScenarioServices, DEFAULT_LINE_HEIGHT, EXPECTED, EXPECTED_FILE_ON_AGENT, LINE_HEIGHT_PROP
-
-
Constructor Summary
Constructors Constructor Description ImageCompareFunctionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcompareInitialize()StringgetActualFileName()protected AbstractDocumentToImageServicegetDocToImageService()StringgetExpectedFileName()protected AbstractExtractionServicegetExtractionService(Map<String,String> props)protected StringgetKeywordName()protected StringgetScenarioDirProperty()protected StringgetWorkingDirPath()-
Methods inherited from class step.plugins.compare.AbstractCompareFunctionHandler
getWorkingDir, handle, initialize, readAttachment
-
Methods inherited from class step.functions.handler.JsonBasedFunctionHandler
getInputPayloadClass, getOutputPayloadClass
-
Methods inherited from class step.functions.handler.AbstractFunctionHandler
delegate, delegate, getCurrentContext, getCurrentContext, getFileVersionId, getFunctionHandlerFactory, getProperties, getTokenReservationSession, getTokenSession, mergeAllProperties, pushLocalApplicationContext, pushLocalApplicationContext, pushLocalFolderApplicationContext, pushLocalFolderApplicationContext, pushRemoteApplicationContext, pushRemoteApplicationContext, retrieveFileVersion, runInContext, runInContext, setApplicationContextBuilder, setFileManagerClient, setFunctionHandlerFactory, setProperties, setTokenReservationSession, setTokenSession
-
-
-
-
Field Detail
-
COMPARE_KW_NAME
public static final String COMPARE_KW_NAME
- See Also:
- Constant Field Values
-
COMPARE_SCENARIO_DIR_FILE
public static final String COMPARE_SCENARIO_DIR_FILE
- See Also:
- Constant Field Values
-
COMPARE_WORKING_DIR_PROP
public static final String COMPARE_WORKING_DIR_PROP
- See Also:
- Constant Field Values
-
COMPARE_WORKING_DIR_DEFAULT
public static final String COMPARE_WORKING_DIR_DEFAULT
- See Also:
- Constant Field Values
-
COMPARE_EXPECTED_FILE
public static final String COMPARE_EXPECTED_FILE
- See Also:
- Constant Field Values
-
COMPARE_ACTUAL_FILE
public static final String COMPARE_ACTUAL_FILE
- See Also:
- Constant Field Values
-
SUPPORTED_LANGUAGES_OPTION
public static final String SUPPORTED_LANGUAGES_OPTION
- See Also:
- Constant Field Values
-
DEFAULT_LANGUAGE_OPTION
public static final String DEFAULT_LANGUAGE_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getScenarioDirProperty
protected String getScenarioDirProperty()
- Specified by:
getScenarioDirPropertyin classAbstractCompareFunctionHandler
-
getKeywordName
protected String getKeywordName()
- Specified by:
getKeywordNamein classAbstractCompareFunctionHandler
-
getDocToImageService
protected AbstractDocumentToImageService getDocToImageService()
- Specified by:
getDocToImageServicein classAbstractCompareFunctionHandler
-
getExtractionService
protected AbstractExtractionService getExtractionService(Map<String,String> props)
- Specified by:
getExtractionServicein classAbstractCompareFunctionHandler
-
getActualFileName
public String getActualFileName()
- Specified by:
getActualFileNamein classAbstractCompareFunctionHandler
-
getExpectedFileName
public String getExpectedFileName()
- Specified by:
getExpectedFileNamein classAbstractCompareFunctionHandler
-
getWorkingDirPath
protected String getWorkingDirPath()
- Specified by:
getWorkingDirPathin classAbstractCompareFunctionHandler
-
compareInitialize
protected void compareInitialize()
- Specified by:
compareInitializein classAbstractCompareFunctionHandler
-
-