org.hibernate.validator.cfg
Class ConstraintMapping
java.lang.Object
org.hibernate.validator.cfg.ConstraintMapping
public class ConstraintMapping
- extends java.lang.Object
Top level class for constraints configured via the programmatic API.
- Author:
- Hardy Ferentschik
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConstraintMapping
public ConstraintMapping()
type
public final ConstraintsForType type(java.lang.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 java.lang.annotation.Annotation> java.util.Map<java.lang.Class<?>,java.util.List<ConstraintDefWrapper<?>>> getConstraintConfig()
getCascadeConfig
public final java.util.Map<java.lang.Class<?>,java.util.List<CascadeDef>> getCascadeConfig()
getConfiguredClasses
public final java.util.Collection<java.lang.Class<?>> getConfiguredClasses()
getDefaultSequence
public final java.util.List<java.lang.Class<?>> getDefaultSequence(java.lang.Class<?> beanType)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
addCascadeConfig
protected final void addCascadeConfig(CascadeDef cascade)
addDefaultGroupSequence
protected final void addDefaultGroupSequence(java.lang.Class<?> beanClass,
java.util.List<java.lang.Class<?>> defaultGroupSequence)
addConstraintConfig
protected final void addConstraintConfig(ConstraintDef<?> definition)
Copyright © 2011 Oracle Corporation. All Rights Reserved.