|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.beans.binding.ValidationResult
public class ValidationResult
A ValidationResult is returned from a BindingValidator to
indicate the value is invalid, and describe what action to take.
| Nested Class Summary | |
|---|---|
static class |
ValidationResult.Action
An enumeration of the action the Binding should take. |
| Constructor Summary | |
|---|---|
ValidationResult(ValidationResult.Action type)
Creates a ValidationResult of the specified type. |
|
ValidationResult(ValidationResult.Action type,
java.lang.String description,
java.lang.Object errorCode)
Creates a ValidationResult. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Returns a description of the validation result. |
java.lang.Object |
getErrorCode()
Returns an identifier for the result. |
ValidationResult.Action |
getType()
Returns the action the Binding should take. |
java.lang.String |
toString()
Returns a string representing this ValidationResult. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationResult(ValidationResult.Action type)
ValidationResult of the specified type.
type - the action the Binding should take
java.lang.IllegalArgumentException - if type is null
public ValidationResult(ValidationResult.Action type,
java.lang.String description,
java.lang.Object errorCode)
ValidationResult.
type - the action the Binding should takedescription - a textual description of this
ValidationResulterrorCode - an identifier for this ValidationResult
java.lang.IllegalArgumentException - if type is null| Method Detail |
|---|
public ValidationResult.Action getType()
Binding should take.
public java.lang.Object getErrorCode()
public java.lang.String getDescription()
public java.lang.String toString()
ValidationResult. This
method is intended to be used only for debugging purposes, 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.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||