|
||||||||||
| 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(java.lang.Class<A> annotationClass,
java.util.List<java.lang.Class<? extends javax.validation.ConstraintValidator<? extends java.lang.annotation.Annotation,?>>> definitionClasses)
|
|
boolean |
containsConstraintValidatorDefinition(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
|
|
java.util.List<java.lang.Class<? extends javax.validation.ConstraintValidator<? extends java.lang.annotation.Annotation,?>>> |
getBuiltInConstraints(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
|
|
|
getConstraintValidatorDefinition(java.lang.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(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
|
boolean |
isConstraintAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Checks whether the specified annotation is a valid constraint annotation. |
|
boolean |
isConstraintComposition(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
|
boolean |
isMultiValueConstraint(java.lang.Class<? extends java.lang.annotation.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 java.util.List<java.lang.Class<? extends javax.validation.ConstraintValidator<? extends java.lang.annotation.Annotation,?>>> getBuiltInConstraints(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
public boolean isBuiltinConstraint(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
public boolean isMultiValueConstraint(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType - the annotation type to check.
true if the specified annotation is a multi value constraints, false
otherwise.public <A extends java.lang.annotation.Annotation> java.util.List<java.lang.annotation.Annotation> getMultiValueConstraints(A annotation)
annotation - the annotation to check.
annotation is not a multi constraint
annotation.public boolean isConstraintAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
ConstraintValidator implementation.
annotationType - The annotation type to test.
true if the annotation fulfills the above condtions, false otherwise.public <T extends java.lang.annotation.Annotation> java.util.List<java.lang.Class<? extends javax.validation.ConstraintValidator<T,?>>> getConstraintValidatorDefinition(java.lang.Class<T> annotationClass)
public <A extends java.lang.annotation.Annotation> void addConstraintValidatorDefinition(java.lang.Class<A> annotationClass,
java.util.List<java.lang.Class<? extends javax.validation.ConstraintValidator<? extends java.lang.annotation.Annotation,?>>> definitionClasses)
public boolean containsConstraintValidatorDefinition(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
public boolean isConstraintComposition(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||