public class ConstraintMapping extends Object
Modifier and Type | Field and Description |
---|---|
protected ConstraintMappingContext |
context
Deprecated.
Will be removed in a future release.
|
Modifier | Constructor and Description |
---|---|
|
ConstraintMapping()
Deprecated.
This class will be converted into an interface in a future
release. Use
HibernateValidatorConfiguration.createConstraintMapping()
instead to create new constraint mappings. |
protected |
ConstraintMapping(ConstraintMapping original)
Deprecated.
This class will be converted into an interface in a future
release. Use
HibernateValidatorConfiguration.createConstraintMapping()
instead to create new constraint mappings. |
Modifier and Type | Method and Description |
---|---|
<C> TypeConstraintMappingContext<C> |
type(Class<C> beanClass)
Starts defining constraints on the specified bean class.
|
@Deprecated protected ConstraintMappingContext context
@Deprecated public ConstraintMapping()
HibernateValidatorConfiguration.createConstraintMapping()
instead to create new constraint mappings.@Deprecated protected ConstraintMapping(ConstraintMapping original)
HibernateValidatorConfiguration.createConstraintMapping()
instead to create new constraint mappings.public final <C> TypeConstraintMappingContext<C> type(Class<C> beanClass)
C
- The type to be configured.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
.Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved