org.hibernate.validator.cfg
Class GenericConstraintDef<A extends Annotation>

java.lang.Object
  extended by org.hibernate.validator.cfg.ConstraintDef<GenericConstraintDef<A>,A>
      extended by 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

Field Summary
 
Fields inherited from class org.hibernate.validator.cfg.ConstraintDef
constraintType, parameters
 
Constructor Summary
GenericConstraintDef(Class<A> constraintType)
           
 
Method Summary
 GenericConstraintDef<A> param(String key, Object value)
           
 
Methods inherited from class org.hibernate.validator.cfg.ConstraintDef
addParameter, groups, message, payload, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericConstraintDef

public GenericConstraintDef(Class<A> constraintType)
Method Detail

param

public GenericConstraintDef<A> param(String key,
                                     Object value)


Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved