Package org.jdesktop.beansbinding
Class Validator.Result
- java.lang.Object
-
- org.jdesktop.beansbinding.Validator.Result
-
public class Validator.Result extends Object
An instance ofResultis returned from aValidator'svalidatemethod to indicate an invalid value.A
Resultcan contain an error code and/or description. These values are for your own reporting purposes and are not used internally.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Returns a description of the validation result, which may benull.ObjectgetErrorCode()Returns the error code for the result, which may benull.StringgetType()StringtoString()Returns a string representation of theResult.
-
-
-
Field Detail
-
ERROR
public static final String ERROR
- See Also:
- Constant Field Values
-
WARNING
public static final String WARNING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getErrorCode
public Object getErrorCode()
Returns the error code for the result, which may benull.- Returns:
- the error code
-
getDescription
public String getDescription()
Returns a description of the validation result, which may benull.- Returns:
- the description
-
getType
public String getType()
-
toString
public String 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.
-
-