org.hibernate.validator.cfg
Class ConstraintMapping

java.lang.Object
  extended by 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)

Field Summary
protected  ConstraintMappingContext context
           
 
Constructor Summary
  ConstraintMapping()
           
protected ConstraintMapping(ConstraintMapping original)
           
 
Method Summary
<C> TypeConstraintMappingContext<C>
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
 

Field Detail

context

protected ConstraintMappingContext context
Constructor Detail

ConstraintMapping

public ConstraintMapping()

ConstraintMapping

protected ConstraintMapping(ConstraintMapping original)
Method Detail

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