Class PluginValidationRuleValidateRetVal
java.lang.Object
de.xima.fc.interfaces.plugin.retval.validation.PluginValidationRuleValidateRetVal
- All Implemented Interfaces:
Serializable
Return value for the validate method of validation rule plugins.
- Since:
- 8.5.4
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for plugin validation rule validation return values. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder for plugin validation rule validation return values.message()Gets the validation message to display, in case the validated value is notvalidaccording to the validation logic.ofValid()Gets plugin validation rule return value indicating that the validated value is valid according to the validation logic, and does not contain any other optional data.booleanvalid()Gets whether the validated value is valid according to the validation logic.
-
Method Details
-
message
Gets 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.- Returns:
- The validation message to display, or
nullif no message should be displayed.
-
valid
public boolean valid()Gets whether the validated value is valid according to the validation logic.- Returns:
- True if the value is valid, false otherwise.
-
builder
Creates a new builder for plugin validation rule validation return values.- Returns:
- A new builder instance.
-
ofValid
Gets plugin validation rule return value indicating that the validated value is valid according to the validation logic, and does not contain any other optional data.- Returns:
- A form datatype validation logic return value indicating a valid value.
-