Top Description Methods
org.hibernate.validator.cfg.context

public Interface Constrainable<C extends org.hibernate.validator.cfg.context.Constrainable<C>>

Known Direct Subinterfaces
org.hibernate.validator.cfg.context.ContainerElementConstraintMappingContext, org.hibernate.validator.cfg.context.CrossParameterConstraintMappingContext, org.hibernate.validator.cfg.context.ParameterConstraintMappingContext, org.hibernate.validator.cfg.context.PropertyConstraintMappingContext, org.hibernate.validator.cfg.context.ReturnValueConstraintMappingContext, org.hibernate.validator.cfg.context.TypeConstraintMappingContext
Imports
org.hibernate.validator.cfg.ConstraintDef

Facet of a constraint mapping creational context which allows to place constraints on the underlying element.
Authors
Gunnar Morling, Kevin Pollet <[email protected]> (C) 2011 SERLI

Method Summary

Modifier and TypeMethod and Description
public C

Returns:

The current creational context following the method chaining pattern.
constraint
(ConstraintDef<?, ?>
The constraint to add.
definition
)

Adds a new constraint.

Method Detail

constraintback to summary
public C constraint(ConstraintDef<?, ?> definition)

Adds a new constraint.

Parameters
definition:ConstraintDef<?, ?>

The constraint to add.

Returns:C

The current creational context following the method chaining pattern.