|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.cfg.ConstraintsForType
public final class ConstraintsForType
Via instances of this class constraints and cascading properties can be configured for a single bean class.
| Constructor Summary | |
|---|---|
ConstraintsForType(Class<?> beanClass,
ConstraintMapping mapping)
|
|
ConstraintsForType(Class<?> beanClass,
String property,
ElementType type,
ConstraintMapping mapping)
|
|
| Method Summary | ||
|---|---|---|
|
constraint(Class<T> definition)
Add a new constraint. |
|
ConstraintsForType |
defaultGroupSequence(Class<?>... defaultGroupSequence)
Defines the default groups sequence for the bean class of this instance. |
|
ConstraintsForType |
property(String property,
ElementType type)
Changes the property for which added constraints apply. |
|
ConstraintsForType |
type(Class<?> type)
Creates a new ConstraintsForType in order to define constraints on a new bean type. |
|
ConstraintsForType |
valid(String property,
ElementType type)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstraintsForType(Class<?> beanClass,
ConstraintMapping mapping)
public ConstraintsForType(Class<?> beanClass,
String property,
ElementType type,
ConstraintMapping mapping)
| Method Detail |
|---|
public <A extends Annotation,T extends ConstraintDef<A>> T constraint(Class<T> definition)
definition - The constraint definition class
public ConstraintsForType property(String property,
ElementType type)
property - The property on which to apply the following constraints (Java Bean notation)type - The access type (field/property)
public ConstraintsForType valid(String property,
ElementType type)
public ConstraintsForType defaultGroupSequence(Class<?>... defaultGroupSequence)
defaultGroupSequence - the default group sequence.
public ConstraintsForType type(Class<?> type)
ConstraintsForType in order to define constraints on a new bean type.
type - the bean type
ConstraintsForType instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||