1 /*
2 * Hibernate Validator, declare and validate application constraints
3 *
4 * License: Apache License, Version 2.0
5 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
6 */
7
8 package org.hibernate.validator.constraints;
9
10 /**
11 * The Enum {@code CompositionType} which is used as argument to the annotation {@code ConstraintComposition}.
12 */
13 public enum CompositionType {
14 /**
15 * Used to indicate the disjunction of all constraints it is applied to.
16 */
17 OR,
18
19 /**
20 * Used to indicate the conjunction of all the constraints it is applied to.
21 */
22 AND,
23
24 /**
25 * ALL_FALSE is a generalisation of the usual NOT operator, which is applied to
26 * a list of conditions rather than just one element.
27 * When the annotation it is used on is composed of a single constraint annotation, then it is equivalent to NOT.
28 */
29 ALL_FALSE
30 }
31
32
33