|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.metadata.ConstraintHelper
public class ConstraintHelper
Keeps track of builtin constraints and their validator implementations, as well as already resolved validator definitions.
| Constructor Summary | |
|---|---|
ConstraintHelper()
|
|
| Method Summary | ||
|---|---|---|
|
addConstraintValidatorDefinition(Class<A> annotationClass,
List<Class<? extends javax.validation.ConstraintValidator<? extends Annotation,?>>> definitionClasses)
|
|
boolean |
containsConstraintValidatorDefinition(Class<? extends Annotation> annotationClass)
|
|
List<Class<? extends javax.validation.ConstraintValidator<? extends Annotation,?>>> |
getBuiltInConstraints(Class<? extends Annotation> annotationClass)
|
|
|
getConstraintValidatorDefinition(Class<T> annotationClass)
|
|
|
getMultiValueConstraints(A annotation)
Checks whether a given annotation is a multi value constraint and returns the contained constraints if so. |
|
boolean |
isBuiltinConstraint(Class<? extends Annotation> annotationType)
|
|
boolean |
isConstraintAnnotation(Class<? extends Annotation> annotationType)
Checks whether the specified annotation is a valid constraint annotation. |
|
boolean |
isMultiValueConstraint(Class<? extends Annotation> annotationType)
Checks whether a given annotation is a multi value constraint or not. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstraintHelper()
| Method Detail |
|---|
public List<Class<? extends javax.validation.ConstraintValidator<? extends Annotation,?>>> getBuiltInConstraints(Class<? extends Annotation> annotationClass)
public boolean isBuiltinConstraint(Class<? extends Annotation> annotationType)
public boolean isMultiValueConstraint(Class<? extends Annotation> annotationType)
annotationType - the annotation type to check.
true if the specified annotation is a multi value constraints, false
otherwise.public <A extends Annotation> List<Annotation> getMultiValueConstraints(A annotation)
annotation - the annotation to check.
annotation is not a multi constraint
annotation.public boolean isConstraintAnnotation(Class<? extends Annotation> annotationType)
ConstraintValidator implementation.
annotationType - The annotation type to test.
true if the annotation fulfills the above condtions, false otherwise.public <T extends Annotation> List<Class<? extends javax.validation.ConstraintValidator<T,?>>> getConstraintValidatorDefinition(Class<T> annotationClass)
public <A extends Annotation> void addConstraintValidatorDefinition(Class<A> annotationClass,
List<Class<? extends javax.validation.ConstraintValidator<? extends Annotation,?>>> definitionClasses)
public boolean containsConstraintValidatorDefinition(Class<? extends Annotation> annotationClass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||