org.hibernate.validator.cfg.context
Interface Constrainable<C extends Constrainable<C>>
- All Known Subinterfaces:
- ParameterConstraintMappingContext, PropertyConstraintMappingContext, ReturnValueConstraintMappingContext, TypeConstraintMappingContext<C>
- All Known Implementing Classes:
- 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 - SERLI - (kevin.pollet@serli.com)
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-2011 Red Hat Middleware, LLC. All Rights Reserved