Interface Constrainable<C extends Constrainable<C>>
-
- All Known Subinterfaces:
ContainerElementConstraintMappingContext,CrossParameterConstraintMappingContext,ParameterConstraintMappingContext,PropertyConstraintMappingContext,ReturnValueConstraintMappingContext,TypeConstraintMappingContext<C>
- All Known Implementing Classes:
ContainerElementConstraintMappingContextImpl,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 <kevin.pollet@serli.com> (C) 2011 SERLI
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Cconstraint(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.
-
-