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 package org.hibernate.validator.internal.metadata.core;
8
9 /**
10 * Visibility looked at when discovering constraints.
11 *
12 * @author Hardy Ferentschik
13 */
14 public enum ConstraintOrigin {
15 /**
16 * Constraint is defined on the root class
17 */
18 DEFINED_LOCALLY,
19
20 /**
21 * Constraint is defined in a super-class or interface of the root class.
22 */
23 DEFINED_IN_HIERARCHY
24 }
25