Class Validator.Result
java.lang.Object
org.jdesktop.beansbinding.Validator.Result
An instance of
Result
is returned from a Validator's
validate
method to indicate an invalid value.
A Result
can contain an error code and/or description.
These values are for your own reporting purposes and are not used
internally.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a description of the validation result, which may benull
.Returns the error code for the result, which may benull
.toString()
Returns a string representation of theResult
.
-
Constructor Details
-
Result
-
-
Method Details
-
getErrorCode
Returns the error code for the result, which may benull
.- Returns:
- the error code
-
getDescription
Returns a description of the validation result, which may benull
.- Returns:
- the description
-
toString
Returns a string representation of theResult
. This method is intended to be used for debugging purposes only, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not benull
.
-