Class PluginValidationRuleValidateRetVal.Builder
java.lang.Object
de.xima.fc.interfaces.plugin.retval.validation.PluginValidationRuleValidateRetVal.Builder
- Enclosing class:
PluginValidationRuleValidateRetVal
A builder for plugin validation rule validation return values.
- Since:
- 8.5.4
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new plugin validation rule validation return value instance with the current state of this builder.Sets the validation message to display, in case the validated value is notvalidaccording to the validation logic.valid(boolean valid) Sets whether the validated value is valid according to the validation logic.
-
Method Details
-
build
Creates a new plugin validation rule validation return value instance with the current state of this builder.- Returns:
- A new plugin validation rule validation return value instance.
-
message
Sets the validation message to display, in case the validated value is notvalidaccording to the validation logic. Has no effect if the validated value is valid. When null or empty, uses the default validation message, either from the validation rule or as overwritten in the form designer.- Parameters:
message- The validation message to display, ornullif no message should be displayed.- Returns:
- This builder for chaining.
-
valid
Sets whether the validated value is valid according to the validation logic. Defaults to false.- Parameters:
valid- True if the value is valid, false otherwise.- Returns:
- This builder instance for chaining.
-