Top Description Constructors Methods
org.hibernate.validator.cfg

public Class GenericConstraintDef<A extends java.lang.annotation.Annotation>

extends ConstraintDef<GenericConstraintDef<A extends Annotation>, A extends Annotation>
Class Inheritance
Imports
java.lang.annotation.Annotation

A ConstraintDef class which can be used to configure any constraint type. For this purpose the class defines a generic method GenericConstraintDef#param(String, Object) which allows to add arbitrary constraint parameters.
Authors
Hardy Ferentschik, Gunnar Morling

Constructor Summary

AccessConstructor and Description
public
GenericConstraintDef(Class<A> constraintType)

Method Summary

Modifier and TypeMethod and Description
public GenericConstraintDef<A>
param(String key, Object value)

Inherited from org.hibernate.validator.cfg.ConstraintDef:
groupsmessagepayload

Constructor Detail

GenericConstraintDefback to summary
public GenericConstraintDef(Class<A> constraintType)

Method Detail

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