|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tzavellas.validation.BeanValidator
public class BeanValidator
A class used to validate the properties of JavaBean objects using a
collection of specified PropertyValidator
s.
Thread safety: This class is thread safe.
PropertyValidator
Constructor Summary | |
---|---|
BeanValidator(PropertyValidator<?>... validators)
Construct a BeanValidator |
Method Summary | |
---|---|
void |
add(PropertyValidator<?> v)
Add a PropertyValidator to be used when validating objects. |
boolean |
isValid(Object bean)
Validate the specified object. |
ValidationResult |
validate(Object bean)
Validate the specified object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanValidator(PropertyValidator<?>... validators)
BeanValidator with the specified collection of
PropertyValidators.
Method Detail |
---|
public void add(PropertyValidator<?> v)
PropertyValidator
to be used when validating objects.
v
- the PropertyValidator to addpublic boolean isValid(Object bean)
bean
- the JavaBean to validate
public ValidationResult validate(Object bean)
bean
- the JavaBean to validate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |