org.hibernate.validator.constraints
Annotation Type ConstraintComposition


@Documented
@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
public @interface ConstraintComposition

Boolean operator that is applied to all constraints of a composing constraint annotation.

A composed constraint annotation can define a boolean combination of the constraints composing it, by using @ConstraintComposition.

Author:
Dag Hovland, Federico Mancini

Optional Element Summary
 CompositionType value
          The value of this element specifies the boolean operator, namely disjunction (OR), negation of the conjunction (ALL_FALSE), or, the default, simple conjunction (AND).
 

value

public abstract CompositionType value
The value of this element specifies the boolean operator, namely disjunction (OR), negation of the conjunction (ALL_FALSE), or, the default, simple conjunction (AND).

Default:
org.hibernate.validator.constraints.CompositionType.AND


Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved