Class AnnotationDefaultMessageCheck
java.lang.Object
org.hibernate.validator.ap.internal.checks.AbstractConstraintCheck
org.hibernate.validator.ap.internal.checks.annotationparameters.AnnotationParametersAbstractCheck
org.hibernate.validator.ap.internal.checks.annotationparameters.AnnotationMessageCheck
org.hibernate.validator.ap.internal.checks.annotationparameters.AnnotationDefaultMessageCheck
- All Implemented Interfaces:
ConstraintCheck
Checks that the default annotation message parameter is valid and gives a warning otherwise.
- Author:
- Marko Bekhta
-
Field Summary
Fields inherited from class org.hibernate.validator.ap.internal.checks.annotationparameters.AnnotationParametersAbstractCheck
annotationApiHelper
-
Constructor Summary
ConstructorDescriptionAnnotationDefaultMessageCheck
(AnnotationApiHelper annotationApiHelper, Elements elementUtils) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canCheckThisAnnotation
(AnnotationMirror annotation) Verify that this check class can process such annotation.protected Set<ConstraintCheckIssue>
doCheck
(Element element, AnnotationMirror annotation) Method which actually performs the validation of the annotation parameters.Methods inherited from class org.hibernate.validator.ap.internal.checks.annotationparameters.AnnotationMessageCheck
checkMessage
Methods inherited from class org.hibernate.validator.ap.internal.checks.annotationparameters.AnnotationParametersAbstractCheck
checkAnnotationType, checkField, checkMethod, checkNonAnnotationType
-
Constructor Details
-
AnnotationDefaultMessageCheck
public AnnotationDefaultMessageCheck(AnnotationApiHelper annotationApiHelper, Elements elementUtils)
-
-
Method Details
-
canCheckThisAnnotation
Description copied from class:AnnotationParametersAbstractCheck
Verify that this check class can process such annotation.- Overrides:
canCheckThisAnnotation
in classAnnotationMessageCheck
- Parameters:
annotation
- annotation you want to process by this class- Returns:
true
if such annotation can be processed,false
otherwise.
-
doCheck
Description copied from class:AnnotationParametersAbstractCheck
Method which actually performs the validation of the annotation parameters.- Specified by:
doCheck
in classAnnotationParametersAbstractCheck
- Parameters:
element
- annotated elementannotation
- annotation to process- Returns:
- a set of
ConstraintCheckIssue
errors if there are any validation issues with the annotation parameters
-