Enum ConstraintHelper.AnnotationType
java.lang.Object
java.lang.Enum<ConstraintHelper.AnnotationType>
org.hibernate.validator.ap.internal.util.ConstraintHelper.AnnotationType
- All Implemented Interfaces:
Serializable
,Comparable<ConstraintHelper.AnnotationType>
,java.lang.constant.Constable
- Enclosing class:
- ConstraintHelper
The type of an annotation with respect to the BV API.
- Author:
- Gunnar Morling, Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionGiven annotation is a constraint annotation (e.g.Given annotation is the @Constraint meta-annotation.Given annotation is the@Valid
annotation.Given annotation is the @GroupSequence annotation.Given annotation is the @GroupSequenceProvider annotation.Given annotation is a multi-valued annotation (e.g.Given annotation is not related to the BV API (e.g. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static ConstraintHelper.AnnotationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CONSTRAINT_ANNOTATION
Given annotation is a constraint annotation (e.g. @Min). -
MULTI_VALUED_CONSTRAINT_ANNOTATION
Given annotation is a multi-valued annotation (e.g.@List({ @Min(10), @Min(value=20, groups= Special.class})
) }. -
GRAPH_VALIDATION_ANNOTATION
Given annotation is the@Valid
annotation. -
CONSTRAINT_META_ANNOTATION
Given annotation is the @Constraint meta-annotation. -
GROUP_SEQUENCE_ANNOTATION
Given annotation is the @GroupSequence annotation. -
GROUP_SEQUENCE_PROVIDER_ANNOTATION
Given annotation is the @GroupSequenceProvider annotation. -
NO_CONSTRAINT_ANNOTATION
Given annotation is not related to the BV API (e.g. @Resource).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-