- All Implemented Interfaces:
Serializable,Comparable<ConstraintViolation.Location>,Constable
- Enclosing interface:
ConstraintViolation
Location of the violation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConstructor that may have annotated return type or parameters.A collection element, optional or map value.An annotated field.A map key.Method that may have annotated return type or parameters.An annotation parameter of a method or constructor.An annotated property - getter.A record component.An annotated return value of a method.A type (interface, record, class). -
Method Summary
Modifier and TypeMethodDescriptionstatic ConstraintViolation.LocationReturns the enum constant of this class with the specified name.static ConstraintViolation.Location[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TYPE
A type (interface, record, class). -
RECORD_COMPONENT
A record component. -
RETURN_VALUE
An annotated return value of a method. -
PARAMETER
An annotation parameter of a method or constructor. -
PROPERTY
An annotated property - getter. -
FIELD
An annotated field. -
METHOD
Method that may have annotated return type or parameters. -
CONSTRUCTOR
Constructor that may have annotated return type or parameters. -
KEY
A map key. -
ELEMENT
A collection element, optional or map value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-