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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GenericConstraintDef
public GenericConstraintDef(java.lang.Class<?> beanType,
java.lang.String property,
java.lang.annotation.ElementType elementType,
ConstraintMapping mapping)
message
public GenericConstraintDef message(java.lang.String message)
- Overrides:
message in class ConstraintDef
groups
public GenericConstraintDef groups(java.lang.Class<?>... groups)
payload
public GenericConstraintDef payload(java.lang.Class<? extends javax.validation.Payload>... payload)
param
public GenericConstraintDef param(java.lang.String key,
java.lang.Object value)
constraintType
public GenericConstraintDef constraintType(java.lang.Class<?> constraintType)
Copyright © 2012 Oracle Corporation. All Rights Reserved.