org.hibernate.validator.cfg.defs
Class GenericConstraintDef
java.lang.Object
org.hibernate.validator.cfg.ConstraintDef
org.hibernate.validator.cfg.defs.GenericConstraintDef
public class GenericConstraintDef
- extends ConstraintDef
A ConstraintDef
class which can be used to configure any constraint type. For this purpose the class defines
a constraintType
method to specify the constraint type and a generic param(String key,Object value)
to add arbitrary constraint parameters.
- Author:
- Hardy Ferentschik
GenericConstraintDef
public GenericConstraintDef(Class<?> beanType,
String property,
ElementType elementType,
ConstraintMapping mapping)
message
public GenericConstraintDef message(String message)
- Overrides:
message
in class ConstraintDef
groups
public GenericConstraintDef groups(Class<?>... groups)
payload
public GenericConstraintDef payload(Class<? extends Payload>... payload)
param
public GenericConstraintDef param(String key,
Object value)
constraintType
public GenericConstraintDef constraintType(Class<?> constraintType)
Copyright © 2007-2010 Red Hat Middleware, LLC. All Rights Reserved