|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.chwf.filter.Validator | +--org.chwf.filter.GenericValidator
Generic validator. Performs basic validation using BeanFilter
attributes.
Constructor Summary | |
GenericValidator(java.lang.Class beanClass)
Constructor. |
Method Summary | |
void |
validate(java.lang.Object object,
java.lang.String property,
java.lang.Object value)
Validate property value. |
Methods inherited from class org.chwf.filter.Validator |
findValidator, findValidator, findValidator, getBeanClass, validate, validate, validate, validate, validate, validate, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GenericValidator(java.lang.Class beanClass) throws InitializationException
beanClass
- The bean class being validated.InitializationException
- If the filter cannot be initialized.Method Detail |
public void validate(java.lang.Object object, java.lang.String property, java.lang.Object value) throws PropertyNotFoundException, ValidationException
validate
in class Validator
object
- The object.property
- The property.value
- The value.PropertyNotFoundException
- If property does not exist.ValidationException
- If invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |