Package com.vaadin.data
Class ValidationResult.SimpleValidationResult
- java.lang.Object
-
- com.vaadin.data.ValidationResult.SimpleValidationResult
-
- All Implemented Interfaces:
ValidationResult,java.io.Serializable
- Enclosing interface:
- ValidationResult
public static class ValidationResult.SimpleValidationResult extends java.lang.Object implements ValidationResult
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.data.ValidationResult
ValidationResult.SimpleValidationResult
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<com.vaadin.shared.ui.ErrorLevel>getErrorLevel()Returns optional error level for this validation result.java.lang.StringgetErrorMessage()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.data.ValidationResult
isError
-
-
-
-
Method Detail
-
getErrorMessage
public java.lang.String getErrorMessage()
Description copied from interface:ValidationResultReturns the result message.Throws an
IllegalStateExceptionif the result represents success.- Specified by:
getErrorMessagein interfaceValidationResult- Returns:
- the error message
-
getErrorLevel
public java.util.Optional<com.vaadin.shared.ui.ErrorLevel> getErrorLevel()
Description copied from interface:ValidationResultReturns optional error level for this validation result. Error level is not present for successful validation results.Note: By default
ErrorLevel.INFOandErrorLevel.WARNINGare not considered to be blocking the validation and conversion chain.- Specified by:
getErrorLevelin interfaceValidationResult- Returns:
- optional error level; error level is present for validation results that have not passed validation
- See Also:
ValidationResult.isError()
-
-