Interface ValidatorBuilder
public interface ValidatorBuilder
Builder interface for creating Validator instances. This builder provides methods for configuring
workflow validators using either script-based or alias-based validator definitions.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaliasValidator(String value) Creates an alias-based validator with the specified value and no arguments.voidaliasValidator(String value, Map<String, String> args) Creates an alias-based validator with the specified value and arguments.voidCreates a validator with the specified value and script.voidscriptValidator(String value, String script) Creates a script-based validator with the specified value and script.
-
Method Details
-
scriptValidator
Creates a script-based validator with the specified value and script.- Parameters:
value- the validator value/identifierscript- the script to execute for validation
-
rawValidator
Creates a validator with the specified value and script.- Parameters:
type- the type of validator to execute for validationvalue- the validator value/identifier
-
aliasValidator
Creates an alias-based validator with the specified value and arguments.- Parameters:
value- the validator value/identifierargs- the arguments for the validator
-
aliasValidator
Creates an alias-based validator with the specified value and no arguments.- Parameters:
value- the validator value/identifier
-