|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.cfg.ConstraintDef
org.hibernate.validator.cfg.defs.GenericConstraintDef
public class GenericConstraintDef
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.
| Field Summary |
|---|
| Fields inherited from class org.hibernate.validator.cfg.ConstraintDef |
|---|
beanType, constraintType, elementType, mapping, parameters, property |
| Constructor Summary | |
|---|---|
GenericConstraintDef(Class<?> beanType,
String property,
ElementType elementType,
ConstraintMapping mapping)
|
|
| Method Summary | |
|---|---|
GenericConstraintDef |
constraintType(Class<?> constraintType)
|
GenericConstraintDef |
groups(Class<?>... groups)
|
GenericConstraintDef |
message(String message)
|
GenericConstraintDef |
param(String key,
Object value)
|
GenericConstraintDef |
payload(Class<? extends javax.validation.Payload>... payload)
|
| Methods inherited from class org.hibernate.validator.cfg.ConstraintDef |
|---|
addParameter, constraint, groups, payload, property, toString, type, valid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GenericConstraintDef(Class<?> beanType,
String property,
ElementType elementType,
ConstraintMapping mapping)
| Method Detail |
|---|
public GenericConstraintDef message(String message)
message in class ConstraintDefpublic GenericConstraintDef groups(Class<?>... groups)
public GenericConstraintDef payload(Class<? extends javax.validation.Payload>... payload)
public GenericConstraintDef param(String key,
Object value)
public GenericConstraintDef constraintType(Class<?> constraintType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||