Package org.hibernate.validator.cfg
Class GenericConstraintDef<A extends Annotation>
- java.lang.Object
-
- org.hibernate.validator.cfg.AnnotationDef<C,A>
-
- org.hibernate.validator.cfg.ConstraintDef<GenericConstraintDef<A>,A>
-
- org.hibernate.validator.cfg.GenericConstraintDef<A>
-
public class GenericConstraintDef<A extends Annotation> extends ConstraintDef<GenericConstraintDef<A>,A>
AConstraintDef
class which can be used to configure any constraint type. For this purpose the class defines a generic methodparam(String, Object)
which allows to add arbitrary constraint parameters.- Author:
- Hardy Ferentschik, Gunnar Morling
-
-
Constructor Summary
Constructors Constructor Description GenericConstraintDef(Class<A> constraintType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericConstraintDef<A>
param(String key, Object value)
-
Methods inherited from class org.hibernate.validator.cfg.ConstraintDef
groups, message, payload
-
Methods inherited from class org.hibernate.validator.cfg.AnnotationDef
addAnnotationAsParameter, addParameter, toString
-
-