org.hibernate.validator.cfg
Class ConstraintMapping

java.lang.Object
  extended by 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

Constructor Summary
ConstraintMapping()
           
 
Method Summary
protected  void addCascadeConfig(CascadeDef cascade)
           
protected  void addConstraintConfig(ConstraintDef<?> definition)
           
protected  void addDefaultGroupSequence(java.lang.Class<?> beanClass, java.util.List<java.lang.Class<?>> defaultGroupSequence)
           
 java.util.Map<java.lang.Class<?>,java.util.List<CascadeDef>> getCascadeConfig()
           
 java.util.Collection<java.lang.Class<?>> getConfiguredClasses()
           
<A extends java.lang.annotation.Annotation>
java.util.Map<java.lang.Class<?>,java.util.List<ConstraintDefWrapper<?>>>
getConstraintConfig()
           
 java.util.List<java.lang.Class<?>> getDefaultSequence(java.lang.Class<?> beanType)
           
 java.lang.String toString()
           
 ConstraintsForType type(java.lang.Class<?> beanClass)
          Starts defining constraints on the specified bean class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstraintMapping

public ConstraintMapping()
Method Detail

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 © 2012 Oracle Corporation. All Rights Reserved.