|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.beansbinding.Validator.Result
public class 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 | |
|---|---|
Validator.Result(java.lang.Object errorCode,
java.lang.String description)
Creates a Result with the given error code and description. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Returns a description of the validation result, which may be null. |
java.lang.Object |
getErrorCode()
Returns the error code for the result, which may be null. |
java.lang.String |
toString()
Returns a string representation of the Result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Validator.Result(java.lang.Object errorCode,
java.lang.String description)
Result with the given error code and description.
errorCode - an error code for this Result, may be nulldescription - a textual description of the Result, may be null| Method Detail |
|---|
public java.lang.Object getErrorCode()
null.
public java.lang.String getDescription()
null.
public java.lang.String toString()
Result. 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
be null.
toString in class java.lang.ObjectResult
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||