|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Validator
Executes validation on a bean.
This can be assigned to a bean property or the bean itself.
Method Summary | |
---|---|
Object[] |
getAttributes()
Return attribute values of the validator for use in building a error message (such as the actual min and max for Length). |
String |
getKey()
Return a String key used to identify the validator. |
boolean |
isValid(Object value)
Return true if the value is valid. |
Method Detail |
---|
String getKey()
This is used to identify the type of validation error and look up a localised error message.
Object[] getAttributes()
boolean isValid(Object value)
value
- the property value being tested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |