com.vaadin.flow.data.binder.
Class ValidationResult.SimpleValidationResult
- java.lang.Object
-
- com.vaadin.flow.data.binder.ValidationResult.SimpleValidationResult
-
All Implemented Interfaces:
Enclosing interface:
public static class ValidationResult.SimpleValidationResult extends Object implements ValidationResult
Simple validation result implementation.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.flow.data.binder.ValidationResult
ValidationResult.SimpleValidationResult
-
-
Method Summary
All Methods Modifier and Type Method and Description Optional<ErrorLevel>
getErrorLevel()
Returns optional error level for this validation result.
String
getErrorMessage()
Returns the result message.
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.data.binder.ValidationResult
create, error, isError, ok
-
-
-
-
Method Detail
-
getErrorMessage
public String getErrorMessage()
Description copied from interface:
ValidationResult
Returns the result message.
Throws an
IllegalStateException
if the result represents success.Specified by:
getErrorMessage
in interfaceValidationResult
Returns:
the error message
-
getErrorLevel
public Optional<ErrorLevel> getErrorLevel()
Description copied from interface:
ValidationResult
Returns optional error level for this validation result. Error level is not present for successful validation results.
Note: By default
ErrorLevel.INFO
andErrorLevel.WARNING
are not considered to be blocking the validation and conversion chain.Specified by:
getErrorLevel
in interfaceValidationResult
Returns:
optional error level; error level is present for validation results that have not passed validation
See Also:
-
-