|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.ClassValidator<T>
public class ClassValidator<T>
Engine that take a bean and check every expressed annotation restrictions
| Constructor Summary | |
|---|---|
|
ClassValidator(Class<T> beanClass)
create the validator engine for this bean type |
|
ClassValidator(Class<T> beanClass,
ResourceBundle resourceBundle)
create the validator engine for a particular bean class, using a resource bundle for message rendering on violation |
protected |
ClassValidator(Class<T> beanClass,
ResourceBundle resourceBundle,
Map<Class,ClassValidator> childClassValidators)
|
| Method Summary | |
|---|---|
void |
apply(org.hibernate.mapping.PersistentClass persistentClass)
apply the registred constraints rules on the hibernate metadata (to be applied on DB schema...) |
void |
assertValid(T bean)
|
InvalidValue[] |
getInvalidValues(T bean)
apply constraints on a bean instance and return all the failures. |
protected InvalidValue[] |
getInvalidValues(T bean,
Set<Object> circularityState)
apply constraints on a bean instance and return all the failures. |
InvalidValue[] |
getInvalidValues(T bean,
String propertyName)
Apply constraints of a particular property on a bean instance and return all the failures. |
InvalidValue[] |
getPotentialInvalidValues(String propertyName,
Object value)
Apply constraints of a particular property value of a bean type and return all the failures. |
String |
getPropertyName(Member member)
|
boolean |
hasValidationRules()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassValidator(Class<T> beanClass)
public ClassValidator(Class<T> beanClass,
ResourceBundle resourceBundle)
protected ClassValidator(Class<T> beanClass,
ResourceBundle resourceBundle,
Map<Class,ClassValidator> childClassValidators)
| Method Detail |
|---|
public boolean hasValidationRules()
public InvalidValue[] getInvalidValues(T bean)
protected InvalidValue[] getInvalidValues(T bean,
Set<Object> circularityState)
public InvalidValue[] getInvalidValues(T bean,
String propertyName)
public InvalidValue[] getPotentialInvalidValues(String propertyName,
Object value)
public String getPropertyName(Member member)
public void apply(org.hibernate.mapping.PersistentClass persistentClass)
persistentClass - hibernate metadatapublic void assertValid(T bean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||