Uses of Interface
com.vaadin.flow.data.binder.ValidationResult
-
Packages that use ValidationResult Package Description com.vaadin.flow.data.binder com.vaadin.flow.data.validator -
-
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 classValidationResult.SimpleValidationResultSimple validation result implementation.Methods in com.vaadin.flow.data.binder that return ValidationResult Modifier and Type Method Description ValidationResultValidator. apply(T value, ValueContext context)Validates the given value.static ValidationResultValidationResult. create(String errorMessage, ErrorLevel errorLevel)Creates the validation result with the givenerrorMessageanderrorLevel.static ValidationResultValidationResult. error(String errorMessage)Creates 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 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.OKorBindingValidationStatus.Status.ERRORor 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 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 ValidationResult Modifier and Type Method Description ValidationResultBeanValidator. apply(Object value, ValueContext context)Validates the given value as if it were the value of the bean property configured for this validator.ValidationResultRangeValidator. apply(T value, ValueContext context)ReturnsResult.okif the value is within the specified bounds,Result.errorotherwise.ValidationResultRegexpValidator. apply(String value, ValueContext context)ValidationResultStringLengthValidator. apply(String value, ValueContext context)protected ValidationResultAbstractValidator. toResult(T value, boolean isValid)A helper method for creating aResultfrom a value and a validity flag.
-