|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IValidatable
Interface representing any object that can be validated.
Method Summary | |
---|---|
void |
error(IValidationError error)
Reports an error against this IValidatable 's value. |
java.lang.Object |
getValue()
Retrieves the value to be validated. |
boolean |
isValid()
Queries the current state of this IValidatable instance. |
Method Detail |
---|
java.lang.Object 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
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |