Uses of Interface
com.vaadin.flow.data.binder.ValidationResult
-
Uses of ValidationResult in com.vaadin.flow.data.binder
Classes in com.vaadin.flow.data.binder that implement ValidationResultModifier and TypeClassDescriptionstatic class
Simple validation result implementation.
Methods in com.vaadin.flow.data.binder that return ValidationResultModifier and TypeMethodDescriptionValidator.apply
(T value, ValueContext context) Validates the given value.
static ValidationResult
ValidationResult.create
(String errorMessage, ErrorLevel errorLevel) Creates the validation result with the given
errorMessage
anderrorLevel
.static ValidationResult
Creates the validation result which represent an error with the given
errorMessage
.static ValidationResult
ValidationResult.ok()
Returns a successful result.
Methods in com.vaadin.flow.data.binder that return types with arguments of type ValidationResultModifier and TypeMethodDescriptionBinderValidationStatus.getBeanValidationErrors()
Gets the failed bean level validation results.
ValidationException.getBeanValidationErrors()
Returns a list of the bean level validation errors which caused the exception, or an empty list if the exception was caused by
field level validation errors
.BinderValidationStatus.getBeanValidationResults()
Gets the bean level validation results.
BindingValidationStatus.getResult()
Gets the validation result if status is either
BindingValidationStatus.Status.OK
orBindingValidationStatus.Status.ERROR
or an empty optional if status isBindingValidationStatus.Status.UNRESOLVED
.BinderValidationStatus.getValidationErrors()
Gets both field and bean level validation errors.
ValidationException.getValidationErrors()
Gets both field and bean level validation errors.
BindingValidationStatus.getValidationResults()
Gets all the validation results related to this binding validation status.
Methods in com.vaadin.flow.data.binder with parameters of type ValidationResultModifier and TypeMethodDescriptionprotected void
Binder.handleError
(HasValue<?, ?> field, ValidationResult result) Handles a validation error emitted when trying to write the value of the given field.
void
BinderValidationErrorHandler.handleError
(HasValue<?, ?> field, ValidationResult result) Handles a validation error emitted when trying to write the value of the given field.
void
DefaultBinderValidationErrorHandler.handleError
(HasValue<?, ?> field, ValidationResult result) Handles a validation error emitted when trying to write the value of the given field.
protected void
DefaultBinderValidationErrorHandler.setErrorTheme
(HasValue<?, ?> field, ValidationResult result) Sets error theme for the
field
based onresult
. -
Uses of ValidationResult in com.vaadin.flow.data.validator
Methods in com.vaadin.flow.data.validator that return ValidationResultModifier and TypeMethodDescriptionBeanValidator.apply
(Object value, ValueContext context) Validates the given value as if it were the value of the bean property configured for this validator.
RangeValidator.apply
(T value, ValueContext context) Returns
Result.ok
if the value is within the specified bounds,Result.error
otherwise.RegexpValidator.apply
(String value, ValueContext context) StringLengthValidator.apply
(String value, ValueContext context) protected ValidationResult
A helper method for creating a
Result
from a value and a validity flag.
ValidationUtil.validateMaxConstraint(String, Comparable, Comparable)
instead.