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
ConstraintMapping
public ConstraintMapping()
type
public final ConstraintsForType type(Class<?> beanClass)
- Starts defining constraints on the specified bean class.
- 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.
getConstraintConfig
public final <A extends Annotation> Map<Class<?>,List<ConstraintDefWrapper<?>>> getConstraintConfig()
getCascadeConfig
public final Map<Class<?>,List<CascadeDef>> getCascadeConfig()
getConfiguredClasses
public final Collection<Class<?>> getConfiguredClasses()
getDefaultSequence
public final List<Class<?>> getDefaultSequence(Class<?> beanType)
toString
public String toString()
- Overrides:
toString
in class Object
addCascadeConfig
protected final void addCascadeConfig(CascadeDef cascade)
addDefaultGroupSequence
protected final void addDefaultGroupSequence(Class<?> beanClass,
List<Class<?>> defaultGroupSequence)
addConstraintConfig
protected final void addConstraintConfig(ConstraintDef<?> definition)
Copyright © 2007-2010 Red Hat Middleware, LLC. All Rights Reserved