Package | Description |
---|---|
com.vaadin.flow.data.binder |
Modifier and Type | Method and Description |
---|---|
static ErrorLevel |
ErrorLevel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorLevel[] |
ErrorLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Optional<ErrorLevel> |
ValidationResult.getErrorLevel()
Returns optional error level for this validation result.
|
Optional<ErrorLevel> |
ValidationResult.SimpleValidationResult.getErrorLevel() |
Modifier and Type | Method and Description |
---|---|
static ValidationResult |
ValidationResult.create(String errorMessage,
ErrorLevel errorLevel)
Creates the validation result with the given
errorMessage and
errorLevel . |
static <T> Validator<T> |
Validator.from(SerializablePredicate<T> guard,
ErrorMessageProvider errorMessageProvider,
ErrorLevel errorLevel)
Builds a validator out of a conditional function and an error message
provider.
|
static <T> Validator<T> |
Validator.from(SerializablePredicate<T> guard,
String errorMessage,
ErrorLevel errorLevel)
Builds a validator out of a conditional function and an error message.
|
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidator(SerializablePredicate<? super TARGET> predicate,
ErrorMessageProvider errorMessageProvider,
ErrorLevel errorLevel)
A convenience method to add a validator to this binding using the
Validator.from(SerializablePredicate, ErrorMessageProvider, ErrorLevel)
factory method. |
default Binder.BindingBuilder<BEAN,TARGET> |
Binder.BindingBuilder.withValidator(SerializablePredicate<? super TARGET> predicate,
String message,
ErrorLevel errorLevel)
A convenience method to add a validator to this binding using the
Validator.from(SerializablePredicate, String, ErrorLevel)
factory method. |
Copyright © 2019. All rights reserved.