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 classSimple 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 ValidationResultValidationResult.create(String errorMessage, ErrorLevel errorLevel) Creates the validation result with the givenerrorMessageanderrorLevel.static ValidationResultCreates the validation result which represent an error with the givenerrorMessage.static ValidationResultValidationResult.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.OKorBindingValidationStatus.Status.ERRORor 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 voidBinder.handleError(HasValue<?, ?> field, ValidationResult result) Handles a validation error emitted when trying to write the value of the given field.voidBinderValidationErrorHandler.handleError(HasValue<?, ?> field, ValidationResult result) Handles a validation error emitted when trying to write the value of the given field.voidDefaultBinderValidationErrorHandler.handleError(HasValue<?, ?> field, ValidationResult result) Handles a validation error emitted when trying to write the value of the given field.protected voidDefaultBinderValidationErrorHandler.setErrorTheme(HasValue<?, ?> field, ValidationResult result) Sets error theme for thefieldbased 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.okif the value is within the specified bounds,Result.errorotherwise.RegexpValidator.apply(String value, ValueContext context) StringLengthValidator.apply(String value, ValueContext context) protected ValidationResultA helper method for creating aResultfrom a value and a validity flag.
ValidationUtil.validateMaxConstraint(String, Comparable, Comparable)instead.