|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Validatable<T>
Encapsulates an object which can be validated.
Validatable is unaware of UI framework and contains only validation specific logic.
Usage patterns:
| Method Summary | |
|---|---|
void |
addError(ValidationError error)
Adds error to this object. |
Object |
getContext()
Returns a reference to component which is being validated. |
List<ValidationError> |
getErrors()
Returns validation error associated with this object. |
T |
getValue()
Returns value to be validated. |
boolean |
hasErrors()
Tests if this object has errors or not. |
| Method Detail |
|---|
T getValue()
boolean hasErrors()
false otherwisevoid addError(ValidationError error)
error - ValidationError an error.List<ValidationError> getErrors()
Object getContext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||