Takes a Control state object and returns true
if the state passes validation. If
validation fails, a ValidationResult
object is returned instead.
Describes a validation failure.
Usage:
A reason code should be provided that uniquely describes the kind of validation failure. A reason code is useful for context-specific rendering and other business function. It is not mandatory as for some simple cases it may be duplicative to provide both a reason code and a single rendering of that reason code.
A rendered reason for situations where the rendered form is not context-sensitive and can be conveniently provided when the ValidationFailure is instantiated.
A code representing what validation failed.
Usage:
A rendered prompt fragment that can be directly included in the Response
.
Usage:
Helper to evaluate a prop that accepts one or more StateValidationFunction
either a single StateValidationFunction
The control's state object.
ControlInput.
State validation function