Class PluginValidationRuleValidateRetVal

  • All Implemented Interfaces:
    Serializable

    public final class PluginValidationRuleValidateRetVal
    extends Object
    implements Serializable
    Return value for the validate method of validation rule plugins.
    Since:
    8.5.4
    See Also:
    Serialized Form
    • Method Detail

      • message

        public String message()
        Gets the validation message to display, in case the validated value is not valid according 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 null if 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.
      • ofValid

        public static PluginValidationRuleValidateRetVal 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.