KeyEvaluator¶
-
public class
KeyEvaluator
¶ KeyEvaluator evaluates the value of a key in the context of a task which is used to execute filters and actions.
Constructors¶
KeyEvaluator¶
-
public
KeyEvaluator
(TaskContext taskContext)¶ Class constructor.
Parameters: - taskContext – the task context, not null
Methods¶
evaluateTemplateString¶
-
public String
evaluateTemplateString
(String template)¶ Evaluates the given template by replacing the keys with their manipulated values.
Parameters: - template – the template to be evaluated
Throws: - TaskHandlerException – if there was problem while manipulating the value
Returns: the evaluated template
getManipulatedValue¶
-
public Object
getManipulatedValue
(KeyInformation keyInformation)¶ Retrieves the value for the given key and applies all the passed manipulations.
Parameters: - keyInformation – the key information, not null
Throws: - TaskHandlerException – if there were problems while retrieving the value
Returns: the manipulated value
getValue¶
-
public Object
getValue
(KeyInformation keyInformation)¶ Returns value for the given key.
Parameters: - keyInformation – the key information, not null
Throws: - TaskHandlerException – if there were problems while retrieving the value
Returns: the value for the given key