Uses of Interface
com.vaadin.flow.data.binder.ValidationResult
-
Packages that use ValidationResult Package Description com.vaadin.flow.component.shared com.vaadin.flow.data.binder com.vaadin.flow.data.validator -
-
Uses of ValidationResult in com.vaadin.flow.component.shared
Methods in com.vaadin.flow.component.shared that return ValidationResult Modifier and Type Method Description static <V extends Comparable<V>>
ValidationResultValidationUtil. checkGreaterThanMax(V value, V maxValue)
Checks if the value being set to the component is greater than the max value definedstatic <V> ValidationResult
ValidationUtil. checkRequired(boolean required, V value, V emptyValue)
Checks the required validation constraintstatic <V extends Comparable<V>>
ValidationResultValidationUtil. checkSmallerThanMin(V value, V minValue)
Checks if the value being set to the component is smaller than the max value defined -
Uses of ValidationResult in com.vaadin.flow.data.binder
Classes in com.vaadin.flow.data.binder that implement ValidationResult Modifier and Type Class Description static class
ValidationResult.SimpleValidationResult
Simple validation result implementation.Methods in com.vaadin.flow.data.binder that return ValidationResult Modifier and Type Method Description ValidationResult
Validator. 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
ValidationResult. error(String errorMessage)
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 ValidationResult Modifier and Type Method Description List<ValidationResult>
BinderValidationStatus. getBeanValidationErrors()
Gets the failed bean level validation results.List<ValidationResult>
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
.List<ValidationResult>
BinderValidationStatus. getBeanValidationResults()
Gets the bean level validation results.Optional<ValidationResult>
BindingValidationStatus. getResult()
Gets the validation result if status is eitherBindingValidationStatus.Status.OK
orBindingValidationStatus.Status.ERROR
or an empty optional if status isBindingValidationStatus.Status.UNRESOLVED
.List<ValidationResult>
BinderValidationStatus. getValidationErrors()
Gets both field and bean level validation errors.List<ValidationResult>
ValidationException. getValidationErrors()
Gets both field and bean level validation errors.List<ValidationResult>
BindingValidationStatus. getValidationResults()
Gets all the validation results related to this binding validation status.Methods in com.vaadin.flow.data.binder with parameters of type ValidationResult Modifier and Type Method Description protected 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 ValidationResult Modifier and Type Method Description ValidationResult
BeanValidator. apply(Object value, ValueContext context)
Validates the given value as if it were the value of the bean property configured for this validator.ValidationResult
RangeValidator. apply(T value, ValueContext context)
ReturnsResult.ok
if the value is within the specified bounds,Result.error
otherwise.ValidationResult
RegexpValidator. apply(String value, ValueContext context)
ValidationResult
StringLengthValidator. apply(String value, ValueContext context)
protected ValidationResult
AbstractValidator. toResult(T value, boolean isValid)
A helper method for creating aResult
from a value and a validity flag.
-