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 (C) 2011 SERLI
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-2013 Red Hat Middleware, LLC. All Rights Reserved