org.hibernate.validator.cfg
Class GenericConstraintDef<A extends Annotation>
java.lang.Object
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>
A ConstraintDef class which can be used to configure any constraint
type. For this purpose the class defines a generic method
param(String, Object) which allows to add
arbitrary constraint parameters.
- Author:
- Hardy Ferentschik, Gunnar Morling
GenericConstraintDef
public GenericConstraintDef(Class<A> constraintType)
param
public GenericConstraintDef<A> param(String key,
Object value)
Copyright © 2012 Oracle Corporation. All Rights Reserved.