Uses of Interface
com.vaadin.flow.data.binder.ValidationResult
Packages that use ValidationResult
Package
Description
-
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 givenerrorMessage
anderrorLevel
.static ValidationResult
Creates the validation result which represent an error with the givenerrorMessage
.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 byfield level validation errors
.BinderValidationStatus.getBeanValidationResults()
Gets the bean level validation results.BindingValidationStatus.getResult()
Gets the validation result if status is eitherBindingValidationStatus.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 thefield
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) ReturnsResult.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 aResult
from a value and a validity flag.
ValidationUtil.validateMaxConstraint(String, Comparable, Comparable)
instead.