org.hibernate.validator.cfg
Interface ConstraintMapping

All Known Implementing Classes:
DefaultConstraintMapping

public interface ConstraintMapping

Represents a constraint mapping configured via the programmatic API.

Author:
Hardy Ferentschik, Gunnar Morling, Kevin Pollet (C) 2011 SERLI

Method Summary
<C> TypeConstraintMappingContext<C>
type(Class<C> beanClass)
          Starts defining constraints on the specified bean class.
 

Method Detail

type

<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-2013 Red Hat Middleware, LLC. All Rights Reserved