public interface ValidationFactory
| Modifier and Type | Interface and Description |
|---|---|
static class |
ValidationFactory.RuleFactory
RuleFactory to be used in different validation factories
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
validate(Class clazz)
validates whether a valid entity class or not
|
boolean |
validate(Class clazz,
IRule... rules)
validates a given entity with given set of rules
|
boolean |
validate(Field field,
IRule... rules)
validates a field of a class with given set of rules
|
boolean |
validate(Field field,
Object fieldValue,
IRule... rules)
validates a field against its value with given set of rules
|
boolean validate(Class clazz) throws RuleValidationException
clazz - RuleValidationExceptionboolean validate(Class clazz, IRule... rules) throws RuleValidationException
clazz - rules - RuleValidationExceptionboolean validate(Field field, IRule... rules) throws RuleValidationException
field - rules - RuleValidationExceptionboolean validate(Field field, Object fieldValue, IRule... rules) throws RuleValidationException
field - fieldValue - rules - RuleValidationExceptionCopyright © 2015. All Rights Reserved.