/*
 * Jakarta Bean Validation API
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
 */
package javax.validation;

Enum of possible kinds of elements encountered in Jakarta Bean Validation.

Mostly elements that can be constrained and described in the metadata but also elements that can be part of a Path and represented by a Node

Author:Emmanuel Bernard, Gunnar Morling, Guillaume Smet
Since:1.1
/** * Enum of possible kinds of elements encountered in Jakarta Bean Validation. * <p> * Mostly elements that can be constrained and described in the metadata * but also elements that can be part of a {@link Path} and represented * by a {@link Path.Node} * * @author Emmanuel Bernard * @author Gunnar Morling * @author Guillaume Smet * * @since 1.1 */
public enum ElementKind {
A Java Bean or object.
/** * A Java Bean or object. */
BEAN,
A property of a Java Bean.
/** * A property of a Java Bean. */
PROPERTY,
A method.
/** * A method. */
METHOD,
A constructor.
/** * A constructor. */
CONSTRUCTOR,
A parameter of a method or constructor.
/** * A parameter of a method or constructor. */
PARAMETER,
Element holding cross-parameter constraints of a method or constructor.
/** * Element holding cross-parameter constraints of a method or constructor. */
CROSS_PARAMETER,
The return value of a method or constructor.
/** * The return value of a method or constructor. */
RETURN_VALUE,
An element stored in a container, e.g. a key or value of a Map or an element of a List.
Since:2.0
/** * An element stored in a container, e.g. a key or value of a {@code Map} or an element * of a {@code List}. * * @since 2.0 */
CONTAINER_ELEMENT }