org.hibernate.validator.cfg.context

## Interface Constrainable<C extends Constrainable<C>>

- All Known Subinterfaces:
    CrossParameterConstraintMappingContext, ParameterConstraintMappingContext, PropertyConstraintMappingContext, ReturnValueConstraintMappingContext, TypeConstraintMappingContext<C>
  All Known Implementing Classes:
    CrossParameterConstraintMappingContextImpl, ParameterConstraintMappingContextImpl, PropertyConstraintMappingContextImpl, ReturnValueConstraintMappingContextImpl, TypeConstraintMappingContextImpl

      public interface Constrainable<C extends Constrainable<C>>

  Facet of a constraint mapping creational context which allows to place constraints on the underlying element.
  Author:
    Gunnar Morling, Kevin Pollet (C) 2011 SERLI

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `C` | `constraint(ConstraintDef<?,?> definition)` Adds a new constraint.

- - ### Method Detail

    - #### constraint

          C constraint(ConstraintDef<?,?> definition)

      Adds a new constraint.
      Parameters:
        `definition` - The constraint to add.
      Returns:
        The current creational context following the method chaining pattern.

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved