Package dev.dokimos.core.evaluators
Class RegexEvaluator.Builder
java.lang.Object
dev.dokimos.core.evaluators.RegexEvaluator.Builder
- Enclosing class:
RegexEvaluator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the evaluator.evaluationParams(List<EvalTestCaseParam> params) Sets which test case parameters to evaluate.ignoreCase(boolean ignoreCase) Sets whether to ignore case when matching.Sets the evaluator name.Sets the regular expression pattern.threshold(double threshold) Sets the minimum score threshold for success.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the evaluator name.- Parameters:
name- the evaluator name- Returns:
- this builder
-
pattern
Sets the regular expression pattern.- Parameters:
pattern- the regex pattern- Returns:
- this builder
-
ignoreCase
Sets whether to ignore case when matching.- Parameters:
ignoreCase- true to ignore case- Returns:
- this builder
-
evaluationParams
Sets which test case parameters to evaluate.- Parameters:
params- the parameters to evaluate- Returns:
- this builder
-
threshold
Sets the minimum score threshold for success.- Parameters:
threshold- the threshold value- Returns:
- this builder
-
build
Builds the evaluator.- Returns:
- a new regex evaluator
-