org.hibernate.validator.cfg
Class ConstraintMapping
java.lang.Object
org.hibernate.validator.cfg.ConstraintMapping
public class ConstraintMapping
- extends Object
Top level class for constraints configured via the programmatic API.
- Author:
- Hardy Ferentschik, Gunnar Morling, Kevin Pollet - SERLI - (kevin.pollet@serli.om)
Method Summary |
|
type(Class<C> beanClass)
Starts defining constraints on the specified bean class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected ConstraintMappingContext context
ConstraintMapping
public ConstraintMapping()
ConstraintMapping
protected ConstraintMapping(ConstraintMapping original)
type
public final <C> TypeConstraintMappingContext<C> type(Class<C> beanClass)
- Starts defining constraints on the specified bean class.
- Type Parameters:
C
- The type to be configured.- Parameters:
beanClass
- The bean class on which to define constraints. All constraints defined after calling this method
are added to the bean of the type beanClass
until the next call of type
.
- Returns:
- Instance allowing for defining constraints on the specified class.
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved