org.hibernate.validator.cfg

## Class GenericConstraintDef<A extends Annotation>

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

    Constructors
    Constructor and Description
    `GenericConstraintDef(Class<A> constraintType)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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-2014 Red Hat, Inc. All Rights Reserved