public class ConstraintMapping extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ConstraintMappingContext |
context |
| Modifier | Constructor and Description |
|---|---|
|
ConstraintMapping() |
protected |
ConstraintMapping(ConstraintMapping original) |
| Modifier and Type | Method and Description |
|---|---|
<C> TypeConstraintMappingContext<C> |
type(Class<C> beanClass)
Starts defining constraints on the specified bean class.
|
protected ConstraintMappingContext context
public ConstraintMapping()
protected ConstraintMapping(ConstraintMapping original)
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 © 2012 JBoss by Red Hat. All Rights Reserved.