|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of valuepublic interface IValidatable<T>
Interface representing any object that can be validated.
Method Summary | |
---|---|
void |
error(IValidationError error)
Reports an error against this IValidatable 's value. |
IModel<T> |
getModel()
Returns the model of the component being validated |
T |
getValue()
Retrieves the value to be validated. |
boolean |
isValid()
Queries the current state of this IValidatable instance. |
Method Detail |
---|
T getValue()
void error(IValidationError error)
IValidatable
's value. Multiple errors can be
reported by calling this method multiple times.
error
- an IValidationError
to be reportedboolean isValid()
IValidatable
instance.
IValidatable
s should assume they are valid until
error(IValidationError)
is called.
true
if the object is in a valid state, false
if otherwiseIModel<T> getModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |